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