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 1788 2015-01-28 17:25:23Z 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 33######################################################################## 34# Extra Targets # 35######################################################################## 36 37test: all 38 cd test; $(MAKE) test 39 40unitTest: test 41 42# Doxygen documentation 43 44doxydoc: 45 doxygen doxydoc/doxygen.conf 46 47clean-doxydoc: 48 ( cd doxydoc ; rm -rf html *.log *.tag ) 49 50clean-local: clean-doxydoc 51 if test -r test/Makefile; then cd test; $(MAKE) clean; fi 52 53distclean-local: 54 if test -r test/Makefile; then cd test; $(MAKE) distclean; fi 55 56install-exec-local: install-doc 57 58uninstall-local: uninstall-doc 59 60.PHONY: test unitTest doxydoc 61 62######################################################################## 63# Installation of the addlibs and .pc file # 64######################################################################## 65 66pkgconfiglibdir = $(libdir)/pkgconfig 67pkgconfiglib_DATA = coinutils.pc 68 69addlibsdir = $(DESTDIR)$(datadir)/coin/doc/CoinUtils 70 71install-data-hook: 72 @$(mkdir_p) "$(addlibsdir)" 73if COIN_HAS_PKGCONFIG 74 PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@:$(DESTDIR)$(pkgconfiglibdir) \ 75 "$(PKG_CONFIG)" --libs coinutils > $(addlibsdir)/coinutils_addlibs.txt 76else 77if COIN_CXX_IS_CL 78 echo "-libpath:`$(CYGPATH_W) @abs_lib_dir@` libCoinUtils.lib @COINUTILSLIB_LIBS_INSTALLED@" > $(addlibsdir)/coinutils_addlibs.txt 79else 80 echo -L@abs_lib_dir@ -lCoinUtils @COINUTILSLIB_LIBS_INSTALLED@ > $(addlibsdir)/coinutils_addlibs.txt 81endif 82endif 83 84uninstall-hook: 85 rm -f $(addlibsdir)/coinutils_addlibs.txt 86 87######################################################################## 88# Maintainer Stuff # 89######################################################################## 90 91CLEANFILES = 92 93# Files that are generated and should be cleaned with make distclean 94DISTCLEANFILES = 95 96include BuildTools/Makemain.inc 97