source: trunk/Cbc/Makefile.am @ 1990

Last change on this file since 1990 was 1990, checked in by tkr, 5 years ago

Putting CbcSolver? into cbc_addlibs.txt when plg-config is not present

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