Fork me on GitHub

Changeset 1128 in svn


Ignore:
Timestamp:
May 28, 2013, 11:10:23 PM (12 years ago)
Author:
Pavel Demin
Message:

update Makefile

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r1123 r1128  
    136136        external/ExRootAnalysis/ExRootTreeBranch.h \
    137137        external/ExRootAnalysis/ExRootProgressBar.h
     138Example1$(ExeSuf): \
     139        tmp/examples/Example1.$(ObjSuf)
     140
     141tmp/examples/Example1.$(ObjSuf): \
     142        examples/Example1.cpp \
     143        classes/DelphesClasses.h \
     144        external/ExRootAnalysis/ExRootTreeReader.h \
     145        external/ExRootAnalysis/ExRootTreeWriter.h \
     146        external/ExRootAnalysis/ExRootTreeBranch.h \
     147        external/ExRootAnalysis/ExRootResult.h \
     148        external/ExRootAnalysis/ExRootUtilities.h
    138149EXECUTABLE =  \
    139150        DelphesLHEF$(ExeSuf) \
     
    145156        stdhep2pileup$(ExeSuf) \
    146157        hepmc2pileup$(ExeSuf) \
    147         pileup2root$(ExeSuf)
     158        pileup2root$(ExeSuf) \
     159        Example1$(ExeSuf)
    148160
    149161EXECUTABLE_OBJ =  \
     
    156168        tmp/converters/stdhep2pileup.$(ObjSuf) \
    157169        tmp/converters/hepmc2pileup.$(ObjSuf) \
    158         tmp/converters/pileup2root.$(ObjSuf)
     170        tmp/converters/pileup2root.$(ObjSuf) \
     171        tmp/examples/Example1.$(ObjSuf)
    159172
    160173tmp/classes/ClassesDict.$(SrcSuf): \
  • trunk/doc/genMakefile.tcl

    r1127 r1128  
    3131    }
    3232  }
    33  
     33
    3434  if {[llength $list] > 0} {
    3535    puts -nonewline $firstLine
     
    4949  }
    5050
    51   close $fid 
     51  close $fid
    5252}
    5353
     
    5757
    5858  set dict [eval glob -nocomplain $args]
    59  
     59
    6060  set dictSrcFiles {}
    6161  set dictObjFiles {}
     
    6464    regsub {LinkDef\.h} $fileName {Dict} dictName
    6565    set dictName $prefix$dictName
    66  
     66
    6767    lappend dictSrcFiles $dictName$srcSuf
    6868    lappend dictObjFiles $dictName$objSuf
    69  
     69
    7070    dependencies $fileName "$dictName$srcSuf:$suffix$fileName"
    7171  }
    72  
     72
    7373  puts -nonewline "${dictVar} = $suffix"
    7474  puts [join $dictSrcFiles $suffix]
     
    8484
    8585  global prefix suffix srcSuf objSuf
    86  
     86
    8787  set source [eval glob -nocomplain $args]
    88    
     88
    8989  set srcObjFiles {}
    90  
     90
    9191  foreach fileName $source {
    9292    regsub {\.cc} $fileName {} srcName
    9393    set srcObjName $prefix$srcName
    94  
     94
    9595    lappend srcObjFiles $srcObjName$objSuf
    96  
     96
    9797    dependencies $fileName "$srcObjName$objSuf:$suffix$srcName$srcSuf"
    9898  }
     
    106106
    107107  global prefix suffix srcSuf objSuf
    108    
     108
    109109  set source [glob -nocomplain {external/tcl/*.c}]
    110  
     110
    111111  set srcObjFiles {}
    112  
     112
    113113  foreach fileName $source {
    114114    if {$fileName == "tcl/tclc.c" || $fileName == "tcl/tcl.c"} continue
    115  
     115
    116116    regsub {\.c} $fileName {} srcName
    117117    set srcObjName $prefix$srcName
    118  
     118
    119119    lappend srcObjFiles $srcObjName$objSuf
    120  
     120
    121121    dependencies $fileName "$srcObjName$objSuf:$suffix$fileName"
    122122  }
    123  
     123
    124124  puts -nonewline "TCL_OBJ = $suffix"
    125125  puts [join $srcObjFiles $suffix]
     
    130130
    131131  global prefix suffix objSuf exeSuf
    132    
     132
    133133  set executable [glob -nocomplain {readers/*.cpp} {converters/*.cpp} {examples/*.cpp}]
    134  
     134
    135135  set exeFiles {}
    136  
     136
    137137  foreach fileName $executable {
    138138    if {$fileName == "examples/DelphesCMSFWLite.cpp"} continue
     
    144144    lappend exeFiles $exeName$exeSuf
    145145    lappend exeObjFiles $exeObjName$objSuf
    146    
     146
    147147    puts "$exeName$exeSuf:$suffix$exeObjName$objSuf"
    148148    puts ""
    149  
     149
    150150    dependencies $fileName "$exeObjName$objSuf:$suffix$fileName"
    151151  }
    152  
     152
    153153  if [info exists exeFiles] {
    154154    puts -nonewline "EXECUTABLE = $suffix"
     
    166166proc headerDeps {} {
    167167  global suffix headerFiles
    168    
     168
    169169  foreach fileName [array names headerFiles] {
    170170    dependencies $fileName "$fileName:" 0 "\t@touch \$@"
Note: See TracChangeset for help on using the changeset viewer.