Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:19

0001 ################################################################################
0002 #
0003 # CondFormats/JetMETObjects Makefile (for standalone use outside CMSSW/SCRAM)
0004 # ---------------------------------------------------------------------------
0005 #
0006 # INSTRUCTIONS:
0007 # =============
0008 # setenv ROOTSYS /path/to/root
0009 # setenv PATH $ROOTSYS/bin:${PATH}
0010 # setenv LD_LIBRARY_PATH $ROOTSYS/lib
0011 #
0012 # mkdir standalone; cd standalone
0013 # setenv STANDALONE_DIR $PWD
0014 # setenv PATH $STANDALONE_DIR/bin:${PATH}
0015 # setenv LD_LIBRARY_PATH $STANDALONE_DIR/lib:${LD_LIBRARY_PATH}
0016 # cvs co -d JetMETObjects CMSSW/CondFormats/JetMETObjects
0017 # cd JetMETObjects
0018 # make
0019 #
0020 # [you might want to stick these into e.g. $STANDALONE_DIR/setup.[c]sh]
0021 #
0022 #             07/11/2009 Philipp Schieferdecker <philipp.schieferdecker@cern.ch>
0023 ################################################################################
0024 
0025 ifeq ($(STANDALONE_DIR),)
0026         standalone_dir:=../
0027         export STANDALONE_DIR:=$(standalone_dir)
0028 endif
0029 
0030 
0031 TMPDIR       = $(STANDALONE_DIR)/tmp
0032 LIBDIR       = $(STANDALONE_DIR)/lib
0033 BINDIR       = $(STANDALONE_DIR)/bin
0034 
0035 
0036 
0037 CXX          = g++
0038 
0039 
0040 ROOTCXXFLAGS = $(shell $(ROOTSYS)/bin/root-config --cflags)
0041 CXXFLAGS     = -O3 -Wall -fPIC -DSTANDALONE -I. $(ROOTCXXFLAGS)
0042 
0043 ROOTLIBS     = $(shell $(ROOTSYS)/bin/root-config --libs)
0044 
0045 OBJS         = $(TMPDIR)/JetCorrectorParameters.o \
0046                $(TMPDIR)/SimpleJetCorrectionUncertainty.o \
0047                $(TMPDIR)/JetCorrectionUncertainty.o \
0048                $(TMPDIR)/SimpleJetCorrector.o \
0049                $(TMPDIR)/FactorizedJetCorrector.o \
0050                $(TMPDIR)/JetMETObjects_dict.o
0051 
0052 LIB          = libJetMETObjects.so
0053 
0054 
0055 all: setup lib
0056 
0057 setup:
0058         rm -f CondFormats; ln -sf ../ CondFormats
0059         mkdir -p $(TMPDIR)
0060         mkdir -p $(LIBDIR)
0061         mkdir -p $(BINDIR)
0062 
0063 lib: $(OBJS)
0064         $(CXX) $(CXXFLAGS) -shared $(OBJS) $(ROOTLIBS) -o $(LIBDIR)/$(LIB)
0065 
0066 clean:
0067         rm -rf $(OBJS) $(LIBDIR)/$(LIB) CondFormats \
0068                $(TMPDIR)/JetMETObjects_dict.h $(TMPDIR)/JetMETObjects_dict.cc
0069 
0070 
0071 ################################################################################
0072 # $(OBJS)
0073 ################################################################################
0074 
0075 $(TMPDIR)/JetCorrectorParameters.o: interface/JetCorrectorParameters.h \
0076                                     src/JetCorrectorParameters.cc
0077         $(CXX) $(CXXFLAGS) -c src/JetCorrectorParameters.cc \
0078         -o $(TMPDIR)/JetCorrectorParameters.o 
0079 
0080 $(TMPDIR)/SimpleJetCorrectionUncertainty.o: interface/SimpleJetCorrectionUncertainty.h \
0081                                     src/SimpleJetCorrectionUncertainty.cc
0082         $(CXX) $(CXXFLAGS) -c src/SimpleJetCorrectionUncertainty.cc \
0083         -o $(TMPDIR)/SimpleJetCorrectionUncertainty.o 
0084 
0085 $(TMPDIR)/JetCorrectionUncertainty.o: interface/JetCorrectionUncertainty.h \
0086                                     src/JetCorrectionUncertainty.cc
0087         $(CXX) $(CXXFLAGS) -c src/JetCorrectionUncertainty.cc \
0088         -o $(TMPDIR)/JetCorrectionUncertainty.o 
0089 
0090 $(TMPDIR)/SimpleJetCorrector.o: interface/SimpleJetCorrector.h \
0091                                     src/SimpleJetCorrector.cc
0092         $(CXX) $(CXXFLAGS) -c src/SimpleJetCorrector.cc \
0093         -o $(TMPDIR)/SimpleJetCorrector.o 
0094 
0095 $(TMPDIR)/FactorizedJetCorrector.o: interface/FactorizedJetCorrector.h \
0096                                     src/FactorizedJetCorrector.cc
0097         $(CXX) $(CXXFLAGS) -c src/FactorizedJetCorrector.cc \
0098         -o $(TMPDIR)/FactorizedJetCorrector.o 
0099 
0100 
0101 $(TMPDIR)/JetMETObjects_dict.o: $(TMPDIR)/JetMETObjects_dict.cc
0102         $(CXX) $(CXXFLAGS) -I$(TMPDIR) -c $(TMPDIR)/JetMETObjects_dict.cc \
0103         -o $(TMPDIR)/JetMETObjects_dict.o
0104 
0105 $(TMPDIR)/JetMETObjects_dict.cc: interface/JetCorrectorParameters.h \
0106                                  interface/SimpleJetCorrectionUncertainty.h \
0107                                  interface/JetCorrectionUncertainty.h \
0108                                  interface/SimpleJetCorrector.h \
0109                                  interface/FactorizedJetCorrector.h \
0110                                  interface/Linkdef.h
0111         rm -rf $(TMPDIR)/JetMETObjects_dict.h
0112         rm -rf $(TMPDIR)/JetMETObjects_dict.cc
0113         $(ROOTSYS)/bin/rootcint -f $(TMPDIR)/JetMETObjects_dict.cc \
0114         -c -I$(TMPDIR) \
0115         interface/JetCorrectorParameters.h \
0116         interface/SimpleJetCorrector.h \
0117         interface/FactorizedJetCorrector.h \
0118         interface/Linkdef.h