]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/Makefile
Not needed any more.
[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 endif
34
35 ifeq ($(USEPACKAGE),ALIROOT)
36 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
37 DEFSTR = -Duse_aliroot
38 endif
39
40 #Save the particle id's
41 #DEFSTR += -Ddo_mc
42
43 #Use logging classes
44 ifndef NOLOGGING
45 DEFSTR += -Duse_logging
46 endif
47
48 ifdef MLUCDIR
49 INCLUDES += -I$(MLUCDIR)/include
50 else
51 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
52 endif
53
54 SRCS    = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
55           AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
56           AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
57           AliL3Vertex.cxx AliL3VertexFinder.cxx \
58           AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
59           AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
60           AliL3MemHandler.cxx  AliL3Benchmark.cxx AliL3Display.cxx\
61
62 DICT = AliL3Cint.cxx
63 DICTH = AliL3Cint.h
64 DICTO = $(OBJDIR)/AliL3Cint.o
65
66 ifeq ($(USEPACKAGE),ROOT)
67 HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
68 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
69 endif
70
71 ifeq ($(USEPACKAGE),ALIROOT)
72 HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3LinkDef.h
73 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3FileHandler.o $(DICTO)
74 endif
75
76 LEVELSO = $(LIBDIR)/libAliL3.so
77
78 all : $(OBJDIR) $(LIBDIR) $(LEVELSO) 
79
80 $(LEVELSO) : $(OBJS)
81         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
82
83 $(DICT) : $(HDRS)
84         @echo "Generating dictionary..."
85         @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
86
87 $(OBJDIR)/%.o : %.cxx 
88         $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
89
90 $(OBJDIR) : 
91         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
92
93 $(LIBDIR) :
94         test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
95
96 clean :
97         rm -f $(OBJDIR)/*.o
98         rm -f $(LIBDIR)/libAliL3.so
99         rm $(DICT) $(DICTH) 
100
101 so :
102         rm -f $(LIBDIR)/libAliL3.so
103
104
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
131