source: trunk/CoinMP/Makefile.am @ 428

Last change on this file since 428 was 428, checked in by stefan, 8 years ago

fixup buildsystem

  • fix compiler warnings
  • get C code compiling with C compiler (no C++ style comments allowed!)
  • remove unnecessary package checks, CoinMP seems to depend on Clp, OsiClp?, and Cbc only
  • fix link to mailing list
  • fix copyright statement
  • remove unnecessary config_default.h, CoinMP does not use config header files
  • remove old addlibs file
  • create useable Makefile for example
  • fix directory where example source is installed
  • fix addlibs file for cl compiler
  • fix include of Makemain.inc
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.8 KB
RevLine 
[41]1# Copyright (C) 2006 International Business Machines and others.
2# All Rights Reserved.
3# This file is distributed under the Common Public License.
4
[42]5## $Id: Makefile.am 428 2011-08-07 15:02:46Z stefan $
[41]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
[74]31EXTRA_DIST = \
32        examples/Makefile \
[108]33        examples/example.c
[41]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                    #
[74]54#                  Installation of the examples dir                    #
[41]55########################################################################
56
[427]57pkgconfiglibdir = $(libdir)/pkgconfig
58pkgconfiglib_DATA = coinmp.pc
[41]59
[427]60addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinMP
61
[428]62addlibs_DATA = examples/Makefile examples/example.c
[74]63
[427]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
[428]71        echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinMP.lib @CBCLIB_LIBS_INSTALLED@" > $(addlibsdir)/coin_addlibs_cpp.txt
[427]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
[193]79
[428]80install-exec-local: install-doc
81
82uninstall-local: uninstall-doc
83
[41]84########################################################################
85#                         Maintainer Stuff                             #
86########################################################################
87
88# Files that are generated and should be cleaned with make distclean
89DISTCLEANFILES =
90
[428]91include BuildTools/Makemain.inc
Note: See TracBrowser for help on using the repository browser.