Changeset 2307 for ThirdParty/ASL/stable/1.2/Makefile.am
- Timestamp:
- Jun 19, 2011 10:12:04 AM (10 years ago)
- Location:
- ThirdParty/ASL/stable/1.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/ASL/stable/1.2
- Property svn:mergeinfo changed
/ThirdParty/ASL/trunk merged: 2078,2121,2141-2144,2146,2154,2156,2164,2215,2245,2263,2294
- Property svn:mergeinfo changed
-
ThirdParty/ASL/stable/1.2/Makefile.am
r2001 r2307 5 5 ## $Id$ 6 6 7 # the idea is to use the ASL Makefiles to build a static $(AMPLSOLVER_A) library via the compile_*_ASL scripts 8 # from this library, we create a libcoinasl.la libtool library 9 # in a MS VC build, we assume static libraries are used, so we can use the usual libtool machinery via LIBADD 10 # in a normal build, we build the libcoinasl.la library by extracting the $(AMPLSOLVER_A) library and relinking it via libtool 11 # in a shared library build, this should give a shared libcoinasl.so library 12 # further, configure should have taken care of adding -fPIC -DPIC to the CFLAGS when compiling the ASL sources 13 # to avoid a failure when building static libraries and a libtool warning, we additionally create .lo files for each object 14 7 15 AUTOMAKE_OPTIONS = foreign 8 16 9 17 EXTRA_DIST = get.ASL INSTALL.ASL 18 19 if COIN_CC_IS_CL 20 lib_LTLIBRARIES = libcoinasl.la 21 22 libcoinasl_la_SOURCES = 23 libcoinasl_la_LIBADD = $(AMPLSOLVER_A) 24 libcoinasl_la_DEPENDENCIES = $(AMPLSOLVER_A) 25 26 # This is for libtool 27 libcoinasl_la_LDFLAGS = $(LT_LDFLAGS) 28 endif 10 29 11 30 ######################################################################## … … 15 34 compdir = compdir 16 35 17 libampl = $(AMPLSOLVER_A)36 alltargets = stdio1.h arith.h funcadd0.$(OBJEXT) 18 37 19 alltargets = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 38 if COIN_CC_IS_CL 39 $(AMPLSOLVER_A): 40 ./compile_MS_ASL 41 42 else 43 $(AMPLSOLVER_A): 44 ./compile_Unix_ASL 45 46 libcoinasl.la : $(AMPLSOLVER_A) 47 $(mkdir_p) linkdir ; cd linkdir ; \ 48 $(AR) x ../$(AMPLSOLVER_A) ; \ 49 for i in *.o ; do \ 50 lofile=`echo $$i | sed -e 's/.o$$/.lo/'`; \ 51 echo "# fake line" > $$lofile ; \ 52 echo "# Generated by fake libtool" >> $$lofile ; \ 53 echo "pic_object='$$i'" >> $$lofile ; \ 54 echo "non_pic_object='$$i'" >> $$lofile ; \ 55 done ; cd .. 56 $(LIBTOOL) --tag=CC --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ -rpath $(libdir) $(LT_LDFLAGS) linkdir/*.lo 57 rm -rf linkdir 58 59 install-exec-local: libcoinasl.la 60 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" 61 if test -f libcoinasl.la; then \ 62 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) libcoinasl.la "$(DESTDIR)$(libdir)/libcoinasl.la"; \ 63 fi 64 65 uninstall-local: 66 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/libcoinasl.la" 67 68 alltargets += libcoinasl.la 69 70 endif 71 72 stdio1.h arith.h funcadd0.$(OBJEXT): $(AMPLSOLVER_A) 20 73 21 74 all-local: $(alltargets) 22 75 23 if MSVC_COMPILE 24 $(libampl): 25 ./compile_MS_ASL 26 else 27 $(libampl): 28 ./compile_Unix_ASL 29 endif 30 31 stdio1.h arith.h funcadd0.$(OBJEXT): $(libampl) 76 test: 77 @echo "No test available for ASL." 32 78 33 79 thirdpartyincludedir = $(includedir)/coin/ThirdParty … … 37 83 stdio1.h arith.h 38 84 39 thirdpartylibdir = $(libdir)40 thirdpartylib_DATA = $(libampl)41 42 85 pkgconfiglibdir = $(libdir)/pkgconfig 43 86 pkgconfiglib_DATA = coinasl.pc 44 87 45 if COIN_HAS_PKGCONFIG 46 addlibsdir = $(DESTDIR)$(datadir)/coin/doc/ThirdParty/ASL 47 48 install-data-hook: 49 @$(mkdir_p) "$(addlibsdir)" 50 PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \ 51 $(PKG_CONFIG) --libs coinasl > $(addlibsdir)/asl_addlibs.txt 52 53 uninstall-hook: 54 rm -f $(addlibsdir)/asl_addlibs.txt 55 endif 56 57 CLEANFILES = $(libampl) stdio1.h arith.h funcadd0.$(OBJEXT) 88 CLEANFILES = $(AMPLSOLVER_A) $(alltargets) 58 89 59 90 ######################################################################## … … 62 93 63 94 # Files that are generated and should be cleaned with make distclean 64 DISTCLEANFILES = $(MAKEOKFILE)95 DISTCLEANFILES = 65 96 66 97 include BuildTools/Makemain.inc
Note: See TracChangeset
for help on using the changeset viewer.