source: ThirdParty/ASL/releases/1.0.3/Makefile.am @ 879

Last change on this file since 879 was 271, checked in by andreasw, 13 years ago

synchronize ASL stable with trunk rev 270

File size: 2.4 KB
Line 
1# Copyright (C) 2003, 2007 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
19if SKIPMAKE
20  alltargets =
21else
22  alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
23endif
24
25all-local: $(alltargets)
26
27if MSVC_COMPILE
28$(libampl):
29        @echo " "
30        @echo "*********************************************************************"
31        @echo " "
32        @echo "Please change into the following directory and type ./compile_MS_ASL"
33        @pwd
34        @echo " "
35        @echo "*********************************************************************"
36        @exit 1
37#       set -x -v; \
38#       rm -rf $(compdir) ; \
39#       $(mkinstalldirs) $(compdir); \
40#       files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* *.bat amplsolv.lbc`; \
41#       cd $(compdir); \
42#       for file in $$files; \
43#       do \
44#         rm -f $$file ;\
45#         cp $(abs_source_dir)/solvers/$$file $$file ;\
46#       done; \
47#       cp details.c0 details.c; \
48#       rm -f makefile; \
49#       nmake.exe   
50#       mv $(compdir)/amplsolv.lib $(libampl)
51#       -cd $(compdir); mv stdio1.h arith.h funcadd0.o ..
52#       rm -rf $(compdir)
53else
54$(libampl):
55        rm -rf $(compdir) ; \
56        $(mkinstalldirs) $(compdir); \
57        files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* `; \
58        cd $(compdir); \
59        for file in $$files; \
60        do \
61          rm -f $$file ;\
62          $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\
63        done; \
64        rm -f makefile; \
65        $(ASLMAKEFILECMDS); \
66        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" clean ;\
67        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\
68        mv amplsolver.a ../$(libampl)
69        -cd $(compdir); mv stdio1.h arith.h funcadd0.$(OBJEXT) ..
70        rm -rf $(compdir)
71endif
72
73stdio1.h arith.h funcadd0.o: $(libampl)
74
75CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
76
77########################################################################
78#                         Maintainer Stuff                             #
79########################################################################
80
81# Files that are generated and should be cleaned with make distclean
82DISTCLEANFILES = $(MAKEOKFILE)
83
84include ../../BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.