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