Fork me on GitHub

source: git/external/fastjet/contribs/SoftKiller/Makefile@ 35cdc46

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 35cdc46 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: 2.2 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 -g
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=SoftKiller
18SRCS=SoftKiller.cc
19EXAMPLES=example
20INSTALLED_HEADERS=SoftKiller.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 makes it possible to automatically build
49# each of the examples listed in $EXAMPLES
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/Pythia-Zp2jets-lhc-pileup-1ev.dat || exit 1; \
57 done
58 @echo "All tests successful"
59
60# cleaning the directory
61clean:
62 rm -f *~ *.o
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
80SoftKiller.o: SoftKiller.hh
81example.o: SoftKiller.hh
Note: See TracBrowser for help on using the repository browser.