ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/MitHzz4l/Selection/Makefile
Revision: 1.29
Committed: Mon Dec 17 17:12:20 2012 UTC (12 years, 4 months ago) by dkralph
Branch: MAIN
CVS Tags: compiled
Changes since 1.28: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 khahn 1.1 ifneq ( $(HAVE_MAKEDEFS), 1 )
2     include ../Makefile.defs
3     endif
4    
5     LIB = lib/libSelection.a
6 dkralph 1.24 OBJ = PassHLT.o ReferenceSelection.o SelectionFuncs.o
7 dkralph 1.28 EXE = applySelection.exe plotH4l.exe merge.exe #applySelectionZ4L.exe applySelectionFillAnglesRunBDT.exe
8     CCFLAGS += -I interface -I ../Util/interface -I ../Angles/interface -I ../DataStruct/interface -I ../LeptonSelection/interface -I ../NonMCBackground/interface -I ../../MitCommon/DataFormats/interface -I $(CMSSW_BASE)/src/CondFormats/JetMETObjects/interface -I ${CMSSW_RELEASE_BASE}/src -I $(CMSSW_BASE)/src/MitAna/Utils/interface -I $(CMSSW_BASE)/src/EGamma/EGammaAnalysisTools/interface/
9     LDFLAGS += -Llib -L ../DataStruct/lib -lDataStruct -L ../Angles/lib -lAngles -lSelection -L ../LeptonSelection/lib -l LeptonSelection -lTMVA -L ../Util/lib -lUtil -lEGammaEGammaAnalysisTools -l RooFit -l RooFitCore -l MitCommonDataFormats -lCondFormatsJetMETObjects -L ../DataStruct/lib -lDataStruct -L ../Util/lib -lUtil -lMitAnaUtils -L /afs/cern.ch/cms/slc5_amd64_gcc462/lcg/root/5.32.00-cms9/lib -lCintex
10 khahn 1.1
11     ### all ###################################################
12    
13     all : lib exe
14    
15     ### lib ###################################################
16    
17     lib : $(LIB)
18     $(LIB) : $(addprefix src/, $(OBJ) )
19     ar cr $@ $^
20    
21     %.o : %.cc
22     $(CC) $(CCFLAGS) -c $< -o $@
23    
24     ### test ###################################################
25    
26     exe : $(addprefix bin/, $(EXE) )
27    
28 dkralph 1.28 bin/%.exe : src/%.cc $(LIB) ../Util/lib/libUtil.a ../LeptonSelection/lib/libLeptonSelection.a ./lib/libSelection.a ../DataStruct/lib/SimpleLeptonDict.o ../DataStruct/lib/libDataStruct.a ../Angles/lib/libAngles.a
29 khahn 1.17 $(CC) $(CCFLAGS) -D CMSSW_BASE=\"$(CMSSW_BASE)\" $< -o $@ $(LDFLAGS) ../DataStruct/lib/SimpleLeptonDict.o
30 khahn 1.16
31 dkralph 1.29 bin/plotH4l.exe : src/plotH4l.cc $(LIB) ../DataStruct/lib/SimpleLeptonDict.o ../NonMCBackground/interface/fake_defs.h ../Util/interface/PlotHeaders.h ../Util/interface/HistHeaders.h
32 dkralph 1.25 $(CC) $(CCFLAGS) $< -o $@ $(LDFLAGS) ../DataStruct/lib/SimpleLeptonDict.o -L ../NonMCBackground/lib -l NonMCBackground
33    
34 khahn 1.1 ### clean ###################################################
35    
36     clean :
37     rm -f src/*.o
38     rm -f src/*~
39     rm -f lib/*.a
40     rm -f bin/*.exe
41    
42     ### depend ###################################################
43    
44     SRC = $(patsubst %.o, %.cc, $(addprefix src/, $(OBJ) ) )
45     SRC += $(patsubst %.exe, %.cc, $(addprefix src/, $(EXE) ) )
46     depend : $(SRC)
47     @ makedepend -f Makefile.dep -- $(CCFLAGS) -- $^
48    
49     ### depend rules follow ######################################
50    
51 dkralph 1.28 -include Makefile.dep