source: trunk/CoinMP/Makefile.am @ 427

Last change on this file since 427 was 427, checked in by tkr, 8 years ago

Updates to build files and changes to automatically generated headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 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 427 2011-08-06 16:12:15Z 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        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
62examplefiles = $(srcdir)/examples/Makefile $(srcdir)/examples/example.c
63examplesdir = $(prefix)/share/doc/coin/$(PACKAGE_NAME)/examples
64
65install-exec-local: install-doc
66        mkdir -p $(DESTDIR)$(examplesdir)
67        $(install_sh_DATA) $(examplefiles) $(DESTDIR)$(examplesdir)
68
69install-data-hook:
70        @$(mkdir_p) "$(addlibsdir)"
71if COIN_HAS_PKGCONFIG
72        PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
73        $(PKG_CONFIG) --libs coinmp > $(addlibsdir)/coinmp_addlibs.txt
74else
75if COIN_CXX_IS_CL
76        echo "/libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
77else
78        echo -L@abs_lib_dir@ -lCoinMP @COINMP_LIBS_INSTALLED@ > $(addlibsdir)/coinmp_addlibs.txt
79endif
80endif
81
82uninstall-local: uninstall-doc
83        rm -f $(DESTDIR)$(addlibsdir)/$(addlibsfile)
84        rm -rf $(DESTDIR)$(examplesdir)
85
86uninstall-hook:
87        rm -f $(addlibsdir)/coinmp_addlibs.txt
88
89########################################################################
90#                         Maintainer Stuff                             #
91########################################################################
92
93# Files that are generated and should be cleaned with make distclean
94DISTCLEANFILES =
95
96include ../BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.