Changeset ded7435 in git for doc/genMakefile.tcl
- Timestamp:
- May 28, 2013, 11:10:23 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 84a1f7d
- Parents:
- 090fe5e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/genMakefile.tcl
r090fe5e rded7435 31 31 } 32 32 } 33 33 34 34 if {[llength $list] > 0} { 35 35 puts -nonewline $firstLine … … 49 49 } 50 50 51 close $fid 51 close $fid 52 52 } 53 53 … … 57 57 58 58 set dict [eval glob -nocomplain $args] 59 59 60 60 set dictSrcFiles {} 61 61 set dictObjFiles {} … … 64 64 regsub {LinkDef\.h} $fileName {Dict} dictName 65 65 set dictName $prefix$dictName 66 66 67 67 lappend dictSrcFiles $dictName$srcSuf 68 68 lappend dictObjFiles $dictName$objSuf 69 69 70 70 dependencies $fileName "$dictName$srcSuf:$suffix$fileName" 71 71 } 72 72 73 73 puts -nonewline "${dictVar} = $suffix" 74 74 puts [join $dictSrcFiles $suffix] … … 84 84 85 85 global prefix suffix srcSuf objSuf 86 86 87 87 set source [eval glob -nocomplain $args] 88 88 89 89 set srcObjFiles {} 90 90 91 91 foreach fileName $source { 92 92 regsub {\.cc} $fileName {} srcName 93 93 set srcObjName $prefix$srcName 94 94 95 95 lappend srcObjFiles $srcObjName$objSuf 96 96 97 97 dependencies $fileName "$srcObjName$objSuf:$suffix$srcName$srcSuf" 98 98 } … … 106 106 107 107 global prefix suffix srcSuf objSuf 108 108 109 109 set source [glob -nocomplain {external/tcl/*.c}] 110 110 111 111 set srcObjFiles {} 112 112 113 113 foreach fileName $source { 114 114 if {$fileName == "tcl/tclc.c" || $fileName == "tcl/tcl.c"} continue 115 115 116 116 regsub {\.c} $fileName {} srcName 117 117 set srcObjName $prefix$srcName 118 118 119 119 lappend srcObjFiles $srcObjName$objSuf 120 120 121 121 dependencies $fileName "$srcObjName$objSuf:$suffix$fileName" 122 122 } 123 123 124 124 puts -nonewline "TCL_OBJ = $suffix" 125 125 puts [join $srcObjFiles $suffix] … … 130 130 131 131 global prefix suffix objSuf exeSuf 132 132 133 133 set executable [glob -nocomplain {readers/*.cpp} {converters/*.cpp} {examples/*.cpp}] 134 134 135 135 set exeFiles {} 136 136 137 137 foreach fileName $executable { 138 138 if {$fileName == "examples/DelphesCMSFWLite.cpp"} continue … … 144 144 lappend exeFiles $exeName$exeSuf 145 145 lappend exeObjFiles $exeObjName$objSuf 146 146 147 147 puts "$exeName$exeSuf:$suffix$exeObjName$objSuf" 148 148 puts "" 149 149 150 150 dependencies $fileName "$exeObjName$objSuf:$suffix$fileName" 151 151 } 152 152 153 153 if [info exists exeFiles] { 154 154 puts -nonewline "EXECUTABLE = $suffix" … … 166 166 proc headerDeps {} { 167 167 global suffix headerFiles 168 168 169 169 foreach fileName [array names headerFiles] { 170 170 dependencies $fileName "$fileName:" 0 "\t@touch \$@"
Note:
See TracChangeset
for help on using the changeset viewer.