Added virtual function Init for setting the slice, patch and n_eta_seg information...
[u/mrichter/AliRoot.git] / HLT / programs / Makefile
CommitLineData
585caa43 1#$Id$
2###############################
3# Makefile for HLT programs. #
4# #
5# Author: Constantin Loizides #
6###############################
7
9246a93f 8
17d8d094 9ifndef TOPDIR
10TOPDIR = `pwd`/..
585caa43 11endif
12
17d8d094 13include $(TOPDIR)/Makefile.conf
585caa43 14
17d8d094 15DEFSTR = -Dno_root
9246a93f 16INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
17LIBS = -L$(LIBDIR) -lAliL3 -lAliL3Hough -lAliL3Comp -lAliL3Misc
585caa43 18
19ROOTCFLAGS := $(shell root-config --cflags)
20ROOTLIBS := $(shell root-config --libs)
21ROOTGLIBS := $(shell root-config --glibs)
22
23ifeq ($(USEPACKAGE),ROOT)
24DEFSTR = -Duse_root
9246a93f 25INCLUDES += -I$(ROOTSYS)/include
585caa43 26RLIBS = $(ROOTLIBS) -lMinuit -lEG
9246a93f 27LIBS += $(RLIBS)
585caa43 28endif
29
30ifeq ($(USEPACKAGE),ALIROOT)
2f3824aa 31DEFSTR = -Duse_aliroot -Duse_root
5e207cef 32ALICELIBS = -L$(ALICE_ROOT)/lib/tgt_Linux -lCONTAINERS -lTPC -lSTEER
585caa43 33#ALICELIBS := $(shell aliroot-config --libs)
9246a93f 34INCLUDES += -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
585caa43 35RLIBS = $(ROOTLIBS) -lMinuit -lEG
9246a93f 36LIBS += $(ALICELIBS)
585caa43 37endif
38
9246a93f 39ifdef DO_MC
40DEFSTR += -Ddo_mc
41endif
585caa43 42
43#Use logging classes
5e207cef 44ifndef NOLOGGING
45DEFSTR += -Duse_logging
585caa43 46
47ifdef MLUCDIR
48INCLUDES += -I$(MLUCDIR)/include
49MLUCLIBS = -L$(MLUCDIR)/lib/linux-i386 -lMLUC
50else
51INCLUDES += -I/prog/alice/level3/kip/MLUC/include
52MLUCLIBS += -L/prog/alice/level3/kip/MLUC/lib/linux-i386 -lMLUC
53endif
9246a93f 54LIBS += $(MLUCLIBS)
5e207cef 55endif
585caa43 56
9246a93f 57DEFSTR += $(EXTRADEF)
585caa43 58
9246a93f 59CXXFLAGS = -O2 -Wall -ggdb $(EXTRACXXFLAGS) $(INCLUDES)
60LDFLAGS = -O2 $(EXTRALDFLAGS) $(LIBS)
585caa43 61
8ec6d140 62PRGS = runit read speedtest convbin gettransform runvhdlcf
585caa43 63
64
65all : $(PRGS)
66
6fe738a9 67runit : runit.o
ba471b4c 68 $(LD) $< $(LDFLAGS) -o $@
69
70convbin : ali2raw.o
71 $(LD) $< $(LDFLAGS) -o $@
585caa43 72
6fe738a9 73read : read.o
ba471b4c 74 $(LD) $< $(LDFLAGS) -o $@
5e207cef 75
ba471b4c 76gettransform : gettransform.o
77 $(LD) $< $(LDFLAGS) -o $@
78
79speedtest : speedtest.cxx
80 g++ -O -Wall -fPIC -ffast-math $(CXXFLAGS) speedtest.cxx -o speedtest
81 # g++ -O -Wall -fPIC -mcpu=ev6 $(CXXFLAGS) speedtest.cxx -o speedtest
82 # cxx -O -Wall -fPIC -lm $(CXXFLAGS) speedtest.cxx -o speedtest
585caa43 83
84%.o : %.cxx
85 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
86
585caa43 87clean :
88 rm -f *.o $(PRGS)
89
90
91
92
93
94
95
96
97
98
99
585caa43 100
101
102
103
104
105