]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/Makefile
added the delete of EMCAL object posted in the folder when new file is opened
[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 -Duse_root
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 ifdef ASVVERSION
41 DEFSTR += -DASVVERSION
42 endif
43
44 DEFSTR += $(EXTRADEF)
45
46 ifdef MLUCDIR
47 INCLUDES += -I$(MLUCDIR)/include
48 else
49 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
50 endif
51
52 SRCS    = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx \
53           AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
54           AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
55           AliL3Vertex.cxx AliL3VertexFinder.cxx \
56           AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
57           AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
58           AliL3MemHandler.cxx AliLevel3.cxx AliL3Benchmark.cxx 
59
60
61 DICT  = AliL3Cint-$(USEPACKAGE).cxx
62 DICTH = AliL3Cint-$(USEPACKAGE).h
63 DICTO = $(OBJDIR)/AliL3Cint-$(USEPACKAGE).o
64
65 ifeq ($(USEPACKAGE),ROOT)
66 SRCS += AliL3Display.cxx
67 HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
68 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
69 endif
70
71 ifeq ($(USEPACKAGE),ALIROOT)
72 SRCS += AliL3Display.cxx
73 HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3Evaluate.h AliL3LinkDef.h
74 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3Evaluate.o $(OBJDIR)/AliL3FileHandler.o $(DICTO)
75 endif
76
77 ifeq ($(OBJDIR),lib_alone)
78 HDRS = $(SRCS:.cxx=.h) 
79 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS))
80 endif
81
82
83 LEVELSO = $(LIBDIR)/libAliL3.so
84
85 all : $(OBJDIR) $(LIBDIR) $(LEVELSO) 
86
87 $(LEVELSO) : $(OBJS)
88         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
89
90 $(DICT) : $(HDRS)
91         @echo "Generating dictionary..."
92         @rootcint -f $(DICT) -c $(INCLUDES) -DGCCVERSION=$(GCCVERSION) -include AliL3StandardIncludes.h $(HDRS)
93
94 $(OBJDIR)/%.o : %.cxx 
95         $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
96
97 $(OBJDIR) : 
98         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
99
100 $(LIBDIR) :
101         test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
102
103 clean :
104         rm -f $(OBJDIR)/*.o
105         rm -f $(LIBDIR)/libAliL3.so
106         rm -f $(DICT) $(DICTH)
107
108 so :
109         rm -f $(LIBDIR)/libAliL3.so