Fork me on GitHub

Changeset 5b5a56b in git


Ignore:
Timestamp:
Aug 28, 2014, 2:41:46 PM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
35cdc46, 640d6d3, d2f86fe, e2a76ae
Parents:
be6c1c8
Message:

add make rules for _rdict.pcm files

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rbe6c1c8 r5b5a56b  
    1010include doc/Makefile.arch
    1111
    12 ifeq ($(ARCH),macosx64)
    13 UNDEFOPT = dynamic_lookup
    14 endif
     12ROOT_MAJOR := $(shell $(RC) --version | cut -d'.' -f1)
    1513
    1614SrcSuf = cc
     15PcmSuf = _rdict.pcm
    1716
    1817CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl
     
    292291        modules/Pythia8LinkDef.h \
    293292        modules/PileUpMergerPythia8.h
     293Pythia8Dict$(PcmSuf): \
     294        tmp/modules/Pythia8Dict$(PcmSuf) \
     295        tmp/modules/Pythia8Dict.$(SrcSuf)
    294296DELPHES_DICT +=  \
    295297        tmp/modules/Pythia8Dict.$(SrcSuf)
     
    297299DELPHES_DICT_OBJ +=  \
    298300        tmp/modules/Pythia8Dict.$(ObjSuf)
     301
     302DELPHES_DICT_PCM +=  \
     303        Pythia8Dict$(PcmSuf)
    299304
    300305endif
     
    306311        classes/SortableObject.h \
    307312        classes/DelphesClasses.h
     313ClassesDict$(PcmSuf): \
     314        tmp/classes/ClassesDict$(PcmSuf) \
     315        tmp/classes/ClassesDict.$(SrcSuf)
    308316tmp/modules/ModulesDict.$(SrcSuf): \
    309317        modules/ModulesLinkDef.h \
     
    337345        modules/Hector.h \
    338346        modules/ExampleModule.h
     347ModulesDict$(PcmSuf): \
     348        tmp/modules/ModulesDict$(PcmSuf) \
     349        tmp/modules/ModulesDict.$(SrcSuf)
    339350tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(SrcSuf): \
    340351        external/ExRootAnalysis/ExRootAnalysisLinkDef.h \
     
    349360        external/ExRootAnalysis/ExRootConfReader.h \
    350361        external/ExRootAnalysis/ExRootTask.h
     362ExRootAnalysisDict$(PcmSuf): \
     363        tmp/external/ExRootAnalysis/ExRootAnalysisDict$(PcmSuf) \
     364        tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(SrcSuf)
    351365DELPHES_DICT +=  \
    352366        tmp/classes/ClassesDict.$(SrcSuf) \
     
    359373        tmp/external/ExRootAnalysis/ExRootAnalysisDict.$(ObjSuf)
    360374
     375DELPHES_DICT_PCM +=  \
     376        ClassesDict$(PcmSuf) \
     377        ModulesDict$(PcmSuf) \
     378        ExRootAnalysisDict$(PcmSuf)
     379
    361380tmp/display/DisplayDict.$(SrcSuf): \
    362381        display/DisplayLinkDef.h \
    363382        display/DelphesDisplay.h \
    364383        display/DelphesCaloData.h
     384DisplayDict$(PcmSuf): \
     385        tmp/display/DisplayDict$(PcmSuf) \
     386        tmp/display/DisplayDict.$(SrcSuf)
    365387DISPLAY_DICT +=  \
    366388        tmp/display/DisplayDict.$(SrcSuf)
     
    368390DISPLAY_DICT_OBJ +=  \
    369391        tmp/display/DisplayDict.$(ObjSuf)
     392
     393DISPLAY_DICT_PCM +=  \
     394        DisplayDict$(PcmSuf)
    370395
    371396tmp/classes/DelphesHepMCReader.$(ObjSuf): \
     
    16441669###
    16451670
     1671ifeq ($(ROOT_MAJOR),6)
     1672all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE)
     1673display: $(DISPLAY) $(DISPLAY_DICT_PCM)
     1674else
    16461675all: $(DELPHES) $(EXECUTABLE)
    1647 
    16481676display: $(DISPLAY)
     1677endif
    16491678
    16501679$(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
     
    17071736
    17081737distclean: clean
    1709         @rm -f $(DELPHES) $(DELPHESLIB) $(DISPLAY) $(DISPLAYLIB) $(EXECUTABLE)
     1738        @rm -f $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE)
    17101739
    17111740dist:
     
    17191748###
    17201749
    1721 .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
     1750.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) $(PcmSuf)
    17221751
    17231752%Dict.$(SrcSuf):
     
    17311760        @rm $@.arch $@.base
    17321761
     1762%Dict$(PcmSuf):
     1763        @echo ">> Copying $@"
     1764        @cp $< $@
     1765
    17331766$(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
    17341767        @mkdir -p $(@D)
  • doc/genMakefile.tcl

    rbe6c1c8 r5b5a56b  
    66set srcSuf {.$(SrcSuf)}
    77set objSuf {.$(ObjSuf)}
     8set pcmSuf {$(PcmSuf)}
    89set exeSuf {$(ExeSuf)}
    910
     
    2829        lappend list external/$file
    2930        set headerFiles(external/$file) 1
    30           }
     31      }
    3132    }
    3233  }
     
    5455proc dictDeps {dictVar args} {
    5556
    56   global prefix suffix srcSuf objSuf
     57  global prefix suffix srcSuf objSuf pcmSuf
    5758
    5859  set dict [eval glob -nocomplain $args]
     
    6768    lappend dictSrcFiles $dictName$srcSuf
    6869    lappend dictObjFiles $dictName$objSuf
     70    lappend dictPcmFiles [file tail $dictName$pcmSuf]
    6971
    7072    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 {}
    7178  }
    7279
     
    7986  puts {}
    8087
     88  puts -nonewline "${dictVar}_PCM += $suffix"
     89  puts [join $dictPcmFiles $suffix]
     90  puts {}
    8191}
    8292
     
    191201include doc/Makefile.arch
    192202
    193 ifeq ($(ARCH),macosx64)
    194 UNDEFOPT = dynamic_lookup
    195 endif
     203ROOT_MAJOR := $(shell $(RC) --version | cut -d'.' -f1)
    196204
    197205SrcSuf = cc
     206PcmSuf = _rdict.pcm
    198207
    199208CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl
     
    285294###
    286295
     296ifeq ($(ROOT_MAJOR),6)
     297all: $(DELPHES) $(DELPHES_DICT_PCM) $(EXECUTABLE)
     298display: $(DISPLAY) $(DISPLAY_DICT_PCM)
     299else
    287300all: $(DELPHES) $(EXECUTABLE)
    288 
    289301display: $(DISPLAY)
     302endif
    290303
    291304$(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
     
    348361
    349362distclean: clean
    350         @rm -f $(DELPHES) $(DELPHESLIB) $(DISPLAY) $(DISPLAYLIB) $(EXECUTABLE)
     363        @rm -f $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE)
    351364
    352365dist:
     
    360373###
    361374
    362 .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
     375.SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) $(PcmSuf)
    363376
    364377%Dict.$(SrcSuf):
     
    372385        @rm $@.arch $@.base
    373386
     387%Dict$(PcmSuf):
     388        @echo ">> Copying $@"
     389        @cp $< $@
     390
    374391$(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
    375392        @mkdir -p $(@D)
Note: See TracChangeset for help on using the changeset viewer.