AliRawEvent classes used in the data challenges and stand-alone alimdc
[u/mrichter/AliRoot.git] / RAW / Make-macros
CommitLineData
5ea08be4 1##### MACROS #####
2
3ROOTH = TH1.h
4
5SRCS = AliRawEvent.cxx
6
7HDRS = AliRawEvent.h LinkDef.h
8
9DICT = AliRawDict.cxx
10DICTH = $(DICT:.cxx=.h)
11DICTO = $(DICT:.cxx=.o)
12
13MAIN = alimdc.cxx
14MAINO = $(MAIN:.cxx=.o)
15
16OBJS = $(SRCS:.cxx=.o) $(DICTO)
17
18ALLDICT = $(DICT) $(DICTH)
19ALLSRCS = $(SRCS) $(HDRS) $(MAIN) DateEvent.h
20ALLOBJS = $(OBJS) $(MAINO)
21
22ALIRAW = libAliRaw.so
23ALIMDC = alimdc
24
25
26
27##### RULES #####
28
29.SUFFIXES: .cxx
30.PHONY: all rdm smi evb hlt debug
31
32.cxx.o:
33 $(CXX) $(OPT) $(CXXFLAGS) -c $<
34
35
36##### TARGETS #####
37
38all: $(ALIRAW) $(ALIMDC)
39
40rdm: $(ALIRAW) $(ALIMDC)
41
42smi: $(ALIRAW) $(ALIMDC)
43
44evb: $(ALIRAW) $(ALIMDC)
45
46hlt: $(ALIRAW) $(ALIMDC)
47
48$(ALIRAW): $(DICT) $(OBJS)
49 rm -f $(ALIRAW)
50 ifeq ($(PLATFORM),aix)
51 $(SHLD) -o $(ALIRAW) $(LIBS) -p 0 $(OBJS)
52 else
53 ifeq ($(PLATFORM),alpha)
54 $(SHLD) -o $(ALIRAW) $(OBJS) -lcxxstd -lcxx -lexc -lots -lc
55 else
56 $(LD) $(SOFLAGS) $(LDFLAGS) $(OBJS) -o $(ALIRAW)
57 endif
58 endif
59 chmod 555 $(ALIRAW)
60 @echo "$(ALIRAW) done"
61
62
63$(ALIMDC): $(MAINO) $(ALIRAW)
64 ifeq ($(PLATFORM),aix)
65 ln -fs $(ALILRAW) libAliRaw.a
66 $(LD) $(LDFLAGS) $(MAINO) libAliRaw.a \
67 $(LIBS) -o $(ALIMDC)
68 else
69 $(LD) $(LDFLAGS) $(MAINO) $(ALIRAW) \
70 $(LIBS) -o $(ALIMDC)
71 endif
72 @if [ `id -u -n` = "alicemdc" ]; then \
73 chmod 6755 alimdc; \
74 fi
75
76$(DICT): $(HDRS)
77 @echo "Generating dictionary ..."
78 rootcint -f $(DICT) -c $(ROOTH) $(HDRS)
79
80$(DICTO): $(DICT)
81 $(CXX) $(NOOPT) $(CXXFLAGS) -c $(DICT)
82
83depend:
84 rmkdepend -fMake-depend -- $(CXXFLAGS) -- $(SRCS) $(MAIN) \
85 > /dev/null 2>&1
86
87dist:
88 rm -f alimdc.tar.gz ; \
89 tar cvf alimdc.tar AA* $(ALLSRCS) .rootrc *.C Make* ; \
90 gzip alimdc.tar
91
92clean:
93 @rm -f $(ALLOBJS) $(ALLDICT)
94
95distclean: clean
96 @rm -f $(ALIMDC) $(ALIRAW)