Changeset 5b5a56b in git
- Timestamp:
- Aug 28, 2014, 2:41:46 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 35cdc46, 640d6d3, d2f86fe, e2a76ae
- Parents:
- be6c1c8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rbe6c1c8 r5b5a56b 10 10 include doc/Makefile.arch 11 11 12 ifeq ($(ARCH),macosx64) 13 UNDEFOPT = dynamic_lookup 14 endif 12 ROOT_MAJOR := $(shell $(RC) --version | cut -d'.' -f1) 15 13 16 14 SrcSuf = cc 15 PcmSuf = _rdict.pcm 17 16 18 17 CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl … … 292 291 modules/Pythia8LinkDef.h \ 293 292 modules/PileUpMergerPythia8.h 293 Pythia8Dict$(PcmSuf): \ 294 tmp/modules/Pythia8Dict$(PcmSuf) \ 295 tmp/modules/Pythia8Dict.$(SrcSuf) 294 296 DELPHES_DICT += \ 295 297 tmp/modules/Pythia8Dict.$(SrcSuf) … … 297 299 DELPHES_DICT_OBJ += \ 298 300 tmp/modules/Pythia8Dict.$(ObjSuf) 301 302 DELPHES_DICT_PCM += \ 303 Pythia8Dict$(PcmSuf) 299 304 300 305 endif … … 306 311 classes/SortableObject.h \ 307 312 classes/DelphesClasses.h 313 ClassesDict$(PcmSuf): \ 314 tmp/classes/ClassesDict$(PcmSuf) \ 315 tmp/classes/ClassesDict.$(SrcSuf) 308 316 tmp/modules/ModulesDict.$(SrcSuf): \ 309 317 modules/ModulesLinkDef.h \ … … 337 345 modules/Hector.h \ 338 346 modules/ExampleModule.h 347 ModulesDict$(PcmSuf): \ 348 tmp/modules/ModulesDict$(PcmSuf) \ 349 tmp/modules/ModulesDict.$(SrcSuf) 339 350 tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(SrcSuf): \ 340 351 external/ExRootAnalysis/ExRootAnalysisLinkDef.h \ … … 349 360 external/ExRootAnalysis/ExRootConfReader.h \ 350 361 external/ExRootAnalysis/ExRootTask.h 362 ExRootAnalysisDict$(PcmSuf): \ 363 tmp/external/ExRootAnalysis/ExRootAnalysisDict$(PcmSuf) \ 364 tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(SrcSuf) 351 365 DELPHES_DICT += \ 352 366 tmp/classes/ClassesDict.$(SrcSuf) \ … … 359 373 tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(ObjSuf) 360 374 375 DELPHES_DICT_PCM += \ 376 ClassesDict$(PcmSuf) \ 377 ModulesDict$(PcmSuf) \ 378 ExRootAnalysisDict$(PcmSuf) 379 361 380 tmp/display/DisplayDict.$(SrcSuf): \ 362 381 display/DisplayLinkDef.h \ 363 382 display/DelphesDisplay.h \ 364 383 display/DelphesCaloData.h 384 DisplayDict$(PcmSuf): \ 385 tmp/display/DisplayDict$(PcmSuf) \ 386 tmp/display/DisplayDict.$(SrcSuf) 365 387 DISPLAY_DICT += \ 366 388 tmp/display/DisplayDict.$(SrcSuf) … … 368 390 DISPLAY_DICT_OBJ += \ 369 391 tmp/display/DisplayDict.$(ObjSuf) 392 393 DISPLAY_DICT_PCM += \ 394 DisplayDict$(PcmSuf) 370 395 371 396 tmp/classes/DelphesHepMCReader.$(ObjSuf): \ … … 1644 1669 ### 1645 1670 1671 ifeq ($(ROOT_MAJOR),6) 1672 all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE) 1673 display: $(DISPLAY) $(DISPLAY_DICT_PCM) 1674 else 1646 1675 all: $(DELPHES) $(EXECUTABLE) 1647 1648 1676 display: $(DISPLAY) 1677 endif 1649 1678 1650 1679 $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) … … 1707 1736 1708 1737 distclean: clean 1709 @rm -f $(DELPHES) $(DELPHESLIB) $(D ISPLAY) $(DISPLAYLIB) $(EXECUTABLE)1738 @rm -f $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE) 1710 1739 1711 1740 dist: … … 1719 1748 ### 1720 1749 1721 .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) 1750 .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) $(PcmSuf) 1722 1751 1723 1752 %Dict.$(SrcSuf): … … 1731 1760 @rm $@.arch $@.base 1732 1761 1762 %Dict$(PcmSuf): 1763 @echo ">> Copying $@" 1764 @cp $< $@ 1765 1733 1766 $(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 1734 1767 @mkdir -p $(@D) -
doc/genMakefile.tcl
rbe6c1c8 r5b5a56b 6 6 set srcSuf {.$(SrcSuf)} 7 7 set objSuf {.$(ObjSuf)} 8 set pcmSuf {$(PcmSuf)} 8 9 set exeSuf {$(ExeSuf)} 9 10 … … 28 29 lappend list external/$file 29 30 set headerFiles(external/$file) 1 30 31 } 31 32 } 32 33 } … … 54 55 proc dictDeps {dictVar args} { 55 56 56 global prefix suffix srcSuf objSuf 57 global prefix suffix srcSuf objSuf pcmSuf 57 58 58 59 set dict [eval glob -nocomplain $args] … … 67 68 lappend dictSrcFiles $dictName$srcSuf 68 69 lappend dictObjFiles $dictName$objSuf 70 lappend dictPcmFiles [file tail $dictName$pcmSuf] 69 71 70 72 dependencies $fileName "$dictName$srcSuf:$suffix$fileName" 73 74 puts -nonewline [file tail $dictName$pcmSuf]:$suffix 75 puts -nonewline $dictName$pcmSuf$suffix 76 puts -nonewline $dictName$srcSuf 77 puts {} 71 78 } 72 79 … … 79 86 puts {} 80 87 88 puts -nonewline "${dictVar}_PCM += $suffix" 89 puts [join $dictPcmFiles $suffix] 90 puts {} 81 91 } 82 92 … … 191 201 include doc/Makefile.arch 192 202 193 ifeq ($(ARCH),macosx64) 194 UNDEFOPT = dynamic_lookup 195 endif 203 ROOT_MAJOR := $(shell $(RC) --version | cut -d'.' -f1) 196 204 197 205 SrcSuf = cc 206 PcmSuf = _rdict.pcm 198 207 199 208 CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl … … 285 294 ### 286 295 296 ifeq ($(ROOT_MAJOR),6) 297 all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE) 298 display: $(DISPLAY) $(DISPLAY_DICT_PCM) 299 else 287 300 all: $(DELPHES) $(EXECUTABLE) 288 289 301 display: $(DISPLAY) 302 endif 290 303 291 304 $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ) … … 348 361 349 362 distclean: clean 350 @rm -f $(DELPHES) $(DELPHESLIB) $(D ISPLAY) $(DISPLAYLIB) $(EXECUTABLE)363 @rm -f $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE) 351 364 352 365 dist: … … 360 373 ### 361 374 362 .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) 375 .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) $(PcmSuf) 363 376 364 377 %Dict.$(SrcSuf): … … 372 385 @rm $@.arch $@.base 373 386 387 %Dict$(PcmSuf): 388 @echo ">> Copying $@" 389 @cp $< $@ 390 374 391 $(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf) 375 392 @mkdir -p $(@D)
Note:
See TracChangeset
for help on using the changeset viewer.