Fork me on GitHub

source: git/external/fastjet/contribs/Nsubjettiness/Makefile@ 492aef9

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 492aef9 was 35cdc46, checked in by Pavel Demin <demin@…>, 10 years ago

upgrade FastJet to version 3.1.0-beta.1, upgrade Nsubjettiness to version 2.1.0, add SoftKiller version 1.0.0

  • Property mode set to 100644
File size: 3.8 KB
Line 
1# If you are using this Makefile standalone and fastjet-config is not
2# in your path, edit this line to specify the full path
3FASTJETCONFIG=fastjet-config
4PREFIX=`$(FASTJETCONFIG) --prefix`
5CXX=g++
6CXXFLAGS= -O3 -Wall -Woverloaded-virtual -g -Wunused-parameter
7install_script = $(SHELL) ../utils/install-sh
8check_script = ../utils/check.sh
9
10# global contrib-wide Makefile include may override some of the above
11# variables (leading "-" means don't give an error if you can't find
12# the file)
13-include ../.Makefile.inc
14
15#------------------------------------------------------------------------
16# things that are specific to this contrib
17NAME=Nsubjettiness
18SRCS=Nsubjettiness.cc Njettiness.cc NjettinessPlugin.cc MeasureFunction.cc AxesFinder.cc WinnerTakeAllRecombiner.cc NjettinessDefinition.cc
19EXAMPLES=example_basic_usage example_advanced_usage example_v1p0p3
20INSTALLED_HEADERS=Nsubjettiness.hh Njettiness.hh NjettinessPlugin.hh MeasureFunction.hh AxesFinder.hh WinnerTakeAllRecombiner.hh NjettinessDefinition.hh
21#------------------------------------------------------------------------
22
23CXXFLAGS+= $(shell $(FASTJETCONFIG) --cxxflags)
24LDFLAGS += -lm $(shell $(FASTJETCONFIG) --libs)
25
26OBJS = $(SRCS:.cc=.o)
27EXAMPLES_SRCS = $(EXAMPLES:=.cc)
28
29install_HEADER = $(install_script) -c -m 644
30install_LIB = $(install_script) -c -m 644
31install_DIR = $(install_script) -d
32install_DATA = $(install_script) -c -m 644
33install_PROGRAM = $(install_script) -c -s
34install_SCRIPT = $(install_script) -c
35
36.PHONY: clean distclean examples check install
37
38# compilation of the code (default target)
39all: lib$(NAME).a
40
41lib$(NAME).a: $(OBJS)
42 ar cru lib$(NAME).a $(OBJS)
43 ranlib lib$(NAME).a
44
45# building the examples
46examples: $(EXAMPLES)
47
48# the following construct alloews to build each of the examples listed
49# in $EXAMPLES automatically
50$(EXAMPLES): % : %.o all
51 $(CXX) -o $@ $< -L. -l$(NAME) $(LDFLAGS)
52
53# check that everything went fine
54check: examples
55 @for prog in $(EXAMPLES); do\
56 $(check_script) $${prog} ../data/single-event.dat || exit 1; \
57 done
58 @echo "All tests successful"
59
60# cleaning the directory
61clean:
62 rm -f *~ *.o *.a
63
64distclean: clean
65 rm -f lib$(NAME).a $(EXAMPLES)
66
67# install things in PREFIX/...
68install: all
69 $(install_DIR) $(PREFIX)/include/fastjet/contrib
70 for header in $(INSTALLED_HEADERS); do\
71 $(install_HEADER) $$header $(PREFIX)/include/fastjet/contrib/;\
72 done
73 $(install_DIR) $(PREFIX)/lib
74 $(install_LIB) lib$(NAME).a $(PREFIX)/lib
75
76depend:
77 makedepend -Y -- -- $(SRCS) $(EXAMPLES_SRCS)
78# DO NOT DELETE
79
80Nsubjettiness.o: Nsubjettiness.hh Njettiness.hh MeasureFunction.hh
81Nsubjettiness.o: AxesFinder.hh WinnerTakeAllRecombiner.hh
82Nsubjettiness.o: NjettinessDefinition.hh
83Njettiness.o: Njettiness.hh MeasureFunction.hh AxesFinder.hh
84Njettiness.o: WinnerTakeAllRecombiner.hh NjettinessDefinition.hh
85NjettinessPlugin.o: NjettinessPlugin.hh Njettiness.hh MeasureFunction.hh
86NjettinessPlugin.o: AxesFinder.hh WinnerTakeAllRecombiner.hh
87NjettinessPlugin.o: NjettinessDefinition.hh
88MeasureFunction.o: MeasureFunction.hh
89AxesFinder.o: AxesFinder.hh WinnerTakeAllRecombiner.hh MeasureFunction.hh
90WinnerTakeAllRecombiner.o: WinnerTakeAllRecombiner.hh
91NjettinessDefinition.o: NjettinessDefinition.hh MeasureFunction.hh
92NjettinessDefinition.o: AxesFinder.hh WinnerTakeAllRecombiner.hh
93example_basic_usage.o: Nsubjettiness.hh Njettiness.hh MeasureFunction.hh
94example_basic_usage.o: AxesFinder.hh WinnerTakeAllRecombiner.hh
95example_basic_usage.o: NjettinessDefinition.hh NjettinessPlugin.hh
96example_advanced_usage.o: Nsubjettiness.hh Njettiness.hh MeasureFunction.hh
97example_advanced_usage.o: AxesFinder.hh WinnerTakeAllRecombiner.hh
98example_advanced_usage.o: NjettinessDefinition.hh NjettinessPlugin.hh
99example_v1p0p3.o: Nsubjettiness.hh Njettiness.hh MeasureFunction.hh
100example_v1p0p3.o: AxesFinder.hh WinnerTakeAllRecombiner.hh
101example_v1p0p3.o: NjettinessDefinition.hh NjettinessPlugin.hh
Note: See TracBrowser for help on using the repository browser.