source: stable/2.8/Cbc/Makefile.am @ 1981

Last change on this file since 1981 was 1739, checked in by stefan, 7 years ago

fix name of addlibs file when using cl/icl compiler; rerun autotools

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.3 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Eclipse Public License.
4
5## $Id: Makefile.am 1739 2011-10-13 20:36:06Z tkr $
6
7# Author:  Andreas Waechter           IBM    2006-04-13
8
9AUTOMAKE_OPTIONS = foreign
10
11########################################################################
12#                          Subdirectories                              #
13########################################################################
14
15SUBDIRS = src
16
17# We don't want to compile the test subdirectory, unless the test target is
18# specified.  But we need to list it as subdirectory to make sure that it is
19# included in the tarball
20
21if ALWAYS_FALSE
22  SUBDIRS += test
23endif
24
25########################################################################
26#             Additional files to be included in tarball               #
27########################################################################
28
29# Here we need include all files that are not mentioned in other Makefiles
30
31EXTRA_DIST = \
32        doc/authors.xml \
33        doc/cbcexe.xml \
34        doc/cbcmodelclass.xml \
35        doc/cbcuserguide.xml \
36        doc/doxygen.xml \
37        doc/faqcontent.xml \
38        doc/faq.xml \
39        doc/intro.xml \
40        doc/legal.xml \
41        doc/messages.xml \
42        doc/moresamples.xml \
43        doc/osibuild.xml \
44        doc/otherclasses.xml \
45        doc/revhist.xml \
46        examples/CbcBranchFollow2.cpp \
47        examples/CbcBranchFollow2.hpp \
48        examples/CbcBranchLink.cpp \
49        examples/CbcBranchLink.hpp \
50        examples/CbcBranchUser.cpp \
51        examples/CbcBranchUser.hpp \
52        examples/CbcCompareUser.cpp \
53        examples/CbcCompareUser.hpp \
54        examples/CbcSolver2.cpp \
55        examples/CbcSolver2.hpp \
56        examples/CbcSolver3.cpp \
57        examples/CbcSolver3.hpp \
58        examples/CbcSolverLongThin.cpp \
59        examples/CbcSolverLongThin.hpp \
60        examples/CbcSolverLink.hpp \
61        examples/CbcSolverLink.cpp \
62        examples/ClpQuadInterface.cpp \
63        examples/ClpQuadInterface.hpp \
64        examples/OsiBranchLink.cpp \
65        examples/OsiBranchLink.hpp \
66        examples/OsiSolverLink.hpp \
67        examples/OsiSolverLink.cpp \
68        examples/crew.cpp \
69        examples/driver2.cpp \
70        examples/driver.cpp \
71        examples/fast0507b.cpp \
72        examples/fast0507.cpp \
73        examples/gear.cpp \
74        examples/hotstart.cpp \
75        examples/link.cpp \
76        examples/longthin.cpp \
77        examples/lotsize.cpp \
78        examples/Makefile.in \
79        examples/minimum.cpp \
80        examples/nway.cpp \
81        examples/qmip.cpp \
82        examples/quad2.mps \
83        examples/quad.mps \
84        examples/repeat.cpp \
85        examples/sample1.cpp \
86        examples/sample2.cpp \
87        examples/sample3.cpp \
88        examples/sample4.cpp \
89        examples/sample5.cpp \
90        examples/sos.cpp \
91        examples/sudoku.cpp \
92        examples/sudoku_sample.csv
93
94########################################################################
95#                           Extra Targets                              #
96########################################################################
97
98test: all
99        cd test; $(MAKE) test
100
101unitTest: test
102
103# Doxygen documentation
104
105doxydoc:
106        doxygen doxydoc/doxygen.conf
107
108clean-doxydoc:
109        ( cd doxydoc ; rm -rf html *.log *.tag )
110
111
112clean-local: clean-doxydoc
113        if test -r test/Makefile; then cd test; $(MAKE) clean; fi
114
115distclean-local:
116        if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
117
118install-exec-local: install-doc
119
120uninstall-local: uninstall-doc
121
122.PHONY: test unitTest doxydoc
123
124########################################################################
125#                  Installation of the addlibs file                    #
126########################################################################
127
128pkgconfiglibdir = $(libdir)/pkgconfig
129pkgconfiglib_DATA = cbc.pc osi-cbc.pc
130
131addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Cbc
132
133install-data-hook:
134        @$(mkdir_p) "$(addlibsdir)"
135if COIN_HAS_PKGCONFIG
136        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
137        $(PKG_CONFIG) --libs cbc > $(addlibsdir)/cbc_addlibs.txt
138else
139if COIN_CXX_IS_CL
140        echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCbc.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/cbc_addlibs.txt
141else
142        echo -L@abs_lib_dir@ -lCbc @CBCLIB_LIBS_INSTALLED@ > $(addlibsdir)/cbc_addlibs.txt
143endif
144endif
145
146uninstall-hook:
147        rm -f $(addlibsdir)/cbc_addlibs.txt
148
149########################################################################
150#                         Maintainer Stuff                             #
151########################################################################
152
153CLEANFILES =
154
155# Files that are generated and should be cleaned with make distclean
156DISTCLEANFILES =
157
158include BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.