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 2121 2015-03-08 22:28:27Z 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/OsiClp recursively, since src/OsiClp/libOsiClp depends on src/libClp
18if COIN_HAS_OSI
19  SUBDIRS += src/OsiClp
20endif
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
26if ALWAYS_FALSE
27  SUBDIRS += test
28endif
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
36EXTRA_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
85test: all
86	cd test; $(MAKE) test
87
88unitTest: test
89
90# Doxygen documentation
91
92doxydoc:
93	doxygen doxydoc/doxygen.conf
94
95clean-doxydoc:
96	( cd doxydoc ; rm -rf html *.log *.tag )
97
98
99clean-local: clean-doxydoc
100	if test -r test/Makefile; then cd test; $(MAKE) clean; fi
101
102distclean-local:
103	if test -r test/Makefile; then cd test; $(MAKE) distclean; fi
104
105install-exec-local: install-doc
106
107uninstall-local: uninstall-doc
108
109.PHONY: test unitTest doxydoc
110
111########################################################################
112#                    Creation of the addlibs file                      #
113########################################################################
114
115pkgconfiglibdir = $(libdir)/pkgconfig
116pkgconfiglib_DATA = clp.pc
117
118if COIN_HAS_OSI
119pkgconfiglib_DATA += osi-clp.pc
120endif
121
122addlibsdir = $(DESTDIR)$(datadir)/coin/doc/Clp
123
124install-data-hook:
125	@$(mkdir_p) "$(addlibsdir)"
126if COIN_HAS_PKGCONFIG
127	PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@:$(DESTDIR)$(pkgconfiglibdir) \
128	$(PKG_CONFIG) --libs clp > $(addlibsdir)/clp_addlibs.txt
129else
130if COIN_CXX_IS_CL
131	echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libClpSolver.lib libClp.lib @CLPLIB_LIBS_INSTALLED@" > $(addlibsdir)/clp_addlibs.txt
132else
133	echo -L@abs_lib_dir@ -lClp @CLPLIB_LIBS_INSTALLED@ > $(addlibsdir)/clp_addlibs.txt
134endif
135endif
136
137uninstall-hook:
138	rm -f $(addlibsdir)/clp_addlibs.txt
139
140########################################################################
141#                         Maintainer Stuff                             #
142########################################################################
143
144CLEANFILES =
145
146# Files that are generated and should be cleaned with make distclean
147DISTCLEANFILES =
148
149include BuildTools/Makemain.inc
150