Class AliCollider introduced in makefile.
[u/mrichter/AliRoot.git] / FMD / module.mk
CommitLineData
0d5ea2e8 1#**************************************************************************
2#**** This file is automatically generated from the mkmodules script *****
3#**** DO NOT EDIT!! *****
4#**************************************************************************
5
6
7#********** This part is for package FMD ***********
8
9#Determine if it's a library or a executable
10TYPE=lib
11
12# Package head directory, source and include directories
13MODDIR:=FMD
14MODDIRS:=$(MODDIR)
15MODDIRI:=$(MODDIR)
16MODDIRO:=$(MODDIR)/tgt_$(ALICE_TARGET)
17
18# Reseting variables before importing pkg-file
19SRCS:=
20HDRS:=
21FSRCS:=
22DHDR:=
23CSRCS:=
24CHDRS:=
25EINCLUDE:=
26EDEFINE:=
27ELIBS:=
28ELIBSDIR:=
29PACKFFLAGS:=
30PACKCXXFLAGS:=
31PACKCFLAGS:=
32EXPORT:=
33EHDRS:=
34CINTHDRS:=
35SRCS= AliFMD.cxx AliFMDv0.cxx AliFMDv1.cxx AliFMDv2.cxx AliFMDhit.cxx AliFMDdigit.cxx AliFMDMerger.cxx AliFMDReconstruction.cxx AliFMDReconstParticles.cxx AliFMDDigitizer.cxx AliFMDSDigitizer.cxx
36
37
38HDRS= $(SRCS:.cxx=.h)
39
40DHDR:=FMDLinkDef.h
41
42
43
44
45ifndef PACKFFLAGS
46FMDFFLAGS:=$(FFLAGS)
47else
48FMDFFLAGS:=$(PACKFFLAGS)
49endif
50
51ifndef PACKCFLAGS
52FMDCFLAGS:=$(CFLAGS)
53else
54FMDCFLAGS:=$(PACKCFLAGS)
55endif
56
57ifndef PACKCXXFLAGS
58FMDCXXFLAGS:=$(CXXFLAGS)
59else
60FMDCXXFLAGS:=$(PACKCXXFLAGS)
61endif
62
63ifndef PACKDCXXFLAGS
64ifeq ($(PLATFORM),linuxicc)
65FMDDCXXFLAGS:=$(filter-out -O%,$(CXXFLAGS)) -O0
66else
67FMDDCXXFLAGS:=$(filter-out -O%,$(CXXFLAGS))
68endif
69else
70FMDDCXXFLAGS:=$(PACKCXXFLAGS)
71endif
72
73
74ifdef DHDR
75WITHDICT=YES
76else
77WITHDICT=
78endif
79
80# Headerfiles exported to common place:
81FMDEXPORT:=$(EXPORT)
82FMDEXPORTDEST:=$(patsubst %,$(EXPORTDIR)/%,$(EXPORT))
83
84
85#Extra include,libs, defines etc.
86
87FMDDEFINE:=$(EDEFINE)
88
89FMDINC:=$(patsubst %,-I%,$(EINCLUDE)) -IFMD
90
91FMDELIBS:=$(patsubst %,-l%,$(ELIBS))
92FMDELIBSDIR:=$(patsubst %,-L%,$(ELIBSDIR))
93
94#c sources and headers
95
96FMDCS:=$(patsubst %,$(MODDIR)/%,$(CSRCS))
97FMDCH:=$(patsubst %,$(MODDIR)/%,$(CHDRS))
98
99#Fortran sources
100FMDFS:=$(patsubst %,$(MODDIR)/%,$(FSRCS))
101
102#c++ sources and header
103FMDS:=$(patsubst %,$(MODDIR)/%,$(SRCS))
104FMDH:=$(patsubst %,$(MODDIR)/%,$(HDRS)) $(EHDRS)
105
106#############################################################################
107#
108# If special rootcint headerfiles is specified use them
109# else use all headers
110
111ifndef CINTHDRS
112FMDCINTHDRS:=$(FMDH)
113else
114FMDCINTHDRS:=$(CINTHDRS)
115endif
116#############################################################################
117
118# Package Dictionary
119
120FMDDH:=$(MODDIR)/$(DHDR)
121
122
123#All objects
124FMDCO:=$(patsubst %,$(MODDIRO)/%, $(CSRCS:.c=.o))
125TEMP:=$(FSRCS:.F=.o)
126FMDFO:=$(patsubst %,$(MODDIRO)/%, $(TEMP:.f=.o))
127FMDO:= $(patsubst %,$(MODDIRO)/%, $(SRCS:.cxx=.o)) $(FMDFO) $(FMDCO)
128
129
130
131ifdef WITHDICT
132 FMDDS:=$(MODDIRO)/G__FMD.cxx
133 FMDDO:=$(MODDIRO)/G__FMD.o
134 FMDDDEP:=$(FMDDO:.o=.d)
135 FMDDEP:=$(FMDO:.o=.d) $(FMDDDEP)
136else
137 FMDDS:=
138 FMDDO:=
139 FMDDDEP:=
140 FMDDEP:=$(FMDO:.o=.d)
141endif
142
143
144#The actual library file
145
146FMDLIB:=$(LIBPATH)/libFMD.$(SOEXT)
147
148#Add this to the modules libs
149FMDLIBS += $(FMDLIB)
150
151#The actual binary file
152
153FMDBIN:=$(BINPATH)/FMD
154
155#Add to modules list of binaries
156FMDBINS += $(FMDBIN)
157
158# Use in the main Makefile
159
160ifeq ($(TYPE),lib)
161ALLLIBS += $(FMDLIB)
162BINLIBS += -lFMD
163else
164ALLEXECS += $(FMDBIN)
165endif
166
167# include all dependency files
168INCLUDEFILES +=$(FMDDEP)
169
170EXPORTFILES += $(FMDEXPORTDEST)
171
172#local rules
173
174#The exportfiles only include if any!!
175
176ifdef FMDEXPORT
177#$(FMDEXPORTDEST): $(patsubst %,FMD/%,$(FMDEXPORT))
178
179$(FMDEXPORTDEST): $(EXPORTDIR)/%.h: FMD/%.h
180ifndef ALIQUIET
181 @echo "***** Copying file $^ to $@ *****"
182endif
183 @[ -d $(dir $@) ] || mkdir $(dir $@)
184 @cp $^ $@
185endif
186
187$(FMDLIB):$(FMDO) $(FMDDO) FMD/module.mk
188ifndef ALIQUIET
189 @echo "***** Linking library $@ *****"
190endif
191 $(MUTE)TMPDIR=/tmp/FMD$$$$.`date +%M%S` ; \
192 export TMPDIR; mkdir $$TMPDIR ; cd $$TMPDIR ; \
193 find $(CURDIR)/FMD/tgt_$(ALICE_TARGET) -name '*.o' -exec ln -s {} . \; ;\
194 rm -f $(CURDIR)/$@ ;\
195 $(SHLD) $(SOFLAGS) -o $(CURDIR)/$@ $(notdir $(FMDO) $(FMDDO)) $(FMDELIBSDIR) $(FMDELIBS) $(SHLIB);\
196 cd $(CURDIR) ; rm -rf $$TMPDIR
197 $(MUTE)chmod a-w $@
198
199$(FMDBIN):$(FMDO) $(FMDDO) FMD/module.mk
200ifndef ALIQUIET
201 @echo "***** Making executable $@ *****"
202endif
203 $(MUTE)$(LD) $(LDFLAGS) $(FMDO) $(FMDDO) $(BINLIBDIRS) $(FMDELIBSDIR) $(FMDELIBS) $(LIBS) $(EXEFLAGS) -o $@
204
205$(FMDDS): $(FMDCINTHDRS) $(FMDDH) FMD/module.mk
206ifndef ALIQUIET
207 @echo "***** Creating $@ *****";
208endif
209 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
210 $(MUTE)rootcint -f $@ -c $(FMDDEFINE) $(CINTFLAGS) $(FMDINC) $(FMDCINTHDRS) $(FMDDH)
211
212$(FMDDO): $(FMDDS)
213ifndef ALIQUIET
214 @echo "***** Compiling $< *****";
215endif
216 $(MUTE)$(CXX) -c $(FMDINC) -I$(ALICE_ROOT) $< -o $@ $(FMDDCXXFLAGS)
217
218#Different targets for the module
219
220ifeq ($(TYPE),lib)
221all-FMD: $(FMDLIB)
222else
223all-FMD: $(FMDBIN)
224endif
225
226depend-FMD: $(FMDDEP)
227
228# determination of object files
229$(MODDIRO)/%.o: $(MODDIRO)/%.cxx $(MODDIRO)/%.d
230ifndef ALIQUIET
231 @echo "***** Compiling $< *****";
232endif
233 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
234 $(MUTE)$(CXX) $(FMDDEFINE) -c $(FMDINC) $< -o $@ $(FMDCXXFLAGS)
235
236$(MODDIRO)/%.o: $(MODDIR)/%.cxx $(MODDIRO)/%.d
237ifndef ALIQUIET
238 @echo "***** Compiling $< *****";
239endif
240 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
241 $(MUTE)$(CXX) $(FMDDEFINE) -c $(FMDINC) $< -o $@ $(FMDCXXFLAGS)
242
243$(MODDIRO)/%.o: $(MODDIR)/%.F $(MODDIRO)/%.d
244ifndef ALIQUIET
245 @echo "***** Compiling $< *****";
246endif
247 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
248 $(MUTE)$(F77) -c $(FMDINC) $< -o $@ $(FMDFFLAGS)
249
250$(MODDIRO)/%.o: $(MODDIR)/%.f $(MODDIRO)/%.d
251ifndef ALIQUIET
252 @echo "***** Compiling $< *****";
253endif
254 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
255 $(MUTE)$(F77) -c $(FMDINC) $< -o $@ $(FMDFFLAGS)
256
257$(MODDIRO)/%.o: $(MODDIR)/%.c $(MODDIRO)/%.d
258ifndef ALIQUIET
259 @echo "***** Compiling $< *****";
260endif
261 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
262 $(MUTE)$(CC) $(FMDDEFINE) -c $(FMDINC) $< -o $@ $(FMDCFLAGS)
263
264$(FMDDDEP): $(FMDDS)
265ifndef ALIQUIET
266 @echo "***** Making dependencies for $< *****";
267endif
268 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
269 @share/alibtool depend "$(FMDELIBSDIR) $(FMDINC) $(DEPINC) $<" > $@
270
271$(MODDIRO)/%.d: $(MODDIRS)/%.cxx
272ifndef ALIQUIET
273 @echo "***** Making dependencies for $< *****";
274endif
275 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
276 @share/alibtool depend "$(FMDDEFINE) $(FMDELIBSDIR) $(FMDINC) $(DEPINC) $<" > $@
277$(MODDIRO)/%.d: $(MODDIRS)/%.f
278ifndef ALIQUIET
279 @echo "***** Making dependencies for $< *****";
280endif
281 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
282 @share/alibtool dependF "$(FMDELIBSDIR) $(FMDINC) $(DEPINC) $<" > $@
283$(MODDIRO)/%.d: $(MODDIRS)/%.F
284ifndef ALIQUIET
285 @echo "***** Making dependencies for $< *****";
286endif
287 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
288 $(MUTE)share/alibtool dependF "$(FMDELIBSDIR) $(FMDINC) $(DEPINC) $<" > $@
289$(MODDIRO)/%.d: $(MODDIRS)/%.c
290ifndef ALIQUIET
291 @echo "***** Making dependencies for $< *****";
292endif
293 @(if [ ! -d '$(dir $@)' ]; then echo "***** Making directory $(dir $@) *****"; mkdir -p $(dir $@); fi;)
294 @share/alibtool depend "$(FMDDEFINE) $(FMDELIBSDIR) $(FMDINC) $(DEPINC) $<" > $@
295
296FMDCHECKS := $(patsubst %.cxx,FMD/check/%.viol,$(SRCS))
297
298check-FMD: $(FMDCHECKS)
299
300# IRST coding rule check
301FMD/check/%.i : FMD/%.cxx
302 @[ -d $(dir $@) ] || mkdir -p $(dir $@)
303 $(MUTE)$(CXX) -E $(FMDDEFINE) $(FMDINC) $< > $@ $(FMDCXXFLAGS)
304 @cd $(dir $@) ; $(IRST_INSTALLDIR)/patch/patch4alice.prl $(notdir $@)
305
306# IRST coding rule check
307FMD/check/%.viol : FMD/check/%.i
308 @cd FMD ; [ -r FMD ] || ln -s ../FMD FMD
309 -@echo $@ ; $(CODE_CHECK) $< ./FMD > $@
310
311FMDPREPROC = $(patsubst %.viol,%.i,$(FMDCHECKS))
312
313FMDREVENGS = $(patsubst %.viol,%.ii,$(FMDCHECKS))
314
315.SECONDARY: $(FMDREVENGS) $(FMDPREPROC)
316
317reveng-FMD: FMD/check/classDiagram.dot
318
319FMD/check/classDiagram.dot: $(FMDPREPROC)
320 @$(REV_ENG) $^
321 @-mv classDiagram.dot $@
322
323revdisp-FMD: reveng-FMD
324 @echo revdisp for FMD
325 @cd FMD/check ; \
326 $(IRST_INSTALLDIR)/webreveng/create-class-diagram-pages.sh
327 @sed -e "s/\@PACKAGE\@/FMD/g" < $(ALICE_ROOT)/build/HomePage.html > FMD/check/HomePage.html
328
329
330# Clean option for the whole module
331clean-FMD:
332ifndef ALIQUIET
333 @echo "***** Cleaning FMD *****"
334endif
335 $(MUTE)rm FMD/module.mk
336 $(MUTE)rm -rf FMD/tgt_$(ALICE_TARGET)
337 $(MUTE)rm -f $(FMDLIBS)
338 $(MUTE)rm -f $(FMDBINS)
339
340clean-check-FMD:
341ifndef ALIQUIET
342 @echo "***** Cleaning code check for FMD *****"
343endif
344 $(MUTE)rm -f FMD/check/*.i FMD/check/*.ii FMD/check/*.viol
345
346clean-reveng-FMD:
347ifndef ALIQUIET
348 @echo "***** Cleaning reverse engineering files for FMD *****"
349endif
350 $(MUTE)rm -f FMD/check/*.dot
351