]>
Commit | Line | Data |
---|---|---|
5ea08be4 | 1 | ##### MACROS ##### |
2 | ||
3 | ROOTH = TH1.h | |
4 | ||
04fa961a | 5 | SRCS = 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 | 12 | HDRS = $(SRCS:.cxx=.h) LinkDef.h |
5ea08be4 | 13 | |
14 | DICT = AliRawDict.cxx | |
15 | DICTH = $(DICT:.cxx=.h) | |
16 | DICTO = $(DICT:.cxx=.o) | |
17 | ||
18 | MAIN = alimdc.cxx | |
19 | MAINO = $(MAIN:.cxx=.o) | |
20 | ||
21 | OBJS = $(SRCS:.cxx=.o) $(DICTO) | |
22 | ||
23 | ALLDICT = $(DICT) $(DICTH) | |
24 | ALLSRCS = $(SRCS) $(HDRS) $(MAIN) DateEvent.h | |
25 | ALLOBJS = $(OBJS) $(MAINO) | |
26 | ||
04fa961a | 27 | ALIRAW = libRAW.so |
5ea08be4 | 28 | ALIMDC = 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 | ||
43 | all: $(ALIRAW) $(ALIMDC) | |
44 | ||
45 | rdm: $(ALIRAW) $(ALIMDC) | |
46 | ||
47 | smi: $(ALIRAW) $(ALIMDC) | |
48 | ||
49 | evb: $(ALIRAW) $(ALIMDC) | |
50 | ||
51 | hlt: $(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 | ||
88 | depend: | |
89 | rmkdepend -fMake-depend -- $(CXXFLAGS) -- $(SRCS) $(MAIN) \ | |
90 | > /dev/null 2>&1 | |
91 | ||
92 | dist: | |
93 | rm -f alimdc.tar.gz ; \ | |
94 | tar cvf alimdc.tar AA* $(ALLSRCS) .rootrc *.C Make* ; \ | |
95 | gzip alimdc.tar | |
96 | ||
97 | clean: | |
98 | @rm -f $(ALLOBJS) $(ALLDICT) | |
99 | ||
100 | distclean: clean | |
101 | @rm -f $(ALIMDC) $(ALIRAW) |