]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/src/Makefile
Minor updates
[u/mrichter/AliRoot.git] / HLT / src / Makefile
1 #$Id$
2 ###########################
3 # Makefile for HLT code.  #
4 #                         #
5 # Author: Anders Vestbo   #                    
6 ###########################
7
8 USEPACKAGE = ROOT
9 #USEPACKAGE = ALIROOT
10
11 CXX         = g++
12 LD          = g++
13 CXXFLAGS    = -O2 -Wall -fPIC
14 LDFLAGS     = -O2
15 SOFLAGS     = -shared
16
17 TOPDIR = $(HOME)/level3code
18 OBJDIR = lib
19 LIBDIR = $(LEVEL3)/lib_$(USERNAME)
20
21 ifeq ($(USEPACKAGE),ROOT) 
22 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
23 endif
24
25 ifeq ($(USEPACKAGE),ALIROOT)
26 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
27 endif
28
29 SRCS    = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
30           AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
31           AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
32           AliL3Vertex.cxx AliL3VertexFinder.cxx \
33           AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
34           AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
35           AliL3MemHandler.cxx  AliL3Benchmark.cxx AliL3Display.cxx\
36
37 DICT = AliL3Cint.cxx
38 DICTH = AliL3Cint.h
39 DICTO = $(OBJDIR)/AliL3Cint.o
40
41 ifeq ($(USEPACKAGE),ROOT)
42 HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
43 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
44 endif
45
46 ifeq ($(USEPACKAGE),ALIROOT)
47 HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3LinkDef.h
48 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3FileHandler.o $(DICTO)
49 endif
50
51 LEVELSO = $(LIBDIR)/libAliL3.so
52
53 all : $(LEVELSO) $(OBJDIR) 
54
55 $(LEVELSO) : $(OBJS)
56         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
57
58 $(DICT) : $(HDRS)
59         @echo "Generating dictionary..."
60         @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
61
62 $(OBJDIR)/%.o : %.cxx 
63         $(CXX) $(CXXFLAGS) -c $(INCLUDES) -o $@ $<
64
65 $(OBJDIR) : 
66         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
67
68 clean :
69         rm -f $(OBJDIR)/*.o
70         rm -f $(LIBDIR)/libAliL3.so
71         rm $(DICT) $(DICTH) 
72
73 so :
74         rm -f $(LIBDIR)/libAliL3.so