libpcp: optimise DSO lookups for local context mode startup
[pcp.git] / build / GNUmakefile
blob1cf1fec6df225ef02e2fc787a7094957946153d2
2 # Copyright (c) 2014 Red Hat.
3 # Copyright (c) 2000,2004 Silicon Graphics, Inc. All Rights Reserved.
4 #
5 # This program is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by the
7 # Free Software Foundation; either version 2 of the License, or (at your
8 # option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # for more details.
16 TOPDIR = ..
17 include $(TOPDIR)/src/include/builddefs
18 -include ./GNUlocaldefs
20 SCRIPTS = cleanconfigs cleantmpdirs
21 LSRCFILES = $(SCRIPTS) GNUlocaldefs.in
22 LDIRT = pack_pcp.bin pack_pro.bin pro.src
23 LDIRDIRT = deb $(TOPDIR)/$(PACKAGE_NAME)-?.?.?
25 # for clean and clobber
26 SUBDIRS = tar rpm mac aix sun containers
28 default install default_pcp install_pcp : $(SUBDIRS)
29 $(SUBDIRS_MAKERULE)
31 pack :: pack_pcp
33 pack_pcp :
34 @DIST_MANIFEST=`pwd`/$@.bin; DIST_ROOT=/tmp/pcp-build-$$$$; \
35 export DIST_MANIFEST DIST_ROOT; \
36 rm -f $$DIST_MANIFEST; \
37 echo === install === ; \
38 $(MAKE) -j 1 -C $(TOPDIR) install_pcp || exit $$?; \
39 if test ! -z "$(TAR)"; then \
40 echo === tar === && $(MAKE) -j 1 -C tar $@ || exit $$?; \
41 fi; \
42 if test ! -z "$(PACKAGE_MAKER)"; then \
43 echo === mac === && $(MAKE) -j 1 -C mac $@ || exit $$?; \
44 fi; \
45 if test ! -z "$(MKINSTALLP)"; then \
46 echo === aix === && $(MAKE) -j 1 -C aix $@ || exit $$?; \
47 fi; \
48 if test ! -z "$(PKGMK)" ; then \
49 echo === sun === && $(MAKE) -j 1 -C sun $@ || exit $$?; \
50 fi; \
51 test -z "$$KEEP_DIST_ROOT" && rm -rf $$DIST_ROOT; echo Done
53 include $(BUILDRULES)