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

Last change on this file since 588 was 588, checked in by andreasw, 12 years ago

included changes proposed by Lou Hafer for ASL configuration and compilation with MSVC

File size: 1.7 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        compile_MS_ASL
30else
31$(libampl):
32        rm -rf $(compdir) ; \
33        $(mkinstalldirs) $(compdir); \
34        files=`cd $(abs_source_dir)/solvers; ls *.[chs] *.[ch]0 *.hd arith.* makefile* `; \
35        cd $(compdir); \
36        for file in $$files; \
37        do \
38          rm -f $$file ;\
39          $(LN_S) $(abs_source_dir)/solvers/$$file $$file ;\
40        done; \
41        rm -f makefile; \
42        $(ASLMAKEFILECMDS); \
43        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" clean ;\
44        $(MAKE) $(ASLMAKEFLAGS) CC="$(CC)" ;\
45        mv amplsolver.a ../$(libampl)
46        -cd $(compdir); mv stdio1.h arith.h funcadd0.$(OBJEXT) ..
47        rm -rf $(compdir)
48endif
49
50stdio1.h arith.h funcadd0.o: $(libampl)
51
52CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
53
54########################################################################
55#                         Maintainer Stuff                             #
56########################################################################
57
58# Files that are generated and should be cleaned with make distclean
59DISTCLEANFILES = $(MAKEOKFILE)
60
61include ../../BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.