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

Last change on this file since 47 was 47, checked in by andreasw, 14 years ago

Enabled Ampl executable for Cbc

File size: 1.5 KB
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
11########################################################################
12#                           Extra Targets                              #
13########################################################################
14
15compdir = compdir
16
17libampl   = amplsolver.a
18
19all-local: $(libampl) stdio1.h arith.h funcadd0.o
20
21$(libampl):
22        rm -rf $(compdir) ; \
23        $(mkinstalldirs) $(compdir); \
24        files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* `; \
25        cd $(compdir); \
26        for file in $$files; \
27        do \
28          $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\
29        done; \
30        rm -f makefile; \
31        $(ASLMAKEFILECMDS); \
32        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" clean ;\
33        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\
34        mv amplsolver.a ../$(libampl)
35        -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
36        rm -rf $(compdir)
37
38stdio1.h arith.h funcadd0.o: $(libampl)
39
40CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.o
41
42########################################################################
43#                         Maintainer Stuff                             #
44########################################################################
45
46# Files that are generated and should be cleaned with make distclean
47DISTCLEANFILES =
48
49include ../../BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.