[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 |
|
---|
[1177] | 73 | puts -nonewline "${dictVar} += $suffix"
|
---|
[593] | 74 | puts [join $dictSrcFiles $suffix]
|
---|
[1176] | 75 | puts {}
|
---|
[593] | 76 |
|
---|
[1177] | 77 | puts -nonewline "${dictVar}_OBJ += $suffix"
|
---|
[593] | 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 |
|
---|
[1177] | 135 | puts -nonewline "TCL_OBJ += $suffix"
|
---|
[593] | 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 {
|
---|
| 149 | regsub {\.cpp} $fileName {} exeObjName
|
---|
| 150 | set exeObjName $prefix$exeObjName
|
---|
| 151 | set exeName [file tail $exeObjName]
|
---|
| 152 |
|
---|
| 153 | lappend exeFiles $exeName$exeSuf
|
---|
| 154 | lappend exeObjFiles $exeObjName$objSuf
|
---|
[1128] | 155 |
|
---|
[593] | 156 | puts "$exeName$exeSuf:$suffix$exeObjName$objSuf"
|
---|
[1176] | 157 | puts {}
|
---|
[1128] | 158 |
|
---|
[593] | 159 | dependencies $fileName "$exeObjName$objSuf:$suffix$fileName"
|
---|
| 160 | }
|
---|
[1128] | 161 |
|
---|
[593] | 162 | if [info exists exeFiles] {
|
---|
[1176] | 163 | puts -nonewline "EXECUTABLE += $suffix"
|
---|
[593] | 164 | puts [join $exeFiles $suffix]
|
---|
[1176] | 165 | puts {}
|
---|
[593] | 166 | }
|
---|
| 167 | if [info exists exeObjFiles] {
|
---|
[1176] | 168 | puts -nonewline "EXECUTABLE_OBJ += $suffix"
|
---|
[593] | 169 | puts [join $exeObjFiles $suffix]
|
---|
[1176] | 170 | puts {}
|
---|
[593] | 171 | }
|
---|
| 172 | }
|
---|
| 173 |
|
---|
| 174 | proc headerDeps {} {
|
---|
| 175 | global suffix headerFiles
|
---|
[1128] | 176 |
|
---|
[593] | 177 | foreach fileName [array names headerFiles] {
|
---|
| 178 | dependencies $fileName "$fileName:" 0 "\t@touch \$@"
|
---|
| 179 | }
|
---|
| 180 | }
|
---|
| 181 |
|
---|
| 182 | puts {
|
---|
| 183 | #
|
---|
| 184 | # Makefile for ExRootAnalysis
|
---|
| 185 | #
|
---|
| 186 | # Author: P. Demin - UCL, Louvain-la-Neuve
|
---|
| 187 | #
|
---|
| 188 | # multi-platform configuration is taken from ROOT (root/test/Makefile.arch)
|
---|
| 189 | #
|
---|
| 190 |
|
---|
[857] | 191 | include doc/Makefile.arch
|
---|
[593] | 192 |
|
---|
| 193 | ifeq ($(ARCH),macosx64)
|
---|
| 194 | UNDEFOPT = dynamic_lookup
|
---|
| 195 | endif
|
---|
| 196 |
|
---|
| 197 | SrcSuf = cc
|
---|
| 198 |
|
---|
[1038] | 199 | CXXFLAGS += $(ROOTCFLAGS) -Wno-write-strings -D_FILE_OFFSET_BITS=64 -DDROP_CGAL -I. -Iexternal -Iexternal/tcl
|
---|
[1097] | 200 | DELPHES_LIBS = $(shell $(RC) --libs) -lEG $(SYSLIBS)
|
---|
| 201 | DISPLAY_LIBS = $(shell $(RC) --evelibs) $(SYSLIBS)
|
---|
[824] | 202 |
|
---|
[1176] | 203 | ifneq ($(CMSSW_FWLITE_INCLUDE_PATH),)
|
---|
| 204 | HAS_CMSSW = true
|
---|
[1179] | 205 | CXXFLAGS += -std=c++0x -I$(subst :, -I,$(CMSSW_FWLITE_INCLUDE_PATH))
|
---|
| 206 | DELPHES_LIBS += -L$(subst include,lib,$(subst :, -L,$(CMSSW_FWLITE_INCLUDE_PATH)))
|
---|
[1176] | 207 | ifneq ($(CMSSW_RELEASE_BASE),)
|
---|
| 208 | CXXFLAGS += -I$(CMSSW_RELEASE_BASE)/src
|
---|
| 209 | endif
|
---|
| 210 | ifneq ($(LD_LIBRARY_PATH),)
|
---|
[1179] | 211 | DELPHES_LIBS += -L$(subst include,lib,$(subst :, -L,$(LD_LIBRARY_PATH)))
|
---|
[1176] | 212 | endif
|
---|
[1355] | 213 | DELPHES_LIBS += -lGenVector -lFWCoreFWLite -lDataFormatsFWLite -lDataFormatsPatCandidates -lDataFormatsLuminosity -lCommonToolsUtils
|
---|
[1176] | 214 | endif
|
---|
| 215 |
|
---|
| 216 | ifneq ($(PROMC),)
|
---|
| 217 | HAS_PROMC = true
|
---|
| 218 | CXXFLAGS += -I$(PROMC)/include
|
---|
| 219 | DELPHES_LIBS += -L$(PROMC)/lib -lprotoc -lprotobuf -lprotobuf-lite -lcbook -lz
|
---|
| 220 | endif
|
---|
| 221 |
|
---|
[1167] | 222 | ifneq ($(PYTHIA8),)
|
---|
[1168] | 223 | HAS_PYTHIA8 = true
|
---|
[1177] | 224 | CXXFLAGS += -I$(PYTHIA8)/include
|
---|
[1186] | 225 | DELPHES_LIBS += -L$(PYTHIA8)/lib -lpythia8 -lLHAPDF -lgfortran -lz
|
---|
[1168] | 226 | else
|
---|
| 227 | ifneq ($(PYTHIA8DATA),)
|
---|
| 228 | HAS_PYTHIA8 = true
|
---|
[1177] | 229 | CXXFLAGS += -I$(PYTHIA8DATA)/../include
|
---|
[1186] | 230 | DELPHES_LIBS += -L$(PYTHIA8DATA)/../lib -lpythia8 -lLHAPDF -lgfortran -lz
|
---|
[1167] | 231 | endif
|
---|
[1168] | 232 | endif
|
---|
[1167] | 233 |
|
---|
[593] | 234 | ###
|
---|
| 235 |
|
---|
[1097] | 236 | DELPHES = libDelphes.$(DllSuf)
|
---|
| 237 | DELPHESLIB = libDelphes.lib
|
---|
[593] | 238 |
|
---|
[1097] | 239 | DISPLAY = libDelphesDisplay.$(DllSuf)
|
---|
| 240 | DISPLAYLIB = libDelphesDisplay.lib
|
---|
| 241 |
|
---|
[850] | 242 | VERSION = $(shell cat VERSION)
|
---|
[857] | 243 | DISTDIR = Delphes-$(VERSION)
|
---|
[851] | 244 | DISTTAR = $(DISTDIR).tar.gz
|
---|
[850] | 245 |
|
---|
[593] | 246 | all:
|
---|
| 247 |
|
---|
| 248 | }
|
---|
| 249 |
|
---|
[1176] | 250 | executableDeps {converters/*.cpp} {examples/*.cpp}
|
---|
[593] | 251 |
|
---|
[1176] | 252 | executableDeps {readers/DelphesHepMC.cpp} {readers/DelphesLHEF.cpp} {readers/DelphesSTDHEP.cpp}
|
---|
| 253 |
|
---|
| 254 | puts {ifeq ($(HAS_CMSSW),true)}
|
---|
| 255 | executableDeps {readers/DelphesCMSFWLite.cpp}
|
---|
| 256 | puts {endif}
|
---|
| 257 | puts {}
|
---|
| 258 |
|
---|
| 259 | puts {ifeq ($(HAS_PROMC),true)}
|
---|
| 260 | executableDeps {readers/DelphesProMC.cpp}
|
---|
| 261 | sourceDeps {DELPHES} {external/ProMC/*.cc}
|
---|
| 262 | puts {endif}
|
---|
| 263 | puts {}
|
---|
| 264 |
|
---|
| 265 | puts {ifeq ($(HAS_PYTHIA8),true)}
|
---|
| 266 | executableDeps {readers/DelphesPythia8.cpp}
|
---|
[1177] | 267 | dictDeps {DELPHES_DICT} {modules/Pythia8LinkDef.h}
|
---|
[1176] | 268 | puts {endif}
|
---|
| 269 | puts {}
|
---|
| 270 |
|
---|
[1177] | 271 | dictDeps {DELPHES_DICT} {classes/ClassesLinkDef.h} {modules/ModulesLinkDef.h} {external/ExRootAnalysis/ExRootAnalysisLinkDef.h}
|
---|
[593] | 272 |
|
---|
[1177] | 273 | dictDeps {DISPLAY_DICT} {display/DisplayLinkDef.h}
|
---|
[593] | 274 |
|
---|
[1360] | 275 | sourceDeps {DELPHES} {classes/*.cc} {modules/*.cc} {external/ExRootAnalysis/*.cc} {external/fastjet/*.cc} {external/fastjet/tools/*.cc} {external/fastjet/plugins/*/*.cc} {external/Hector/*.cc}
|
---|
[1097] | 276 |
|
---|
| 277 | sourceDeps {DISPLAY} {display/*.cc}
|
---|
| 278 |
|
---|
[593] | 279 | tclDeps
|
---|
| 280 |
|
---|
| 281 | headerDeps
|
---|
| 282 |
|
---|
| 283 | puts {
|
---|
| 284 |
|
---|
| 285 | ###
|
---|
| 286 |
|
---|
[1097] | 287 | all: $(DELPHES) $(EXECUTABLE)
|
---|
[593] | 288 |
|
---|
[1097] | 289 | display: $(DISPLAY)
|
---|
| 290 |
|
---|
| 291 | $(DELPHES): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
|
---|
[593] | 292 | @mkdir -p $(@D)
|
---|
| 293 | @echo ">> Building $@"
|
---|
| 294 | ifeq ($(ARCH),aix5)
|
---|
[1097] | 295 | @$(MAKESHARED) $(OutPutOpt) $@ $(DELPHES_LIBS) -p 0 $^
|
---|
[593] | 296 | else
|
---|
| 297 | ifeq ($(PLATFORM),macosx)
|
---|
| 298 | # We need to make both the .dylib and the .so
|
---|
[1097] | 299 | @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
|
---|
[743] | 300 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
|
---|
| 301 | ifeq ($(MACOSX_MINOR),4)
|
---|
| 302 | @ln -sf $@ $(subst .$(DllSuf),.so,$@)
|
---|
| 303 | endif
|
---|
| 304 | endif
|
---|
[593] | 305 | else
|
---|
| 306 | ifeq ($(PLATFORM),win32)
|
---|
| 307 | @bindexplib $* $^ > $*.def
|
---|
[1097] | 308 | @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DELPHESLIB)
|
---|
| 309 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DELPHES_LIBS) $(OutPutOpt)$@
|
---|
[593] | 310 | @$(MT_DLL)
|
---|
| 311 | else
|
---|
[1097] | 312 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DELPHES_LIBS)
|
---|
[593] | 313 | @$(MT_DLL)
|
---|
| 314 | endif
|
---|
| 315 | endif
|
---|
| 316 | endif
|
---|
| 317 |
|
---|
[1097] | 318 | $(DISPLAY): $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ)
|
---|
| 319 | @mkdir -p $(@D)
|
---|
| 320 | @echo ">> Building $@"
|
---|
| 321 | ifeq ($(ARCH),aix5)
|
---|
| 322 | @$(MAKESHARED) $(OutPutOpt) $@ $(DISPLAY_LIBS) -p 0 $^
|
---|
| 323 | else
|
---|
| 324 | ifeq ($(PLATFORM),macosx)
|
---|
| 325 | # We need to make both the .dylib and the .so
|
---|
| 326 | @$(LD) $(SOFLAGS)$@ $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS)
|
---|
| 327 | ifneq ($(subst $(MACOSX_MINOR),,1234),1234)
|
---|
| 328 | ifeq ($(MACOSX_MINOR),4)
|
---|
| 329 | @ln -sf $@ $(subst .$(DllSuf),.so,$@)
|
---|
| 330 | endif
|
---|
| 331 | endif
|
---|
| 332 | else
|
---|
| 333 | ifeq ($(PLATFORM),win32)
|
---|
| 334 | @bindexplib $* $^ > $*.def
|
---|
| 335 | @lib -nologo -MACHINE:IX86 $^ -def:$*.def $(OutPutOpt)$(DISPLAYLIB)
|
---|
| 336 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $*.exp $(DISPLAY_LIBS) $(OutPutOpt)$@
|
---|
| 337 | @$(MT_DLL)
|
---|
| 338 | else
|
---|
| 339 | @$(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(DISPLAY_LIBS)
|
---|
| 340 | @$(MT_DLL)
|
---|
| 341 | endif
|
---|
| 342 | endif
|
---|
| 343 | endif
|
---|
| 344 |
|
---|
[593] | 345 | clean:
|
---|
[1097] | 346 | @rm -f $(DELPHES_DICT_OBJ) $(DISPLAY_DICT_OBJ) $(DELPHES_OBJ) $(DISPLAY_OBJ) $(TCL_OBJ) core
|
---|
| 347 | @rm -rf tmp
|
---|
[593] | 348 |
|
---|
| 349 | distclean: clean
|
---|
[1097] | 350 | @rm -f $(DELPHES) $(DELPHESLIB) $(DISPLAY) $(DISPLAYLIB) $(EXECUTABLE)
|
---|
[593] | 351 |
|
---|
[850] | 352 | dist:
|
---|
[851] | 353 | @echo ">> Building $(DISTTAR)"
|
---|
[850] | 354 | @mkdir -p $(DISTDIR)
|
---|
[1269] | 355 | @cp -a CHANGELOG CREDITS README VERSION Makefile configure classes converters display doc examples external modules python readers $(DISTDIR)
|
---|
[851] | 356 | @find $(DISTDIR) -depth -name .\* -exec rm -rf {} \;
|
---|
| 357 | @tar -czf $(DISTTAR) $(DISTDIR)
|
---|
[850] | 358 | @rm -rf $(DISTDIR)
|
---|
| 359 |
|
---|
[593] | 360 | ###
|
---|
| 361 |
|
---|
| 362 | .SUFFIXES: .$(SrcSuf) .$(ObjSuf) .$(DllSuf)
|
---|
| 363 |
|
---|
| 364 | %Dict.$(SrcSuf):
|
---|
| 365 | @mkdir -p $(@D)
|
---|
| 366 | @echo ">> Generating $@"
|
---|
[1177] | 367 | @rootcint -f $@ -c -Iexternal $<
|
---|
[593] | 368 | @echo "#define private public" > $@.arch
|
---|
| 369 | @echo "#define protected public" >> $@.arch
|
---|
| 370 | @mv $@ $@.base
|
---|
| 371 | @cat $@.arch $< $@.base > $@
|
---|
| 372 | @rm $@.arch $@.base
|
---|
| 373 |
|
---|
[1097] | 374 | $(DELPHES_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
|
---|
[593] | 375 | @mkdir -p $(@D)
|
---|
| 376 | @echo ">> Compiling $<"
|
---|
| 377 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
| 378 |
|
---|
[1097] | 379 | $(DISPLAY_OBJ): tmp/%.$(ObjSuf): %.$(SrcSuf)
|
---|
[593] | 380 | @mkdir -p $(@D)
|
---|
| 381 | @echo ">> Compiling $<"
|
---|
| 382 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
| 383 |
|
---|
[1097] | 384 | $(DELPHES_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
|
---|
| 385 | @mkdir -p $(@D)
|
---|
| 386 | @echo ">> Compiling $<"
|
---|
| 387 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
| 388 |
|
---|
| 389 | $(DISPLAY_DICT_OBJ): %.$(ObjSuf): %.$(SrcSuf)
|
---|
| 390 | @mkdir -p $(@D)
|
---|
| 391 | @echo ">> Compiling $<"
|
---|
| 392 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
| 393 |
|
---|
[593] | 394 | $(TCL_OBJ): tmp/%.$(ObjSuf): %.c
|
---|
| 395 | @mkdir -p $(@D)
|
---|
| 396 | @echo ">> Compiling $<"
|
---|
| 397 | @gcc $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
| 398 |
|
---|
| 399 | $(EXECUTABLE_OBJ): tmp/%.$(ObjSuf): %.cpp
|
---|
| 400 | @mkdir -p $(@D)
|
---|
| 401 | @echo ">> Compiling $<"
|
---|
| 402 | @$(CXX) $(CXXFLAGS) -c $< $(OutPutOpt)$@
|
---|
| 403 |
|
---|
[1097] | 404 | $(EXECUTABLE): %$(ExeSuf): $(DELPHES_DICT_OBJ) $(DELPHES_OBJ) $(TCL_OBJ)
|
---|
[593] | 405 | @echo ">> Building $@"
|
---|
[1097] | 406 | @$(LD) $(LDFLAGS) $^ $(DELPHES_LIBS) $(OutPutOpt)$@
|
---|
[593] | 407 |
|
---|
| 408 | ###
|
---|
| 409 |
|
---|
| 410 | }
|
---|