]>
Commit | Line | Data |
---|---|---|
117cfc60 | 1 | #-*- Mode: Makefile -*- |
f0a26826 | 2 | |
f347de98 | 3 | |
f0a26826 | 4 | ifndef PACKFFLAGS |
5 | @PACKAGE@FFLAGS:=$(FFLAGS) | |
6 | else | |
7 | @PACKAGE@FFLAGS:=$(PACKFFLAGS) | |
8 | endif | |
9 | ||
10 | ifndef PACKCFLAGS | |
11 | @PACKAGE@CFLAGS:=$(CFLAGS) | |
12 | else | |
13 | @PACKAGE@CFLAGS:=$(PACKCFLAGS) | |
14 | endif | |
15 | ||
16 | ifndef PACKCXXFLAGS | |
17 | @PACKAGE@CXXFLAGS:=$(CXXFLAGS) | |
18 | else | |
19 | @PACKAGE@CXXFLAGS:=$(PACKCXXFLAGS) | |
20 | endif | |
21 | ||
88cb7938 | 22 | ifndef PACKSOFLAGS |
23 | @PACKAGE@SOFLAGS:=$(SOFLAGS) | |
24 | else | |
25 | @PACKAGE@SOFLAGS:=$(PACKSOFLAGS) | |
26 | endif | |
27 | ||
28 | ifdef DYEXT | |
29 | ifndef PACKDYFLAGS | |
30 | @PACKAGE@DYFLAGS:=$(DYFLAGS) | |
31 | else | |
32 | @PACKAGE@DYFLAGS:=$(PACKDYFLAGS) | |
33 | endif | |
34 | endif | |
35 | ||
651e35f1 | 36 | ifndef PACKLDFLAGS |
37 | @PACKAGE@LDFLAGS:=$(LDFLAGS) | |
38 | else | |
39 | @PACKAGE@LDFLAGS:=$(PACKLDFLAGS) | |
40 | endif | |
41 | ||
810722e6 | 42 | ifndef PACKDCXXFLAGS |
19ca05d1 | 43 | @PACKAGE@DCXXFLAGS:=$(CXXFLAGSNO) |
810722e6 | 44 | else |
117cfc60 | 45 | @PACKAGE@DCXXFLAGS:=$(PACKDCXXFLAGS) |
810722e6 | 46 | endif |
47 | ||
de6c7cfd | 48 | ifndef PACKBLIBS |
49 | @PACKAGE@BLIBS:=$(LIBS) | |
50 | else | |
51 | @PACKAGE@BLIBS:=$(PACKBLIBS) | |
52 | endif | |
53 | ||
f0a26826 | 54 | |
55 | ifdef DHDR | |
56 | WITHDICT=YES | |
57 | else | |
58 | WITHDICT= | |
59 | endif | |
60 | ||
f347de98 | 61 | # Headerfiles exported to common place: |
62 | @PACKAGE@EXPORT:=$(EXPORT) | |
63 | @PACKAGE@EXPORTDEST:=$(patsubst %,$(EXPORTDIR)/%,$(EXPORT)) | |
64 | ||
65 | ||
67fd7264 | 66 | #Extra include,libs, defines etc. |
67 | ||
2603dcc4 | 68 | @PACKAGE@DEFINE:=$(EDEFINE) -D__MODULE__=\"@MODULE@\" |
f347de98 | 69 | |
70 | @PACKAGE@INC:=$(patsubst %,-I%,$(EINCLUDE)) -I@MODULE@ | |
71 | ||
f0a26826 | 72 | @PACKAGE@ELIBS:=$(patsubst %,-l%,$(ELIBS)) |
87c71321 | 73 | @PACKAGE@ELIBSDEP:=$(patsubst %,lib/tgt_$(ALICE_TARGET)/lib%.$(SOEXT),$(ELIBS)) |
f0a26826 | 74 | @PACKAGE@ELIBSDIR:=$(patsubst %,-L%,$(ELIBSDIR)) |
75 | ||
76 | #c sources and headers | |
77 | ||
78 | @PACKAGE@CS:=$(patsubst %,$(MODDIR)/%,$(CSRCS)) | |
79 | @PACKAGE@CH:=$(patsubst %,$(MODDIR)/%,$(CHDRS)) | |
80 | ||
81 | #Fortran sources | |
82 | @PACKAGE@FS:=$(patsubst %,$(MODDIR)/%,$(FSRCS)) | |
83 | ||
84 | #c++ sources and header | |
85 | @PACKAGE@S:=$(patsubst %,$(MODDIR)/%,$(SRCS)) | |
f347de98 | 86 | @PACKAGE@H:=$(patsubst %,$(MODDIR)/%,$(HDRS)) $(EHDRS) |
87 | ||
eec15521 | 88 | #c++ source subdirectories |
89 | @PACKAGE@SDIR:=$(SUBDIR) | |
90 | ||
f347de98 | 91 | ############################################################################# |
92 | # | |
93 | # If special rootcint headerfiles is specified use them | |
94 | # else use all headers | |
f0a26826 | 95 | |
f347de98 | 96 | ifndef CINTHDRS |
97 | @PACKAGE@CINTHDRS:=$(@PACKAGE@H) | |
98 | else | |
99 | @PACKAGE@CINTHDRS:=$(CINTHDRS) | |
100 | endif | |
101 | ############################################################################# | |
f0a26826 | 102 | |
103 | # Package Dictionary | |
f0a26826 | 104 | @PACKAGE@DH:=$(MODDIR)/$(DHDR) |
105 | ||
f0a26826 | 106 | #All objects |
107 | @PACKAGE@CO:=$(patsubst %,$(MODDIRO)/%, $(CSRCS:.c=.o)) | |
108 | TEMP:=$(FSRCS:.F=.o) | |
109 | @PACKAGE@FO:=$(patsubst %,$(MODDIRO)/%, $(TEMP:.f=.o)) | |
110 | @PACKAGE@O:= $(patsubst %,$(MODDIRO)/%, $(SRCS:.cxx=.o)) $(@PACKAGE@FO) $(@PACKAGE@CO) | |
111 | ||
d47d6108 | 112 | |
113 | ||
f0a26826 | 114 | ifdef WITHDICT |
115 | @PACKAGE@DS:=$(MODDIRO)/G__@PACKAGE@.cxx | |
116 | @PACKAGE@DO:=$(MODDIRO)/G__@PACKAGE@.o | |
117 | @PACKAGE@DDEP:=$(@PACKAGE@DO:.o=.d) | |
118 | @PACKAGE@DEP:=$(@PACKAGE@O:.o=.d) $(@PACKAGE@DDEP) | |
119 | else | |
120 | @PACKAGE@DS:= | |
121 | @PACKAGE@DO:= | |
122 | @PACKAGE@DDEP:= | |
123 | @PACKAGE@DEP:=$(@PACKAGE@O:.o=.d) | |
124 | endif | |
125 | ||
126 | ||
127 | #The actual library file | |
128 | ||
129 | @PACKAGE@LIB:=$(LIBPATH)/lib@PACKAGE@.$(SOEXT) | |
40c469d5 | 130 | |
131 | ifneq ($(DYEXT),) | |
132 | @PACKAGE@DLIB:=$(LIBPATH)/lib@PACKAGE@.$(DYEXT) | |
133 | endif | |
134 | ||
2d8cad5a | 135 | @PACKAGE@ALIB:=$(LIBPATH)/lib@PACKAGE@.$(AEXT) |
f0a26826 | 136 | |
d47d6108 | 137 | #Add this to the modules libs |
138 | @MODULE@LIBS += $(@PACKAGE@LIB) | |
2d8cad5a | 139 | @MODULE@ALIBS += $(@PACKAGE@ALIB) |
40c469d5 | 140 | ifneq ($(DYEXT),) |
141 | @MODULE@DLIBS += $(@PACKAGE@DLIB) | |
142 | endif | |
d47d6108 | 143 | |
f0a26826 | 144 | #The actual binary file |
145 | ||
146 | @PACKAGE@BIN:=$(BINPATH)/@PACKAGE@ | |
147 | ||
d47d6108 | 148 | #Add to modules list of binaries |
149 | @MODULE@BINS += $(@PACKAGE@BIN) | |
f0a26826 | 150 | |
f347de98 | 151 | # Use in the main Makefile |
f0a26826 | 152 | |
153 | ifeq ($(TYPE),lib) | |
154 | ALLLIBS += $(@PACKAGE@LIB) | |
2d8cad5a | 155 | ALLALIBS += $(@PACKAGE@ALIB) |
40c469d5 | 156 | ifneq ($(DYEXT),) |
157 | ALLLIBS += $(@PACKAGE@DLIB) | |
158 | endif | |
f0a26826 | 159 | BINLIBS += -l@PACKAGE@ |
160 | else | |
161 | ALLEXECS += $(@PACKAGE@BIN) | |
162 | endif | |
163 | ||
40c469d5 | 164 | ifeq ($(DYEXT),) |
165 | @PACKAGE@LIB := $(@PACKAGE@LIB) | |
166 | else | |
167 | @PACKAGE@LIB := $(@PACKAGE@LIB) | |
168 | endif | |
169 | ||
87c71321 | 170 | # include all dependence files |
f0a26826 | 171 | INCLUDEFILES +=$(@PACKAGE@DEP) |
172 | ||
f347de98 | 173 | EXPORTFILES += $(@PACKAGE@EXPORTDEST) |
f0a26826 | 174 | |
175 | #local rules | |
176 | ||
f347de98 | 177 | #The exportfiles only include if any!! |
178 | ||
179 | ifdef @PACKAGE@EXPORT | |
896cb507 | 180 | #$(@PACKAGE@EXPORTDEST): $(patsubst %,@MODULE@/%,$(@PACKAGE@EXPORT)) |
181 | ||
182 | $(@PACKAGE@EXPORTDEST): $(EXPORTDIR)/%.h: @MODULE@/%.h | |
15142e2f | 183 | ifndef ALIQUIET |
ba419e66 | 184 | @echo "***** Copying file $^ to $@ *****" |
15142e2f | 185 | endif |
53f2641c | 186 | @[ -d $(dir $@) ] || mkdir -p $(dir $@) |
ba419e66 | 187 | @cp $^ $@ |
f347de98 | 188 | endif |
189 | ||
88cb7938 | 190 | #------------------------------------------------------------------------ |
191 | ||
796dbee6 | 192 | ifneq (,$(findstring macosx,$(ALICE_TARGET))) |
f3564e28 | 193 | $(@PACKAGE@LIB): $(@PACKAGE@DLIB) $(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk |
194 | ifndef ALIQUIET | |
195 | @echo "***** Linking library $@ *****" | |
196 | endif | |
197 | $(MUTE)rm -f $@; cd $(dir $@); ln -s $(notdir $(@PACKAGE@DLIB)) $(notdir $@) | |
198 | else | |
f0a26826 | 199 | $(@PACKAGE@LIB):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk |
15142e2f | 200 | ifndef ALIQUIET |
f0a26826 | 201 | @echo "***** Linking library $@ *****" |
15142e2f | 202 | endif |
faeab8a4 | 203 | $(MUTE)TMPDIR=/tmp/@MODULE@$$$$.`date +%M%S` ; \ |
117cfc60 | 204 | export TMPDIR; mkdir -p $$TMPDIR ; cd $$TMPDIR ; \ |
faeab8a4 | 205 | find $(CURDIR)/@MODULE@/tgt_$(ALICE_TARGET) -name '*.o' -exec ln -s {} . \; ;\ |
043a26ce | 206 | \rm -f $(CURDIR)/$@ ;\ |
7930dd19 | 207 | TMPLIB=$(notdir $(@PACKAGE@LIB)); export TMPLIB;\ |
ce4e6d58 | 208 | $(SHLD) $(@PACKAGE@SOFLAGS) -o $(CURDIR)/$@ $(notdir $(@PACKAGE@O) $(@PACKAGE@DO)) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) $(SHLIB);\ |
209 | chmod a-w $(CURDIR)/$@ ;\ | |
fe250300 | 210 | cd $(ALICE_ROOT) ; \rm -rf $$TMPDIR |
f3564e28 | 211 | endif |
810722e6 | 212 | |
40c469d5 | 213 | ifneq ($(DYEXT),) |
214 | $(@PACKAGE@DLIB):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk | |
215 | ifndef ALIQUIET | |
216 | @echo "***** Linking library $@ *****" | |
217 | endif | |
218 | $(MUTE)TMPDIR=/tmp/@MODULE@$$$$.`date +%M%S` ; \ | |
117cfc60 | 219 | export TMPDIR; mkdir -p $$TMPDIR ; cd $$TMPDIR ; \ |
40c469d5 | 220 | find $(CURDIR)/@MODULE@/tgt_$(ALICE_TARGET) -name '*.o' -exec ln -s {} . \; ;\ |
fe250300 | 221 | \rm -f $(CURDIR)/$@ ;\ |
ce4e6d58 | 222 | $(DYLD) $(@PACKAGE@DYFLAGS) -o $(CURDIR)/$@ $(notdir $(@PACKAGE@O) $(@PACKAGE@DO)) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) $(DYLIB);\ |
223 | chmod a-w $(CURDIR)/$@ ;\ | |
fe250300 | 224 | cd $(ALICE_ROOT) ; \rm -rf $$TMPDIR |
40c469d5 | 225 | endif |
226 | ||
88cb7938 | 227 | #------------------------------------------------------------------------ |
228 | ||
2d8cad5a | 229 | $(@PACKAGE@ALIB):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk |
230 | ifndef ALIQUIET | |
231 | @echo "***** Linking static library $@ *****" | |
232 | endif | |
233 | $(MUTE)TMPDIR=/tmp/@MODULE@$$$$.`date +%M%S` ; \ | |
117cfc60 | 234 | export TMPDIR; mkdir -p $$TMPDIR ; cd $$TMPDIR ; \ |
2d8cad5a | 235 | find $(CURDIR)/@MODULE@/tgt_$(ALICE_TARGET) -name '*.o' -exec ln -s {} . \; ;\ |
7930dd19 | 236 | \rm -f $(CURDIR)/$@ ;\ |
237 | TMPLIB=$(notdir $(@PACKAGE@LIB)); export TMPLIB;\ | |
043a26ce | 238 | $(ALLD) $(ALFLAGS) $(CURDIR)/$@ $(notdir $(@PACKAGE@O) $(@PACKAGE@DO)) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) $(ALLIB);\ |
239 | cd $(CURDIR) ; \rm -rf $$TMPDIR | |
2d8cad5a | 240 | $(MUTE)chmod a-w $@ |
241 | ||
242 | ||
2603dcc4 | 243 | $(@PACKAGE@BIN):$(@PACKAGE@O) $(@PACKAGE@DO) @MODULE@/module.mk |
15142e2f | 244 | ifndef ALIQUIET |
245 | @echo "***** Making executable $@ *****" | |
246 | endif | |
2d8cad5a | 247 | ifeq ($(ALIPROFILE),YES) |
de6c7cfd | 248 | $(MUTE)$(LD) $(@PACKAGE@LDFLAGS) $(@PACKAGE@O) $(ARLIBS) $(SHLIBS) $(@PACKAGE@BLIBS) $(EXEFLAGS) -o $@ |
2d8cad5a | 249 | else |
de6c7cfd | 250 | $(MUTE)$(LD) $(@PACKAGE@LDFLAGS) $(@PACKAGE@O) $(@PACKAGE@DO) $(BINLIBDIRS) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@ELIBS) $(@PACKAGE@BLIBS) $(EXEFLAGS) -o $@ |
2d8cad5a | 251 | endif |
f0a26826 | 252 | |
de6c7cfd | 253 | $(@PACKAGE@DS): $(@PACKAGE@CINTHDRS) $(@PACKAGE@DH) @MODULE@/module.mk @MODULE@/tgt_$(ALICE_TARGET)/@PACKAGE@_srcslist |
15142e2f | 254 | ifndef ALIQUIET |
f0a26826 | 255 | @echo "***** Creating $@ *****"; |
15142e2f | 256 | endif |
f0a26826 | 257 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
043a26ce | 258 | @\rm -f $(patsubst %.cxx,%.d, $@) |
67fd7264 | 259 | $(MUTE)rootcint -f $@ -c $(@PACKAGE@DEFINE) $(CINTFLAGS) $(@PACKAGE@INC) $(@PACKAGE@CINTHDRS) $(@PACKAGE@DH) |
f0a26826 | 260 | |
261 | $(@PACKAGE@DO): $(@PACKAGE@DS) | |
15142e2f | 262 | ifndef ALIQUIET |
263 | @echo "***** Compiling $< *****"; | |
264 | endif | |
117cfc60 | 265 | $(MUTE)$(CXX) $(@PACKAGE@DEFINE) -c $(@PACKAGE@INC) -I$(ALICE_ROOT) $< -o $@ $(@PACKAGE@DCXXFLAGS) |
f0a26826 | 266 | |
de6c7cfd | 267 | $(MODDIRO)/@PACKAGE@_srcslist: FORCE |
268 | @for i in $(@PACKAGE@CS) $(@PACKAGE@S); do echo $$i; done | sort > $@.new ;\ | |
fc76e06c | 269 | diff $@ $@.new 2>/dev/null | sed -n -e "s?^\< *@MODULE@?@MODULE@/tgt_$(ALICE_TARGET)?p" | \ |
de6c7cfd | 270 | sed -e "s?\.c.*\$$?.\*?" | xargs \rm -f ;\ |
271 | diff -q -w >/dev/null 2>&1 $@ $@.new ;\ | |
272 | if [ $$? -ne 0 ]; then \mv $@.new $@; echo "***** Source changed, remaking $(@PACKAGE@DS) *****";\ | |
273 | else \rm $@.new; fi | |
274 | ||
f0a26826 | 275 | #Different targets for the module |
276 | ||
5edd655b | 277 | ifeq ($(TYPE),lib) |
5864aa62 | 278 | all-@PACKAGE@: $(@PACKAGE@LIB) |
40c469d5 | 279 | ifneq ($(DYEXT),) |
280 | all-@PACKAGE@: $(@PACKAGE@DLIB) | |
281 | endif | |
5edd655b | 282 | else |
283 | all-@PACKAGE@: $(@PACKAGE@BIN) | |
284 | endif | |
285 | ||
f0a26826 | 286 | depend-@PACKAGE@: $(@PACKAGE@DEP) |
287 | ||
288 | # determination of object files | |
289 | $(MODDIRO)/%.o: $(MODDIR)/%.cxx $(MODDIRO)/%.d | |
15142e2f | 290 | ifndef ALIQUIET |
291 | @echo "***** Compiling $< *****"; | |
292 | endif | |
f0a26826 | 293 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
67fd7264 | 294 | $(MUTE)$(CXX) $(@PACKAGE@DEFINE) -c $(@PACKAGE@INC) $< -o $@ $(@PACKAGE@CXXFLAGS) |
f0a26826 | 295 | |
296 | $(MODDIRO)/%.o: $(MODDIR)/%.F $(MODDIRO)/%.d | |
15142e2f | 297 | ifndef ALIQUIET |
298 | @echo "***** Compiling $< *****"; | |
299 | endif | |
f0a26826 | 300 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
15142e2f | 301 | $(MUTE)$(F77) -c $(@PACKAGE@INC) $< -o $@ $(@PACKAGE@FFLAGS) |
f0a26826 | 302 | |
303 | $(MODDIRO)/%.o: $(MODDIR)/%.f $(MODDIRO)/%.d | |
15142e2f | 304 | ifndef ALIQUIET |
305 | @echo "***** Compiling $< *****"; | |
306 | endif | |
f0a26826 | 307 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
15142e2f | 308 | $(MUTE)$(F77) -c $(@PACKAGE@INC) $< -o $@ $(@PACKAGE@FFLAGS) |
f0a26826 | 309 | |
310 | $(MODDIRO)/%.o: $(MODDIR)/%.c $(MODDIRO)/%.d | |
15142e2f | 311 | ifndef ALIQUIET |
312 | @echo "***** Compiling $< *****"; | |
313 | endif | |
f0a26826 | 314 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
67fd7264 | 315 | $(MUTE)$(CC) $(@PACKAGE@DEFINE) -c $(@PACKAGE@INC) $< -o $@ $(@PACKAGE@CFLAGS) |
f0a26826 | 316 | |
317 | $(@PACKAGE@DDEP): $(@PACKAGE@DS) | |
15142e2f | 318 | ifndef ALIQUIET |
87c71321 | 319 | @echo "***** Making dependences for $< *****"; |
15142e2f | 320 | endif |
f0a26826 | 321 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
322 | @share/alibtool depend "$(@PACKAGE@ELIBSDIR) $(@PACKAGE@INC) $(DEPINC) $<" > $@ | |
323 | ||
d47d6108 | 324 | $(MODDIRO)/%.d: $(MODDIRS)/%.cxx |
15142e2f | 325 | ifndef ALIQUIET |
87c71321 | 326 | @echo "***** Making dependences for $< *****"; |
15142e2f | 327 | endif |
f0a26826 | 328 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
67fd7264 | 329 | @share/alibtool depend "$(@PACKAGE@DEFINE) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@INC) $(DEPINC) $<" > $@ |
896cb507 | 330 | $(MODDIRO)/%.d: $(MODDIRS)/%.f |
15142e2f | 331 | ifndef ALIQUIET |
87c71321 | 332 | @echo "***** Making dependences for $< *****"; |
15142e2f | 333 | endif |
f0a26826 | 334 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
896cb507 | 335 | @share/alibtool dependF "$(@PACKAGE@ELIBSDIR) $(@PACKAGE@INC) $(DEPINC) $<" > $@ |
336 | $(MODDIRO)/%.d: $(MODDIRS)/%.F | |
15142e2f | 337 | ifndef ALIQUIET |
87c71321 | 338 | @echo "***** Making dependences for $< *****"; |
15142e2f | 339 | endif |
f0a26826 | 340 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
15142e2f | 341 | $(MUTE)share/alibtool dependF "$(@PACKAGE@ELIBSDIR) $(@PACKAGE@INC) $(DEPINC) $<" > $@ |
896cb507 | 342 | $(MODDIRO)/%.d: $(MODDIRS)/%.c |
15142e2f | 343 | ifndef ALIQUIET |
87c71321 | 344 | @echo "***** Making dependences for $< *****"; |
15142e2f | 345 | endif |
f0a26826 | 346 | @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;) |
67fd7264 | 347 | @share/alibtool depend "$(@PACKAGE@DEFINE) $(@PACKAGE@ELIBSDIR) $(@PACKAGE@INC) $(DEPINC) $<" > $@ |
b9d0a01d | 348 | |
bdfb9593 | 349 | .PRECIOUS: $(patsubst %.cxx,$(MODDIRO)/%.d,$(SRCS)) |
350 | .PRECIOUS: $(patsubst %.c,$(MODDIRO)/%.d,$(CSRCS)) | |
351 | .PRECIOUS: $(patsubst %.F,$(MODDIRO)/%.d,$(patsubst %.f,$(MODDIRO)/%.d,$(FSRCS))) | |
814cac0f | 352 | |
7e96fcc7 | 353 | @PACKAGE@CHECKS := $(patsubst %.cxx,@MODULE@/check/%.viol,$(SRCS)) |
b9d0a01d | 354 | |
7e96fcc7 | 355 | check-@MODULE@: $(@PACKAGE@CHECKS) |
b9d0a01d | 356 | |
357 | # IRST coding rule check | |
2603dcc4 | 358 | @MODULE@/check/%.i : @MODULE@/%.cxx @MODULE@/%.h |
b9d0a01d | 359 | @[ -d $(dir $@) ] || mkdir -p $(dir $@) |
f684a380 | 360 | $(MUTE)$(CXX) -E $(@PACKAGE@DEFINE) $(@PACKAGE@INC) -I. $< > $@ $(@PACKAGE@CXXFLAGS) |
b9d0a01d | 361 | @cd $(dir $@) ; $(IRST_INSTALLDIR)/patch/patch4alice.prl $(notdir $@) |
362 | ||
eec15521 | 363 | # IRST coding rule check |
364 | @MODULE@/check/$(SUBDIR)/%.viol : @MODULE@/check/$(SUBDIR)/%.i | |
88eed770 | 365 | $(MUTE)echo $@ ; $(CODE_CHECK) $< ./@MODULE@/$(@PACKAGE@SDIR) > $@ |
eec15521 | 366 | |
b9d0a01d | 367 | # IRST coding rule check |
7e96fcc7 | 368 | @MODULE@/check/%.viol : @MODULE@/check/%.i |
88eed770 | 369 | $(MUTE)echo $@ ; $(CODE_CHECK) $< ./@MODULE@ > $@ |
b9d0a01d | 370 | |
371 | @PACKAGE@PREPROC = $(patsubst %.viol,%.i,$(@PACKAGE@CHECKS)) | |
372 | ||
373 | @PACKAGE@REVENGS = $(patsubst %.viol,%.ii,$(@PACKAGE@CHECKS)) | |
374 | ||
375 | .SECONDARY: $(@PACKAGE@REVENGS) $(@PACKAGE@PREPROC) | |
376 | ||
377 | reveng-@PACKAGE@: @PACKAGE@/check/classDiagram.dot | |
378 | ||
379 | @PACKAGE@/check/classDiagram.dot: $(@PACKAGE@PREPROC) | |
380 | @$(REV_ENG) $^ | |
381 | @-mv classDiagram.dot $@ | |
382 | ||
383 | revdisp-@PACKAGE@: reveng-@PACKAGE@ | |
384 | @echo revdisp for @PACKAGE@ | |
385 | @cd @PACKAGE@/check ; \ | |
386 | $(IRST_INSTALLDIR)/webreveng/create-class-diagram-pages.sh | |
387 | @sed -e "s/\@PACKAGE\@/@PACKAGE@/g" < $(ALICE_ROOT)/build/HomePage.html > @PACKAGE@/check/HomePage.html | |
388 |