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