]>
Commit | Line | Data |
---|---|---|
95a00d93 | 1 | #$Id$ |
2 | ########################### | |
3 | # Makefile for HLT code. # | |
4 | # # | |
5 | # Author: Anders Vestbo # | |
6 | ########################### | |
7 | ||
17d8d094 | 8 | ifndef TOPDIR |
9 | TOPDIR = `pwd`/.. | |
05d3c0f8 | 10 | endif |
152be1b5 | 11 | |
17d8d094 | 12 | include $(TOPDIR)/Makefile.conf |
108615fc | 13 | |
17d8d094 | 14 | DEFSTR = -Dno_root |
152be1b5 | 15 | |
95a00d93 | 16 | ifeq ($(USEPACKAGE),ROOT) |
17 | INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp | |
152be1b5 | 18 | DEFSTR = -Duse_root |
74eabe5f | 19 | OBJDIR = lib_ROOT |
95a00d93 | 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 | |
05d3c0f8 | 24 | DEFSTR = -Duse_aliroot |
95a00d93 | 25 | endif |
108615fc | 26 | |
17d8d094 | 27 | ifdef DO_MC |
28 | DEFSTR += -Ddo_mc | |
29 | endif | |
c3dd27a3 | 30 | DEFSTR += $(EXTRADEF) |
152be1b5 | 31 | |
b419a833 | 32 | ifndef NOLOGGING |
05d3c0f8 | 33 | DEFSTR += -Duse_logging |
b419a833 | 34 | endif |
05d3c0f8 | 35 | |
36 | ifdef MLUCDIR | |
37 | INCLUDES += -I$(MLUCDIR)/include | |
38 | else | |
39 | INCLUDES += -I/prog/alice/level3/kip/MLUC/include | |
40 | endif | |
41 | ||
352eb143 | 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 \ | |
c3dd27a3 | 48 | AliL3MemHandler.cxx AliL3Benchmark.cxx AliL3Display.cxx |
49 | ||
108615fc | 50 | |
352eb143 | 51 | DICT = AliL3Cint.cxx |
52 | DICTH = AliL3Cint.h | |
53 | DICTO = $(OBJDIR)/AliL3Cint.o | |
108615fc | 54 | |
95a00d93 | 55 | ifeq ($(USEPACKAGE),ROOT) |
352eb143 | 56 | HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h |
352eb143 | 57 | OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO) |
95a00d93 | 58 | endif |
59 | ||
60 | ifeq ($(USEPACKAGE),ALIROOT) | |
84122e15 | 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) | |
95a00d93 | 63 | endif |
108615fc | 64 | |
95a00d93 | 65 | LEVELSO = $(LIBDIR)/libAliL3.so |
108615fc | 66 | |
cc4d912a | 67 | all : $(OBJDIR) $(LIBDIR) $(LEVELSO) |
108615fc | 68 | |
352eb143 | 69 | $(LEVELSO) : $(OBJS) |
70 | $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@ | |
108615fc | 71 | |
352eb143 | 72 | $(DICT) : $(HDRS) |
73 | @echo "Generating dictionary..." | |
95a00d93 | 74 | @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS) |
108615fc | 75 | |
352eb143 | 76 | $(OBJDIR)/%.o : %.cxx |
152be1b5 | 77 | $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $< |
108615fc | 78 | |
352eb143 | 79 | $(OBJDIR) : |
80 | test ! -e $(OBJDIR) && mkdir -p $(OBJDIR) | |
108615fc | 81 | |
cc4d912a | 82 | $(LIBDIR) : |
83 | test ! -e $(LIBDIR) && mkdir -p $(LIBDIR) | |
84 | ||
352eb143 | 85 | clean : |
86 | rm -f $(OBJDIR)/*.o | |
95a00d93 | 87 | rm -f $(LIBDIR)/libAliL3.so |
74eabe5f | 88 | rm -f $(DICT) $(DICTH) |
95a00d93 | 89 | |
90 | so : | |
05d3c0f8 | 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 | ||
05d3c0f8 | 114 | |
115 | ||
116 | ||
117 |