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 1996 2013-11-21 19:56:42Z forrest $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | AUTOMAKE_OPTIONS = foreign |
---|
10 | |
---|
11 | ######################################################################## |
---|
12 | # Subdirectories # |
---|
13 | ######################################################################## |
---|
14 | |
---|
15 | SUBDIRS = src |
---|
16 | |
---|
17 | # Don't do src/OsiClp recursively, since src/OsiClp/libOsiClp depends on src/libClp |
---|
18 | if COIN_HAS_OSI |
---|
19 | SUBDIRS += src/OsiClp |
---|
20 | endif |
---|
21 | |
---|
22 | # We don't want to compile the test subdirectory, unless the test target is |
---|
23 | # specified. But we need to list it as subdirectory to make sure that it is |
---|
24 | # included in the tarball |
---|
25 | |
---|
26 | if ALWAYS_FALSE |
---|
27 | SUBDIRS += test |
---|
28 | endif |
---|
29 | |
---|
30 | ######################################################################## |
---|
31 | # Additional files to be included in tarball # |
---|
32 | ######################################################################## |
---|
33 | |
---|
34 | # Here we need include all files that are not mentioned in other Makefiles |
---|
35 | |
---|
36 | EXTRA_DIST = \ |
---|
37 | doc/authors.xml \ |
---|
38 | doc/basicmodelclasses.xml \ |
---|
39 | doc/clpexe.xml \ |
---|
40 | doc/clpuserguide.xml \ |
---|
41 | doc/doxygen.xml \ |
---|
42 | doc/faqcontent.xml \ |
---|
43 | doc/faq.xml \ |
---|
44 | doc/intro.xml \ |
---|
45 | doc/legal.xml \ |
---|
46 | doc/messages.xml \ |
---|
47 | doc/moresamples.xml \ |
---|
48 | doc/notsobasic.xml \ |
---|
49 | doc/revhist.xml \ |
---|
50 | doc/Howto/docbook4clp.xml \ |
---|
51 | examples/addBits.cpp \ |
---|
52 | examples/addColumns.cpp \ |
---|
53 | examples/addRows.cpp \ |
---|
54 | examples/decompose.cpp \ |
---|
55 | examples/defaults.cpp \ |
---|
56 | examples/driver2.cpp \ |
---|
57 | examples/driverC.c \ |
---|
58 | examples/driver.cpp \ |
---|
59 | examples/dualCuts.cpp \ |
---|
60 | examples/ekk.cpp \ |
---|
61 | examples/ekk_interface.cpp \ |
---|
62 | examples/hello.cpp \ |
---|
63 | examples/hello.mps \ |
---|
64 | examples/input.130 \ |
---|
65 | examples/INSTALL \ |
---|
66 | examples/makeDual.cpp \ |
---|
67 | examples/Makefile.in \ |
---|
68 | examples/minimum.cpp \ |
---|
69 | examples/network.cpp \ |
---|
70 | examples/piece.cpp \ |
---|
71 | examples/rowColumn.cpp \ |
---|
72 | examples/sprint2.cpp \ |
---|
73 | examples/sprint.cpp \ |
---|
74 | examples/testBarrier.cpp \ |
---|
75 | examples/testBasis.cpp \ |
---|
76 | examples/testGub2.cpp \ |
---|
77 | examples/testGub.cpp \ |
---|
78 | examples/testQP.cpp \ |
---|
79 | examples/useVolume.cpp |
---|
80 | |
---|
81 | ######################################################################## |
---|
82 | # Extra Targets # |
---|
83 | ######################################################################## |
---|
84 | |
---|
85 | test: all |
---|
86 | cd test; $(MAKE) test |
---|
87 | |
---|
88 | unitTest: test |
---|
89 | |
---|
90 | # Doxygen documentation |
---|
91 | |
---|
92 | doxydoc: |
---|
93 | doxygen doxydoc/doxygen.conf |
---|
94 | |
---|
95 | clean-doxydoc: |
---|
96 | ( cd doxydoc ; rm -rf html *.log *.tag ) |
---|
97 | |
---|
98 | |
---|
99 | clean-local: clean-doxydoc |
---|
100 | if test -r test/Makefile; then cd test; $(MAKE) clean; fi |
---|
101 | |
---|
102 | distclean-local: |
---|
103 | if test -r test/Makefile; then cd test; $(MAKE) distclean; fi |
---|
104 | |
---|
105 | install-exec-local: install-doc |
---|
106 | |
---|
107 | uninstall-local: uninstall-doc |
---|
108 | |
---|
109 | .PHONY: test unitTest doxydoc |
---|
110 | |
---|
111 | ######################################################################## |
---|
112 | # Creation of the addlibs file # |
---|
113 | ######################################################################## |
---|
114 | |
---|
115 | pkgconfiglibdir = $(libdir)/pkgconfig |
---|
116 | pkgconfiglib_DATA = clp.pc |
---|
117 | |
---|
118 | if COIN_HAS_OSI |
---|
119 | pkgconfiglib_DATA += osi-clp.pc |
---|
120 | endif |
---|
121 | |
---|
122 | addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Clp |
---|
123 | |
---|
124 | install-data-hook: |
---|
125 | @$(mkdir_p) "$(addlibsdir)" |
---|
126 | if COIN_HAS_PKGCONFIG |
---|
127 | PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \ |
---|
128 | $(PKG_CONFIG) --libs clp > $(addlibsdir)/clp_addlibs.txt |
---|
129 | else |
---|
130 | if COIN_CXX_IS_CL |
---|
131 | echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libClp.lib @CLPLIB_LIBS_INSTALLED@" > $(addlibsdir)/clp_addlibs.txt |
---|
132 | else |
---|
133 | echo -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@ > $(addlibsdir)/clp_addlibs.txt |
---|
134 | endif |
---|
135 | endif |
---|
136 | |
---|
137 | uninstall-hook: |
---|
138 | rm -f $(addlibsdir)/clp_addlibs.txt |
---|
139 | |
---|
140 | ######################################################################## |
---|
141 | # Maintainer Stuff # |
---|
142 | ######################################################################## |
---|
143 | |
---|
144 | CLEANFILES = |
---|
145 | |
---|
146 | # Files that are generated and should be cleaned with make distclean |
---|
147 | DISTCLEANFILES = |
---|
148 | |
---|
149 | include BuildTools/Makemain.inc |
---|