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