-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·65 lines (47 loc) · 2.01 KB
/
Makefile
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
ROOTCFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
ROOTLIBS = $(shell $(ROOTSYS)/bin/root-config --libs)
ROOTGLIBS = $(shell $(ROOTSYS)/bin/root-config --glibs)
#######################################
# -- DEFINE ARCH to something sensible!
#######################################
#
CXX = g++
CXXFLAGS = -g -Wall -fPIC
LD = g++
LDFLAGS = -g
SOFLAGS = -shared
CXXFLAGS += $(ROOTCFLAGS)
LIBS = $(ROOTLIBS)
NGLIBS = $(ROOTGLIBS)
NGLIBS += -lMinuit
GLIBS = $(filter-out -lNew, $(NGLIBS))
COREPATH = $(HOME)/CORE
FWLIBPATH = $(HOME)/Software/MiniFWLite
CXXFLAGS += -I$(COREPATH)
FWLIB = $(FWLIBPATH)/libMiniFWLite.so
CORELIB = $(COREPATH)/CMS3_CORE.so
runBabyMaker: runBabyMaker.o looper.o EventTree.o LeptonTree.o JetTree.o IsoTracksTree.o TauTree.o GenParticleTree.o StopSelections.o
$(LD) $(LDFLAGS) -o runBabyMaker runBabyMaker.o looper.o EventTree.o JetTree.o LeptonTree.o IsoTracksTree.o TauTree.o GenParticleTree.o StopSelections.o $(GLIBS) -lGenVector -lTMVA -lEG $(CORELIB) $(FWLIB)
runBabyMaker.o: runBabyMaker.C looper.h
$(CXX) $(CXXFLAGS) -c runBabyMaker.C
looper.o: looper.C looper.h EventTree.h TauTree.h IsoTracksTree.h GenParticleTree.h LeptonTree.h StopSelections.h
$(CXX) $(CXXFLAGS) -c looper.C
EventTree.o: EventTree.cc EventTree.h StopSelections.h
$(CXX) $(CXXFLAGS) -c EventTree.cc
LeptonTree.o: LeptonTree.cc LeptonTree.h StopSelections.h
$(CXX) $(CXXFLAGS) -c LeptonTree.cc
JetTree.o: JetTree.cc JetTree.h StopSelections.h
$(CXX) $(CXXFLAGS) -c JetTree.cc
TauTree.o: TauTree.cc TauTree.h
$(CXX) $(CXXFLAGS) -c TauTree.cc
IsoTracksTree.o: IsoTracksTree.cc IsoTracksTree.h
$(CXX) $(CXXFLAGS) -c IsoTracksTree.cc
GenParticleTree.o: GenParticleTree.cc GenParticleTree.h
$(CXX) $(CXXFLAGS) -c GenParticleTree.cc
StopSelections.o: StopSelections.cc StopSelections.h
$(CXX) $(CXXFLAGS) -c StopSelections.cc
.PHONY: clean
clean:
rm -v -f \
runBabyMaker \
*o *d *.so; echo "Done"