Fork me on GitHub

Changeset 5b5a56b in git for doc/genMakefile.tcl


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.