-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.in
70 lines (52 loc) · 2.31 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# -*- Makefile -*-
# This Makefile template gets processed by the 'configure' script using
# @contrib_commandline@
# If you edit the processed version, any changes will be lost after the next configure
# (for developers, make sure any edits fit with the rest of the build system)
# installation setup
SUBDIRS=@CONTRIB_BUILD_LIST@
SUBDIRS.all=$(SUBDIRS:=.all)
# these will be overriden if the user specifies CXX or CXXFLAGS with configure
# they will also be overriden by definitions in subsiduary Makefiles
CXX=g++
CXXFLAGS=-O2 -Wall -g
# get any variables defined in the contrib-wide include
-include .Makefile.inc
# make invocations in subdirectories have an environment variable
# set so that they can alter their behaviour if need be
# (e.g. for make check)
SUBMAKE= $(MAKE) FJCONTRIB_SUBMAKE=1
.PHONY: $(SUBDIRS) $(SUBDIRS.all) clean distclean check check_init install examples
all: $(SUBDIRS.all)
install: all $(SUBDIRS)
examples clean: $(SUBDIRS)
distclean: $(SUBDIRS) fragile-shared-distclean
check: check_init $(SUBDIRS)
@echo ""
@cat test_summary.tmp
@printf "\n%d out of %d tests passed\n\n" `grep "Success" test_summary.tmp | wc -l` `grep "^ " test_summary.tmp | wc -l`
@rm -f test_summary.tmp
check_init:
@echo "Summary of tests" > test_summary.tmp
@echo "----------------" >> test_summary.tmp
# distclean removes the Makefile, but leaves in config.log
distclean:
rm -f Makefile
rm -f .Makefile.inc
# dirty hack to provide a shared library to CMS; this is extremely fragile
# and will be hopefully replaced with a more robust solution at some
# point in the future; note, that you must still do make install
# in order for all the headers to be installed
fragile-shared: libfastjetcontribfragile.@DYNLIBEXT@
fragile_SHARED_SRC_LIST=@FRAGILE_SHARED_SRC_LIST@
libfastjetcontribfragile.@DYNLIBEXT@: $(fragile_SHARED_SRC_LIST)
$(CXX) @DYNLIBOPT@ -fPIC -DPIC $(CXXFLAGS) `$(FASTJETCONFIG) --cxxflags --libs` $(fragile_SHARED_SRC_LIST) -o libfastjetcontribfragile.@DYNLIBEXT@
fragile-shared-install: fragile-shared
utils/install-sh -c -m 644 libfastjetcontribfragile.@DYNLIBEXT@ $(PREFIX)/lib
@DYNLIBPOSTPROC@ $(PREFIX)/lib/libfastjetcontribfragile.@DYNLIBEXT@
fragile-shared-distclean:
rm -f libfastjetcontribfragile.@DYNLIBEXT@
$(SUBDIRS):
+$(SUBMAKE) -C $@ $(MAKECMDGOALS)
$(SUBDIRS.all):
+$(SUBMAKE) -C $(basename $@)