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