]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/Makefile
Made all AliL3FileHandler specific functions virtual in AliL3MemHandler.
[u/mrichter/AliRoot.git] / HLT / src / Makefile
1 #$Id$
2 ###########################
3 # Makefile for HLT code.  #
4 #                         #
5 # Author: Anders Vestbo   #                    
6 ###########################
7
8 ifndef USEPACKAGE
9 #USEPACKAGE = ROOT
10 USEPACKAGE = ALIROOT
11 endif
12
13 #used if USEPACKAGE=anything else
14 DEFSTR = -Dno_root
15
16 CXX         = g++
17 LD          = g++
18 CXXFLAGS    = -O2 -Wall -fPIC
19 LDFLAGS     = -O2
20 SOFLAGS     = -shared
21
22 ifndef TOPDIR
23 TOPDIR = $(HOME)/level3code
24 endif
25 ifndef LIBDIR
26 LIBDIR = $(LEVEL3)/lib_$(USERNAME)
27 endif
28 OBJDIR = lib
29
30 ifeq ($(USEPACKAGE),ROOT) 
31 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
32 DEFSTR = -Duse_root
33 OBJDIR = lib_ROOT
34 endif
35
36 ifeq ($(USEPACKAGE),ALIROOT)
37 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
38 DEFSTR = -Duse_aliroot
39 endif
40
41 #Save the particle id's
42 #DEFSTR += -Ddo_mc
43
44 #Use logging classes
45 ifndef NOLOGGING
46 DEFSTR += -Duse_logging
47 endif
48
49 ifdef MLUCDIR
50 INCLUDES += -I$(MLUCDIR)/include
51 else
52 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
53 endif
54
55 SRCS    = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
56           AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
57           AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
58           AliL3Vertex.cxx AliL3VertexFinder.cxx \
59           AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
60           AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
61           AliL3MemHandler.cxx  AliL3Benchmark.cxx AliL3Display.cxx\
62           AliL3Evaluate.cxx
63
64 DICT = AliL3Cint.cxx
65 DICTH = AliL3Cint.h
66 DICTO = $(OBJDIR)/AliL3Cint.o
67
68 ifeq ($(USEPACKAGE),ROOT)
69 HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
70 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
71 endif
72
73 ifeq ($(USEPACKAGE),ALIROOT)
74 HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3Evaluate.h AliL3LinkDef.h
75 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3Evaluate.o $(OBJDIR)/AliL3FileHandler.o $(DICTO)
76 endif
77
78 LEVELSO = $(LIBDIR)/libAliL3.so
79
80 all : $(OBJDIR) $(LIBDIR) $(LEVELSO) 
81
82 $(LEVELSO) : $(OBJS)
83         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
84
85 $(DICT) : $(HDRS)
86         @echo "Generating dictionary..."
87         @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
88
89 $(OBJDIR)/%.o : %.cxx 
90         $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
91
92 $(OBJDIR) : 
93         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
94
95 $(LIBDIR) :
96         test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
97
98 clean :
99         rm -f $(OBJDIR)/*.o
100         rm -f $(LIBDIR)/libAliL3.so
101         rm -f $(DICT) $(DICTH) 
102
103 so :
104         rm -f $(LIBDIR)/libAliL3.so
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130