MergeEtaSlices and MergeTracks are currently empty.
[u/mrichter/AliRoot.git] / HLT / hough / Makefile
CommitLineData
e998e586 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
4de874d1 7
71e6af6c 8ifndef USEPACKAGE
b5a207b4 9#USEPACKAGE = ROOT
10USEPACKAGE = ALIROOT
71e6af6c 11endif
b5a207b4 12
71e6af6c 13#used if USEPACKAGE=anything else
e2e0cb81 14DEFSTR = -Dno_root
15
c05bc6c5 16CXX = g++
17LD = g++
18CXXFLAGS = -O2 -Wall -fPIC
19LDFLAGS = -O2
20SOFLAGS = -shared
4de874d1 21
71e6af6c 22ifndef TOPDIR
c05bc6c5 23TOPDIR = $(HOME)/level3code
71e6af6c 24endif
25ifndef LIBDIR
e998e586 26LIBDIR = $(LEVEL3)/lib_$(USERNAME)
71e6af6c 27endif
28OBJDIR = lib
4de874d1 29
b5a207b4 30ifeq ($(USEPACKAGE),ROOT)
31INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
e2e0cb81 32DEFSTR = -Duse_root
b5a207b4 33endif
34
35ifeq ($(USEPACKAGE),ALIROOT)
36INCLUDES = -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
e2e0cb81 37DEFSTR = -Duse_aliroot -Duse_root
b5a207b4 38endif
39
e2e0cb81 40#Save the particle id's
41#DEFSTR += -Ddo_mc
42
71e6af6c 43#Use logging classes
44DEFSTR += -Duse_logging
45
46ifdef MLUCDIR
47INCLUDES += -I$(MLUCDIR)/include
48else
49INCLUDES += -I/prog/alice/level3/kip/MLUC/include
50endif
51
c05bc6c5 52SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
53 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
54 AliL3Histogram.cxx AliL3Histogram1D.cxx \
e2e0cb81 55 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx GetGoodParticles.cxx
4de874d1 56
c05bc6c5 57DICT = AliL3HoughCint.cxx
58DICTH = AliL3HoughCint.h
59DICTO = $(OBJDIR)/AliL3HoughCint.o
4de874d1 60
c05bc6c5 61HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
4de874d1 62
c05bc6c5 63OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
9f33a1db 64
e998e586 65LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 66
cc4d912a 67all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 68
c05bc6c5 69$(LEVELSO) : $(OBJS)
70 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 71
c05bc6c5 72$(DICT) : $(HDRS)
73 @echo "Generating dictionary..."
b5a207b4 74 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
4de874d1 75
4de874d1 76
c05bc6c5 77$(OBJDIR)/%.o : %.cxx
e2e0cb81 78 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
4de874d1 79
c05bc6c5 80$(OBJDIR) :
81 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 82$(LIBDIR) :
83 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 84
c05bc6c5 85clean :
86 rm -f $(OBJDIR)/*.o
e998e586 87 rm -f $(LIBDIR)/libAliL3Hough.so
88 rm $(DICT) $(DICTH)
89
90so:
91 rm -f $(LIBDIR)/libAliL3Hough.so