source: ThirdParty/ASL/releases/1.0.2/Makefile.am

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

several improvements for MSys

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