TRD nSigma OADB related new codes and modifications and OADB root file -- Xianguo Lu
[u/mrichter/AliRoot.git] / RAW / Make-macros
CommitLineData
5ea08be4 1##### MACROS #####
2
3ROOTH = TH1.h
4
a197a4ce 5SRCS = AliRawEventHeader.cxx AliRawEquipmentHeader.cxx \
94d918a7 6 AliRawData.cxx AliRawEquipment.cxx AliRawEvent.cxx \
a197a4ce 7 AliStats.cxx AliRawDB.cxx \
8 AliRawRFIODB.cxx AliRawCastorDB.cxx AliRawRootdDB.cxx \
9 AliRawNullDB.cxx AliTagDB.cxx AliTagNullDB.cxx \
30bda8ef 10 AliMDC.cxx
5ea08be4 11
04fa961a 12HDRS = $(SRCS:.cxx=.h) LinkDef.h
5ea08be4 13
14DICT = AliRawDict.cxx
15DICTH = $(DICT:.cxx=.h)
16DICTO = $(DICT:.cxx=.o)
17
a197a4ce 18MAIN = alimdc_main.cxx
5ea08be4 19MAINO = $(MAIN:.cxx=.o)
20
21OBJS = $(SRCS:.cxx=.o) $(DICTO)
22
23ALLDICT = $(DICT) $(DICTH)
a197a4ce 24ALLSRCS = $(SRCS) $(HDRS) $(MAIN)
5ea08be4 25ALLOBJS = $(OBJS) $(MAINO)
26
5ea08be4 27ALIMDC = alimdc
28
29
30
31##### RULES #####
32
33.SUFFIXES: .cxx
34.PHONY: all rdm smi evb hlt debug
35
36.cxx.o:
37 $(CXX) $(OPT) $(CXXFLAGS) -c $<
38
39
40##### TARGETS #####
41
94d918a7 42all: $(ALIMDC)
5ea08be4 43
94d918a7 44rdm: $(ALIMDC)
5ea08be4 45
94d918a7 46smi: $(ALIMDC)
5ea08be4 47
94d918a7 48evb: $(ALIMDC)
5ea08be4 49
94d918a7 50hlt: $(ALIMDC)
5ea08be4 51
5ea08be4 52
94d918a7 53$(ALIMDC): $(MAINO) $(DICT) $(OBJS)
54 $(LD) $(LDFLAGS) $(MAINO) $(OBJS) \
55 $(LIBS) -o $(ALIMDC)
5ea08be4 56 @if [ `id -u -n` = "alicemdc" ]; then \
57 chmod 6755 alimdc; \
58 fi
59
60$(DICT): $(HDRS)
61 @echo "Generating dictionary ..."
a109e73e 62 rootcint -f $(DICT) -c $(CXXFLAGS) $(ROOTH) $(HDRS)
5ea08be4 63
64$(DICTO): $(DICT)
65 $(CXX) $(NOOPT) $(CXXFLAGS) -c $(DICT)
66
67depend:
68 rmkdepend -fMake-depend -- $(CXXFLAGS) -- $(SRCS) $(MAIN) \
69 > /dev/null 2>&1
70
71dist:
72 rm -f alimdc.tar.gz ; \
73 tar cvf alimdc.tar AA* $(ALLSRCS) .rootrc *.C Make* ; \
74 gzip alimdc.tar
75
76clean:
77 @rm -f $(ALLOBJS) $(ALLDICT)
78
79distclean: clean
94d918a7 80 @rm -f $(ALIMDC)