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

Last change on this file since 1615 was 1565, checked in by stefan, 10 years ago

allow build against installed dependencies without presence of base directory: add build system scripts, adjust location of Makemain.inc - thanks to Lou for making this possible

  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 KB
RevLine 
[227]1# Copyright (C) 2003, 2007 International Business Machines and others.
[45]2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
[1183]5## $Id: Makefile.am 1565 2010-06-13 17:51:13Z stefan $
[45]6
7AUTOMAKE_OPTIONS = foreign
8
9EXTRA_DIST = get.ASL INSTALL.ASL
10
[47]11########################################################################
12#                           Extra Targets                              #
13########################################################################
14
[45]15compdir = compdir
16
[72]17libampl   = $(AMPLSOLVER_A)
[45]18
[1548]19alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT)
[45]20
[227]21all-local: $(alltargets)
22
[72]23if MSVC_COMPILE
[45]24$(libampl):
[732]25        ./compile_MS_ASL
[72]26else
27$(libampl):
[732]28        ./compile_Unix_ASL
[72]29endif
[45]30
[589]31stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl)
[45]32
[1548]33thirdpartyincludedir = $(includedir)/coin/ThirdParty
34thirdpartyinclude_HEADERS = \
35  solvers/asl.h solvers/asl_pfg.h solvers/asl_pfgh.h solvers/psinfo.h solvers/funcadd.h \
36  solvers/nlp.h solvers/nlp2.h solvers/getstub.h solvers/opcode.hd solvers/r_opn.hd \
37  stdio1.h arith.h
[45]38
[1548]39thirdpartylibdir = $(libdir)/coin/ThirdParty
40thirdpartylib_DATA = $(libampl)
41
42if COIN_HAS_PKGCONFIG
43addlibsdir = $(datadir)/coin/doc/ThirdParty/ASL
44addlibs_DATA = asl_addlibs.txt
45
46asl_addlibs.txt : coinasl.pc
47        PKG_CONFIG_PATH=.:@COIN_PKG_CONFIG_PATH@ $(PKG_CONFIG) --libs coinasl > asl_addlibs.txt
48endif
49
50pkgconfiglibdir = $(libdir)/pkgconfig
51pkgconfiglib_DATA = coinasl.pc
52
53CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) asl_addlibs.txt
54
[47]55########################################################################
56#                         Maintainer Stuff                             #
57########################################################################
[45]58
[47]59# Files that are generated and should be cleaned with make distclean
[227]60DISTCLEANFILES = $(MAKEOKFILE)
[47]61
[1565]62include BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.