1 | #!/usr/bin/env tclsh
|
---|
2 |
|
---|
3 | set prefix "tmp/"
|
---|
4 | set suffix " \\\n\t"
|
---|
5 |
|
---|
6 | set srcSuf {.$(SrcSuf)}
|
---|
7 | set objSuf {.$(ObjSuf)}
|
---|
8 | set pcmSuf {$(PcmSuf)}
|
---|
9 | set exeSuf {$(ExeSuf)}
|
---|
10 |
|
---|
11 | proc dependencies {fileName firstLine {force 1} {command {}}} {
|
---|
12 | global suffix headerFiles sourceFiles
|
---|
13 |
|
---|
14 | if {[info exists sourceFiles($fileName)]} return
|
---|
15 |
|
---|
16 | set sourceFiles($fileName) 1
|
---|
17 |
|
---|
18 | set list {}
|
---|
19 | set fid [open $fileName]
|
---|
20 | while {! [eof $fid]} {
|
---|
21 | set line [gets $fid]
|
---|
22 | if [regexp -- {^\s*#include\s*"((\w+/)+\w+\.(h|hh))"} $line] {
|
---|
23 | set elements [split $line {"}]
|
---|
24 | set file [lindex $elements 1]
|
---|
25 | if [file exists $file] {
|
---|
26 | lappend list $file
|
---|
27 | set headerFiles($file) 1
|
---|
28 | } elseif [file exists external/$file] {
|
---|
29 | lappend list external/$file
|
---|
30 | set headerFiles(external/$file) 1
|
---|
31 | }
|
---|
32 | }
|
---|
33 | }
|
---|
34 |
|
---|
35 | if {[llength $list] > 0} {
|
---|
36 | puts -nonewline $firstLine
|
---|
37 | foreach file $list {puts -nonewline $suffix$file}
|
---|
38 | if {$command != {}} {
|
---|
39 | puts {}
|
---|
40 | puts $command
|
---|
41 | }
|
---|
42 | puts {}
|
---|
43 | } elseif {$force} {
|
---|
44 | puts -nonewline $firstLine
|
---|
45 | if {$command != {}} {
|
---|
46 | puts {}
|
---|
47 | puts $command
|
---|
48 | }
|
---|
49 | puts {}
|
---|
50 | }
|
---|
51 |
|
---|
52 | close $fid
|
---|
53 | }
|
---|
54 |
|
---|
55 | proc dictDeps {dictPrefix args} {
|
---|
56 |
|
---|
57 | global prefix suffix srcSuf objSuf pcmSuf
|
---|
58 |
|
---|
59 | set dict [lsort [eval glob -nocomplain $args]]
|
---|
60 |
|
---|
61 | set dictSrcFiles {}
|
---|
62 | set dictObjFiles {}
|
---|
63 |
|
---|
64 | foreach fileName $dict {
|
---|
65 | regsub {LinkDef\.h} $fileName {Dict} dictName
|
---|
66 | set dictName $prefix$dictName
|
---|
67 |
|
---|
68 | lappend dictSrcFiles $dictName$srcSuf
|
---|
69 | lappend dictObjFiles $dictName$objSuf
|
---|
70 | lappend dictPcmFiles [file tail $dictName$pcmSuf]
|
---|
71 |
|
---|
72 | dependencies $fileName "$dictName$srcSuf:$suffix$fileName"
|
---|
73 |
|
---|
74 | puts -nonewline $dictName$pcmSuf:$suffix
|
---|
75 | puts -nonewline $dictName$srcSuf
|
---|
76 | puts {}
|
---|
77 |
|
---|
78 | puts -nonewline [file tail $dictName$pcmSuf]:$suffix
|
---|
79 | puts -nonewline $dictName$pcmSuf
|
---|
80 | puts {}
|
---|
81 | }
|
---|
82 |
|
---|
83 | puts -nonewline "${dictPrefix}_OBJ += $suffix"
|
---|
84 | puts [join $dictObjFiles $suffix]
|
---|
85 | puts {}
|
---|
86 |
|
---|
87 | puts -nonewline "${dictPrefix}_PCM += $suffix"
|
---|
88 | puts [join $dictPcmFiles $suffix]
|
---|
89 | puts {}
|
---|
90 | }
|
---|
91 |
|
---|
92 | proc sourceDeps {srcPrefix args} {
|
---|
93 |
|
---|
94 | global prefix suffix srcSuf objSuf
|
---|
95 |
|
---|
96 | set source [lsort [eval glob -nocomplain $args]]
|
---|
97 |
|
---|
98 | set srcObjFiles {}
|
---|
99 | set srcObjFilesFastJet {}
|
---|
100 | set srcObjFilesPythia8 {}
|
---|
101 |
|
---|
102 | foreach fileName $source {
|
---|
103 | regsub {\.cc} $fileName {} srcName
|
---|
104 | set srcObjName $prefix$srcName
|
---|
105 |
|
---|
106 | if {$fileName == "modules/PileUpMergerPythia8.cc"} {
|
---|
107 | lappend srcObjFilesPythia8 $srcObjName$objSuf
|
---|
108 | } elseif {([string match {modules/FastJet*.cc} $fileName] || [string match {modules/RunPUPPI.cc} $fileName]) && $srcPrefix != {FASTJET}} {
|
---|
109 | continue
|
---|
110 | } else {
|
---|
111 | lappend srcObjFiles $srcObjName$objSuf
|
---|
112 | }
|
---|
113 |
|
---|
114 | dependencies $fileName "$srcObjName$objSuf:$suffix$srcName$srcSuf"
|
---|
115 | }
|
---|
116 |
|
---|
117 | puts -nonewline "${srcPrefix}_OBJ += $suffix"
|
---|
118 | puts [join $srcObjFiles $suffix]
|
---|
119 | puts {}
|
---|
120 |
|
---|
121 | puts {ifeq ($(HAS_PYTHIA8),true)}
|
---|
122 | puts -nonewline "${srcPrefix}_OBJ += $suffix"
|
---|
123 | puts [join $srcObjFilesPythia8 $suffix]
|
---|
124 | puts {endif}
|
---|
125 | puts {}
|
---|
126 | }
|
---|
127 |
|
---|
128 | proc tclDeps {} {
|
---|
129 |
|
---|
130 | global prefix suffix srcSuf objSuf
|
---|
131 |
|
---|
132 | set source [lsort [glob -nocomplain {external/tcl/*.c}]]
|
---|
133 |
|
---|
134 | set srcObjFiles {}
|
---|
135 |
|
---|
136 | foreach fileName $source {
|
---|
137 | if {$fileName == "tcl/tclc.c" || $fileName == "tcl/tcl.c"} continue
|
---|
138 |
|
---|
139 | regsub {\.c} $fileName {} srcName
|
---|
140 | set srcObjName $prefix$srcName
|
---|
141 |
|
---|
142 | lappend srcObjFiles $srcObjName$objSuf
|
---|
143 |
|
---|
144 | dependencies $fileName "$srcObjName$objSuf:$suffix$fileName"
|
---|
145 | }
|
---|
146 |
|
---|
147 | puts -nonewline "TCL_OBJ += $suffix"
|
---|
148 | puts [join $srcObjFiles $suffix]
|
---|
149 | puts {}
|
---|
150 | }
|
---|
151 |
|
---|
152 | proc executableDeps {args} {
|
---|
153 |
|
---|
154 | global prefix suffix objSuf exeSuf
|
---|
155 |
|
---|
156 | set executable [lsort [eval glob -nocomplain $args]]
|
---|
157 |
|
---|
158 | set exeFiles {}
|
---|
159 |
|
---|
160 | foreach fileName $executable {
|
---|
161 | regsub {\.cpp} $fileName {} exeObjName
|
---|
162 | set exeObjName $prefix$exeObjName
|
---|
163 | set exeName [file tail $exeObjName]
|
---|
164 |
|
---|
165 | lappend exeFiles $exeName$exeSuf
|
---|
166 | lappend exeObjFiles $exeObjName$objSuf
|
---|
167 |
|
---|
168 | puts "$exeName$exeSuf:$suffix$exeObjName$objSuf"
|
---|
169 | puts {}
|
---|
170 |
|
---|
171 | dependencies $fileName "$exeObjName$objSuf:$suffix$fileName"
|
---|
172 | }
|
---|
173 |
|
---|
174 | if [info exists exeFiles] {
|
---|
175 | puts -nonewline "EXECUTABLE += $suffix"
|
---|
176 | puts [join $exeFiles $suffix]
|
---|
177 | puts {}
|
---|
178 | }
|
---|
179 | if [info exists exeObjFiles] {
|
---|
180 | puts -nonewline "EXECUTABLE_OBJ += $suffix"
|
---|
181 | puts [join $exeObjFiles $suffix]
|
---|
182 | puts {}
|
---|
183 | }
|
---|
184 | }
|
---|
185 |
|
---|
186 | proc headerDeps {} {
|
---|
187 | global suffix headerFiles
|
---|
188 |
|
---|
189 | foreach fileName [array names headerFiles] {
|
---|
190 | dependencies $fileName "$fileName:" 0 "\t@touch \$@"
|
---|
191 | }
|
---|
192 | }
|
---|
193 |
|
---|
194 | puts {
|
---|
195 | #
|
---|
196 | # Makefile for ExRootAnalysis
|
---|
197 | #
|
---|
198 | # Author: P. Demin - UCL, Louvain-la-Neuve
|
---|
199 | #
|
---|
200 | # multi-platform configuration is taken from ROOT (root/test/Makefile.arch)
|
---|
201 | #
|
---|
202 |
|
---|
203 | include doc/Makefile.arch
|
---|
204 |
|
---|
205 | ROOT_MAJOR := $(shell $(RC) --version | cut -d'.' -f1)
|
---|
206 |
|
---|
207 | SrcSuf = cc
|
---|
208 | PcmSuf = _rdict.pcm
|
---|
209 |
|
---|
210 | CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl
|
---|
211 | DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS)
|
---|
212 | DISPLAY_LIBS = $(shell $(RC) --evelibs) -lGuiHtml $(SYSLIBS)
|
---|
213 |
|
---|
214 | ifneq ($(CMSSW_FWLITE_INCLUDE_PATH),)
|
---|
215 | HAS_CMSSW = true
|
---|
216 | CXXFLAGS += -std=c++0x -I$(subst :, -I,$(CMSSW_FWLITE_INCLUDE_PATH))
|
---|
217 | OPT_LIBS += -L$(subst include,lib,$(subst :, -L,$(CMSSW_FWLITE_INCLUDE_PATH)))
|
---|
218 | ifneq ($(CMSSW_RELEASE_BASE),)
|
---|
219 | CXXFLAGS += -I$(CMSSW_RELEASE_BASE)/src
|
---|
220 | endif
|
---|
221 | ifneq ($(LD_LIBRARY_PATH),)
|
---|
222 | OPT_LIBS += -L$(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH)))
|
---|
223 | endif
|
---|
224 | OPT_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsCommon -lDataFormatsPatCandidates -lDataFormatsLuminosity -lSimDataFormatsGeneratorProducts -lCommonToolsUtils -lDataFormatsCommon
|
---|
225 | endif
|
---|
226 |
|
---|
227 | ifneq ($(PROMC),)
|
---|
228 | HAS_PROMC = true
|
---|
229 | CXXFLAGS += -I$(PROMC)/include -I$(PROMC)/src
|
---|
230 | OPT_LIBS += -L$(PROMC)/lib -lpromc -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz
|
---|
231 | endif
|
---|
232 |
|
---|
233 | ifeq ($(HAS_PYTHIA8),true)
|
---|
234 | ifneq ($(PYTHIA8),)
|
---|
235 | CXXFLAGS += -I$(PYTHIA8)/include
|
---|
236 | CXXFLAGS += -I$(PYTHIA8)/include/Pythia8
|
---|
237 | OPT_LIBS += -L$(PYTHIA8)/lib -lpythia8 -ldl
|
---|
238 | endif
|
---|
239 | endif
|
---|
240 |
|
---|
241 | DELPHES_LIBS += $(OPT_LIBS)
|
---|
242 | DISPLAY_LIBS += $(OPT_LIBS)
|
---|
243 |
|
---|
244 | ###
|
---|
245 |
|
---|
246 | NOFASTJET = libDelphesNoFastJet.$(DllSuf)
|
---|
247 | NOFASTJETLIB = libDelphesNoFastJet.lib
|
---|
248 |
|
---|
249 | DELPHES = libDelphes.$(DllSuf)
|
---|
250 | DELPHESLIB = libDelphes.lib
|
---|
251 |
|
---|
252 | DISPLAY = libDelphesDisplay.$(DllSuf)
|
---|
253 | DISPLAYLIB = libDelphesDisplay.lib
|
---|
254 |
|
---|
255 | VERSION = $(shell cat VERSION)
|
---|
256 | DISTDIR = Delphes-$(VERSION)
|
---|
257 | DISTTAR = $(DISTDIR).tar.gz
|
---|
258 |
|
---|
259 | all:
|
---|
260 |
|
---|
261 | }
|
---|
262 |
|
---|
263 | executableDeps {converters/*.cpp} {examples/*.cpp}
|
---|
264 |
|
---|
265 | executableDeps {readers/DelphesHepMC.cpp} {readers/DelphesLHEF.cpp} {readers/DelphesSTDHEP.cpp}
|
---|
266 |
|
---|
267 | puts {ifeq ($(HAS_CMSSW),true)}
|
---|
268 | executableDeps {readers/DelphesCMSFWLite.cpp}
|
---|
269 | puts {endif}
|
---|
270 | puts {}
|
---|
271 |
|
---|
272 | puts {ifeq ($(HAS_PROMC),true)}
|
---|
273 | executableDeps {readers/DelphesProMC.cpp}
|
---|
274 | puts {endif}
|
---|
275 | puts {}
|
---|
276 |
|
---|
277 | puts {ifeq ($(HAS_PYTHIA8),true)}
|
---|
278 | executableDeps {readers/DelphesPythia8.cpp}
|
---|
279 | dictDeps {DELPHES_DICT} {modules/Pythia8LinkDef.h}
|
---|
280 | puts {endif}
|
---|
281 | puts {}
|
---|
282 |
|
---|
283 | dictDeps {DELPHES_DICT} {classes/ClassesLinkDef.h} {modules/ModulesLinkDef.h} {external/ExRootAnalysis/ExRootAnalysisLinkDef.h}
|
---|
284 |
|
---|
285 | dictDeps {FASTJET_DICT} {modules/FastJetLinkDef.h}
|
---|
286 |
|
---|
287 | dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h}
|
---|
288 |
|
---|
289 | sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/Hector/*.cc}
|
---|
290 |
|
---|
291 | sourceDeps {FASTJET} {modules/FastJet*.cc} {modules/RunPUPPI.cc} {external/PUPPI/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/fastjet/contribs/*/*.cc}
|
---|
292 |
|
---|
293 | sourceDeps {DISPLAY} {display/*.cc}
|
---|
294 |
|
---|
295 | tclDeps
|
---|
296 |
|
---|
297 | headerDeps
|
---|
298 |
|
---|
299 | puts {
|
---|
300 |
|
---|
301 | ###
|
---|
302 |
|
---|
303 | ifeq ($(ROOT_MAJOR),6)
|
---|
304 | all: $(NOFASTJET) $(DELPHES) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(EXECUTABLE)
|
---|
305 | display: $(DISPLAY) $(DISPLAY_DICT_PCM)
|
---|
306 | else
|
---|
307 | all: $(NOFASTJET) $(DELPHES) $(EXECUTABLE)
|
---|
308 | display: $(DISPLAY)
|
---|
309 | endif
|
---|
310 |
|
---|
311 | $(NOFASTJET): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
|
---|
312 | @mkdir -p $(@D)
|
---|
313 | @echo ">> Building $@"
|
---|
314 | ifeq ($(ARCH),aix5)
|
---|
315 | @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^
|
---|
316 | else
|
---|
317 | ifeq ($(PLATFORM),macosx)
|
---|
318 | # We need to make both the .dylib and the .so
|
---|
319 | @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
|
---|
320 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
|
---|
321 | ifeq ($(MACOSX_MINOR),4)
|
---|
322 | @ln -sf $@ $(subst .$(DllSuf),.so,$@)
|
---|
323 | endif
|
---|
324 | endif
|
---|
325 | else
|
---|
326 | ifeq ($(PLATFORM),win32)
|
---|
327 | @bindexplib $* $^ > $*.def
|
---|
328 | @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(NOFASTJETLIB)
|
---|
329 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
|
---|
330 | @$(MT_DLL)
|
---|
331 | else
|
---|
332 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
|
---|
333 | @$(MT_DLL)
|
---|
334 | endif
|
---|
335 | endif
|
---|
336 | endif
|
---|
337 |
|
---|
338 | $(DELPHES): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(TCL_OBJ)
|
---|
339 | @mkdir -p $(@D)
|
---|
340 | @echo ">> Building $@"
|
---|
341 | ifeq ($(ARCH),aix5)
|
---|
342 | @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^
|
---|
343 | else
|
---|
344 | ifeq ($(PLATFORM),macosx)
|
---|
345 | # We need to make both the .dylib and the .so
|
---|
346 | @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
|
---|
347 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
|
---|
348 | ifeq ($(MACOSX_MINOR),4)
|
---|
349 | @ln -sf $@ $(subst .$(DllSuf),.so,$@)
|
---|
350 | endif
|
---|
351 | endif
|
---|
352 | else
|
---|
353 | ifeq ($(PLATFORM),win32)
|
---|
354 | @bindexplib $* $^ > $*.def
|
---|
355 | @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB)
|
---|
356 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
|
---|
357 | @$(MT_DLL)
|
---|
358 | else
|
---|
359 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
|
---|
360 | @$(MT_DLL)
|
---|
361 | endif
|
---|
362 | endif
|
---|
363 | endif
|
---|
364 |
|
---|
365 | $(DISPLAY): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ)
|
---|
366 | @mkdir -p $(@D)
|
---|
367 | @echo ">> Building $@"
|
---|
368 | ifeq ($(ARCH),aix5)
|
---|
369 | @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^
|
---|
370 | else
|
---|
371 | ifeq ($(PLATFORM),macosx)
|
---|
372 | # We need to make both the .dylib and the .so
|
---|
373 | @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS)
|
---|
374 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
|
---|
375 | ifeq ($(MACOSX_MINOR),4)
|
---|
376 | @ln -sf $@ $(subst .$(DllSuf),.so,$@)
|
---|
377 | endif
|
---|
378 | endif
|
---|
379 | else
|
---|
380 | ifeq ($(PLATFORM),win32)
|
---|
381 | @bindexplib $* $^ > $*.def
|
---|
382 | @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DISPLAYLIB)
|
---|
383 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DISPLAY_LIBS) $(OutPutOpt)$@
|
---|
384 | @$(MT_DLL)
|
---|
385 | else
|
---|
386 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS)
|
---|
387 | @$(MT_DLL)
|
---|
388 | endif
|
---|
389 | endif
|
---|
390 | endif
|
---|
391 |
|
---|
392 | clean:
|
---|
393 | @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
|
---|
394 | @rm -rf tmp
|
---|
395 |
|
---|
396 | distclean: clean
|
---|
397 | @rm -f $(NOFASTJET) $(NOFASTJETLIB) $(DELPHES) $(DELPHESLIB) $(DELPHES_DICT_PCM) $(FASTJET_DICT_PCM) $(DISPLAY) $(DISPLAYLIB) $(DISPLAY_DICT_PCM) $(EXECUTABLE)
|
---|
398 |
|
---|
399 | dist:
|
---|
400 | @echo ">> Building $(DISTTAR)"
|
---|
401 | @mkdir -p $(DISTDIR)
|
---|
402 | @cp -a CHANGELOG CMakeLists.txt COPYING CREDITS DelphesEnv.sh README README_4LHCb VERSION Makefile MinBias.pileup configure cards classes converters display doc examples external modules python readers $(DISTDIR)
|
---|
403 | @find $(DISTDIR) -depth -name .\* -exec rm -rf {} \;
|
---|
404 | @tar -czf $(DISTTAR) $(DISTDIR)
|
---|
405 | @rm -rf $(DISTDIR)
|
---|
406 |
|
---|
407 | ###
|
---|
408 |
|
---|
409 | .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf) $(PcmSuf)
|
---|
410 |
|
---|
411 | %Dict.$(SrcSuf):
|
---|
412 | @mkdir -p $(@D)
|
---|
413 | @echo ">> Generating $@"
|
---|
414 | @rootcint -f $@ -c -Iexternal $<
|
---|
415 | @echo "#define private public" > $@.arch
|
---|
416 | @echo "#define protected public" >> $@.arch
|
---|
417 | @mv $@ $@.base
|
---|
418 | @cat $@.arch $< $@.base > $@
|
---|
419 | @rm $@.arch $@.base
|
---|
420 |
|
---|
421 | $(DELPHES_DICT_PCM): %Dict$(PcmSuf):
|
---|
422 | @echo ">> Copying $@"
|
---|
423 | @cp $< $@
|
---|
424 |
|
---|
425 | $(FASTJET_DICT_PCM): %Dict$(PcmSuf):
|
---|
426 | @echo ">> Copying $@"
|
---|
427 | @cp $< $@
|
---|
428 |
|
---|
429 | $(DISPLAY_DICT_PCM): %Dict$(PcmSuf):
|
---|
430 | @echo ">> Copying $@"
|
---|
431 | @cp $< $@
|
---|
432 |
|
---|
433 | $(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
|
---|
434 | @mkdir -p $(@D)
|
---|
435 | @echo ">> Compiling $<"
|
---|
436 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
437 |
|
---|
438 | $(FASTJET_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
|
---|
439 | @mkdir -p $(@D)
|
---|
440 | @echo ">> Compiling $<"
|
---|
441 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
442 |
|
---|
443 | $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
|
---|
444 | @mkdir -p $(@D)
|
---|
445 | @echo ">> Compiling $<"
|
---|
446 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
447 |
|
---|
448 | $(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
|
---|
449 | @mkdir -p $(@D)
|
---|
450 | @echo ">> Compiling $<"
|
---|
451 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
452 |
|
---|
453 | $(FASTJET_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
|
---|
454 | @mkdir -p $(@D)
|
---|
455 | @echo ">> Compiling $<"
|
---|
456 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
457 |
|
---|
458 | $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
|
---|
459 | @mkdir -p $(@D)
|
---|
460 | @echo ">> Compiling $<"
|
---|
461 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
462 |
|
---|
463 | $(TCL_OBJ): tmp/%.$(ObjSuf): %.c
|
---|
464 | @mkdir -p $(@D)
|
---|
465 | @echo ">> Compiling $<"
|
---|
466 | @$(CC) $(patsubst -std=%,,$(CXXFLAGS)) -c $< $(OutPutOpt)$@
|
---|
467 |
|
---|
468 | $(EXECUTABLE_OBJ): tmp/%.$(ObjSuf): %.cpp
|
---|
469 | @mkdir -p $(@D)
|
---|
470 | @echo ">> Compiling $<"
|
---|
471 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
472 |
|
---|
473 | $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(FASTJET_DICT_OBJ) $(DELPHES_OBJ) $(FASTJET_OBJ) $(TCL_OBJ)
|
---|
474 | @echo ">> Building $@"
|
---|
475 | @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
|
---|
476 |
|
---|
477 | ###
|
---|
478 |
|
---|
479 | }
|
---|