Changeset 5b5a56b in git for doc/genMakefile.tcl
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.