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