Fork me on GitHub

Changeset 00bcbe6 in git for doc


Ignore:
Timestamp:
Apr 22, 2013, 10:00:46 PM (12 years ago)
Author:
pavel <pavel@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
a817a22
Parents:
2013f0a
Message:

add make rule for event display

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/genMakefile.tcl

    r2013f0a r00bcbe6  
    188188
    189189CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl
    190 LIBS = $(shell $(RC) --evelibs) $(SYSLIBS)
     190DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS)
     191DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS)
    191192
    192193###
    193194
    194 SHARED = libDelphes.$(DllSuf)
    195 SHAREDLIB = libDelphes.lib
     195DELPHES = libDelphes.$(DllSuf)
     196DELPHESLIB = libDelphes.lib
     197
     198DISPLAY = libDelphesDisplay.$(DllSuf)
     199DISPLAYLIB = libDelphesDisplay.lib
    196200
    197201VERSION = $(shell cat VERSION)
     
    205209executableDeps
    206210
    207 dictDeps {DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h}
    208 
    209 sourceDeps {SOURCE} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc}
     211dictDeps {DELPHES_DICT} {classes/*LinkDef.h} {modules/*LinkDef.h} {external/ExRootAnalysis/*LinkDef.h}
     212
     213dictDeps {DISPLAY_DICT} {display/*LinkDef.h}
     214
     215sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc}
     216
     217sourceDeps {DISPLAY} {display/*.cc}
    210218
    211219tclDeps
     
    217225###
    218226
    219 all: $(SHARED) $(EXECUTABLE) $(STDHEP_EXECUTABLE)
    220 
    221 $(SHARED): $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ)
     227all: $(DELPHES) $(EXECUTABLE)
     228
     229display: $(DISPLAY)
     230
     231$(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
    222232        @mkdir -p $(@D)
    223233        @echo ">> Building $@"
    224234ifeq ($(ARCH),aix5)
    225         @$(MAKESHARED) $(OutPutOpt) $@ $(LIBS) -p 0 $^
     235        @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^
    226236else
    227237ifeq ($(PLATFORM),macosx)
    228238# We need to make both the .dylib and the .so
    229         @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(LIBS)
     239        @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
    230240ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
    231241ifeq ($(MACOSX_MINOR),4)
     
    236246ifeq ($(PLATFORM),win32)
    237247        @bindexplib $* $^ > $*.def
    238         @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(SHAREDLIB)
    239         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(LIBS) $(OutPutOpt)$@
     248        @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB)
     249        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
    240250        @$(MT_DLL)
    241251else
    242         @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(LIBS)
     252        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
    243253        @$(MT_DLL)
    244254endif
     
    246256endif
    247257
     258$(DISPLAY): $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ)
     259        @mkdir -p $(@D)
     260        @echo ">> Building $@"
     261ifeq ($(ARCH),aix5)
     262        @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^
     263else
     264ifeq ($(PLATFORM),macosx)
     265# We need to make both the .dylib and the .so
     266        @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS)
     267ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
     268ifeq ($(MACOSX_MINOR),4)
     269        @ln -sf $@ $(subst .$(DllSuf),.so,$@)
     270endif
     271endif
     272else
     273ifeq ($(PLATFORM),win32)
     274        @bindexplib $* $^ > $*.def
     275        @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DISPLAYLIB)
     276        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DISPLAY_LIBS) $(OutPutOpt)$@
     277        @$(MT_DLL)
     278else
     279        @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS)
     280        @$(MT_DLL)
     281endif
     282endif
     283endif
     284
    248285clean:
    249         @rm -f $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ) $(STDHEP_OBJ) core
     286        @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
     287        @rm -rf tmp
    250288
    251289distclean: clean
    252         @rm -f $(SHARED) $(SHAREDLIB) $(EXECUTABLE)
     290        @rm -f $(DELPHES) $(DELPHESLIB) $(DISPLAY) $(DISPLAYLIB) $(EXECUTABLE)
    253291
    254292dist:
     
    274312        @rm $@.arch $@.base
    275313
    276 $(SOURCE_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
    277         @mkdir -p $(@D)
    278         @echo ">> Compiling $<"
    279         @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    280 
    281 $(DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
     314$(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
     315        @mkdir -p $(@D)
     316        @echo ">> Compiling $<"
     317        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
     318
     319$(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
     320        @mkdir -p $(@D)
     321        @echo ">> Compiling $<"
     322        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
     323
     324$(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
     325        @mkdir -p $(@D)
     326        @echo ">> Compiling $<"
     327        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
     328
     329$(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
    282330        @mkdir -p $(@D)
    283331        @echo ">> Compiling $<"
     
    294342        @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
    295343
    296 $(EXECUTABLE): %$(ExeSuf): $(DICT_OBJ) $(SOURCE_OBJ) $(TCL_OBJ)
     344$(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
    297345        @echo ">> Building $@"
    298         @$(LD) $(LDFLAGS) $^ $(LIBS) $(OutPutOpt)$@
     346        @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
    299347
    300348###
Note: See TracChangeset for help on using the changeset viewer.