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