source: ThirdParty/ASL/trunk/Makefile.am @ 45

Last change on this file since 45 was 45, checked in by andreasw, 16 years ago

First version of ASL ThirtParty? directory

File size: 1005 bytes
Line 
1# Copyright (C) 2003, 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 735 2006-06-04 06:10:05Z andreasw $
6
7AUTOMAKE_OPTIONS = foreign
8
9EXTRA_DIST = get.ASL INSTALL.ASL
10
11compdir = compdir
12
13libampl   = amplsolver.a
14
15all-local: $(libampl) stdio1.h arith.h funcadd0.o
16
17$(libampl):
18        rm -rf $(compdir) ; \
19        $(mkinstalldirs) $(compdir); \
20        files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* `; \
21        cd $(compdir); \
22        for file in $$files; \
23        do \
24          $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\
25        done; \
26        rm -f makefile; \
27        $(ASLMAKEFILECMDS); \
28        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" clean ;\
29        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\
30        mv amplsolver.a ../$(libampl)
31        -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
32        rm -rf $(compdir)
33
34stdio1.h arith.h funcadd0.o: $(libampl)
35
36CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.o
37
38# ASLsolvers
39
40distclean-local:
41        rm -rf ASLsolvers
Note: See TracBrowser for help on using the repository browser.