-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile_collections
46 lines (36 loc) · 1.62 KB
/
Makefile_collections
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
COMP=g++
FLAGS =
#FLAGS += -DUSE_EXAMPLE
FLAGS += -DSAVE_ALL_HISTOGRAMS
# FLAGS += -DCREATE_OPT_CUT_FILE
ROOTLIBS = `root-config --glibs --cflags` -lMinuit
INC= -I.. -I. -I./include -I${CLHEP}/include
ROOTINC= -I${ROOTSYS}/include
LIBS= -L. ${ROOTLIBS} -L${CLHEP}/lib -L${CLHEP}/lib
SRC= ./src
SELECTIONLIB=$(SRC)/rootNtupleClass.o $(SRC)/baseClass.o $(SRC)/analysisClass.o $(SRC)/jsonParser.o $(SRC)/pileupReweighter.o $(SRC)/qcdFitter.o $(SRC)/qcdFitter_V1.o $(SRC)/likelihoodGetter.o $(SRC)/eventListHelper.o
COLLECTIONLIB=$(SRC)/Collection.o
PHYOBJECTSLIB=$(SRC)/Object.o $(SRC)/GenParticle.o $(SRC)/GenJet.o $(SRC)/Electron.o $(SRC)/Muon.o $(SRC)/HighPtMuon.o $(SRC)/PFJet.o $(SRC)/HLTFilterObject.o
IDOBJECTSLIB=$(SRC)/GenParticleIDs.o $(SRC)/GenJetIDs.o $(SRC)/ElectronIDs.o $(SRC)/MuonIDs.o $(SRC)/HighPtMuonIDs.o $(SRC)/PFJetIDs.o
TOOLSLIB=$(SRC)/HLTFilterObjectCollectionHelper.o
EXE = main
# ********** TEMPLATE *************
# mainProg: mainProg.o $(SELECTIONLIB)
# $(COMP) $(INC) $(ROOTINC) $(LIBS) $(ROOTLIBS) -o $@ $(SELECTIONLIB) [email protected]
# *********************************
all: ${EXE}
main: $(SRC)/main.o $(SELECTIONLIB) $(COLLECTIONLIB) $(PHYOBJECTSLIB) $(IDOBJECTSLIB) $(TOOLSLIB)
$(COMP) $(INC) $(ROOTINC) $(LIBS) $(FLAGS) -o $@ $(SELECTIONLIB) $(COLLECTIONLIB) $(PHYOBJECTSLIB) $(IDOBJECTSLIB) $(TOOLSLIB) $(SRC)/[email protected]
clean:
rm -f src/*.o *.lo core core.*
rm -f *~
rm -f *.exe
rm -f $(EXE)
.cpp.o:
$(COMP) -c $(INC) $(ROOTINC) $(FLAGS) -o $@ $<
.cc.o:
$(COMP) -m32 -c $(INC) $(ROOTINC) $(FLAGS) -o $@ $<
.cxx.o:
$(COMP) -c $(INC) $(ROOTINC) $(FLAGS) -o $@ $<
.C.o:
$(COMP) -c $(INC) $(ROOTINC) $(FLAGS) -o $@ $<