Replacing string comparison by coparison of enums
[u/mrichter/AliRoot.git] / RAW / Makefile
CommitLineData
5ea08be4 1# Makefile for ALICE MDC program for Linux
2
41f671ab 3include Makefile.arch
5ea08be4 4
5LDFLAGS += -Wl,-rpath,/ROOT/Linux/CurrentRelease/root/lib \
6 -Wl,-rpath,/date/smi/linux \
7 -Wl,-rpath,/date/dim/linux \
9174317d 8 -Wl,-rpath,/adcRoot/alimdc5
5ea08be4 9
10ifneq ($(findstring rdm,$(MAKECMDGOALS)),)
11CXXFLAGS += -DUSE_RDM
12endif
13
14ifneq ($(findstring debug,$(MAKECMDGOALS)),)
15CXXFLAGS += -DUSE_DEBUG -g
16endif
17
18ifneq ($(findstring smi,$(MAKECMDGOALS)),)
19#SMIDIR = ./smi
20#DIMDIR = ./dim
161b03c4 21SMIDIR = /date/smi
22DIMDIR = /date/dim
5ea08be4 23CXXFLAGS += -DUSE_SMI -I$(SMIDIR)/smixx -I$(DIMDIR)/dim
24LIBS += -L$(SMIDIR)/linux -lsmiui -lsmi -L$(DIMDIR)/linux -ldim
25endif
26
27ifneq ($(findstring evb,$(MAKECMDGOALS)),)
28ifneq ($(findstring rdm,$(MAKECMDGOALS)),)
29EBDIR = ./eb
30BMDIR = ./eb
31DBMDIR = ./eb
32DBDIR = ./eb
33FIFODIR = ./eb
34INFODIR = ./eb
35else
161b03c4 36EBDIR = /date/eventBuilder
37BMDIR = /date/banksManager
38DBMDIR = /date/bufferManager
39DBDIR = /date/db
40FIFODIR = /date/simpleFifo
41INFODIR = /date/infoLogger
5ea08be4 42endif
43CXXFLAGS += -DUSE_EB -I$(EBDIR)
44LIBS += -L$(EBDIR)/Linux -L$(BMDIR)/Linux -L$(DBMDIR)/Linux \
45 -L$(DBDIR)/Linux -L$(FIFODIR)/Linux -L$(INFODIR)/Linux \
46 -lDateEb -lBanksManager -lDateBufferManager \
47 -lDb -lFifo -lInfo
48endif
49
50ifneq ($(findstring hlt,$(MAKECMDGOALS)),)
a109e73e 51include ../HLT/hlt.conf
52CXXFLAGS += -DUSE_HLT ${HLTDEFS} -I${ALICE_ROOT}/include -I../HLT/src -I../HLT/hough -I../HLT/comp
4aa41877 53LIBS += -lEG -lVMC -lGeom -lThread -L../lib/tgt_linuxDEBUG -lSTEER -lRAWData -lTPCbase -lTPCsim -lTPCrec -lCONTAINERS -lAliHLTSrc -lAliHLTMisc -lAliHLTHough -lAliHLTComp
5ea08be4 54endif
55
a197a4ce 56##### DATE #####
57
58ifdef DATE_ROOT
a109e73e 59DATEFLAGS = -DALI_DATE -D${DATE_SYS} -DDATE_SYS=${DATE_SYS} -Dlong32=${DATE_LONG32} -Dlong64='${DATE_LONG64}' -DdatePointer=${DATE_POINTER} -I${DATE_COMMON_DEFS}
a197a4ce 60CXXFLAGS += $(DATEFLAGS)
61endif
62
5ea08be4 63##### MACROS and TARGETS #####
64
41f671ab 65 $(LD) $(SOFLAGS) $(LDFLAGS) $^ $(OutPutOpt) $@ $(EXPLLINKLIBS)