source: trunk/CoinMP/Makefile.am @ 431

Last change on this file since 431 was 431, checked in by stefan, 8 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: 2.8 KB
Line 
1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
5## $Id: Makefile.am 431 2011-10-13 20:36:12Z stefan $
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        examples/Makefile \
33        examples/example.c
34
35########################################################################
36#                           Extra Targets                              #
37########################################################################
38
39test: all
40        cd test; make test
41
42unitTest: test
43
44clean-local:
45        if test -r test/Makefile; then cd test; make clean; fi
46
47distclean-local:
48        if test -r test/Makefile; then cd test; make distclean; fi
49
50.PHONY: test unitTest
51
52########################################################################
53#                  Installation of the addlibs file                    #
54#                  Installation of the examples dir                    #
55########################################################################
56
57pkgconfiglibdir = $(libdir)/pkgconfig
58pkgconfiglib_DATA = coinmp.pc
59
60addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
61
62addlibs_DATA = examples/Makefile examples/example.c
63
64install-data-hook:
65        @$(mkdir_p) "$(addlibsdir)"
66if COIN_HAS_PKGCONFIG
67        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
68        $(PKG_CONFIG) --libs coinmp > $(addlibsdir)/coinmp_addlibs.txt
69else
70if COIN_CXX_IS_CL
71        echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs.txt
72else
73        echo -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
74endif
75endif
76
77uninstall-hook:
78        rm -f $(addlibsdir)/coinmp_addlibs.txt
79
80install-exec-local: install-doc
81
82uninstall-local: uninstall-doc
83
84########################################################################
85#                         Maintainer Stuff                             #
86########################################################################
87
88# Files that are generated and should be cleaned with make distclean
89DISTCLEANFILES =
90
91include BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.