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