Converts Digits in Memory to Altro like back linked list and stores them
[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
b419a833 44ifndef NOLOGGING
71e6af6c 45DEFSTR += -Duse_logging
b419a833 46endif
71e6af6c 47
48ifdef MLUCDIR
49INCLUDES += -I$(MLUCDIR)/include
50else
51INCLUDES += -I/prog/alice/level3/kip/MLUC/include
52endif
53
c05bc6c5 54SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
55 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
56 AliL3Histogram.cxx AliL3Histogram1D.cxx \
e2e0cb81 57 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx GetGoodParticles.cxx
4de874d1 58
c05bc6c5 59DICT = AliL3HoughCint.cxx
60DICTH = AliL3HoughCint.h
61DICTO = $(OBJDIR)/AliL3HoughCint.o
4de874d1 62
c05bc6c5 63HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
4de874d1 64
c05bc6c5 65OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
9f33a1db 66
e998e586 67LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 68
cc4d912a 69all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 70
c05bc6c5 71$(LEVELSO) : $(OBJS)
72 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 73
c05bc6c5 74$(DICT) : $(HDRS)
75 @echo "Generating dictionary..."
b5a207b4 76 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
4de874d1 77
4de874d1 78
c05bc6c5 79$(OBJDIR)/%.o : %.cxx
e2e0cb81 80 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
4de874d1 81
c05bc6c5 82$(OBJDIR) :
83 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 84$(LIBDIR) :
85 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 86
c05bc6c5 87clean :
88 rm -f $(OBJDIR)/*.o
e998e586 89 rm -f $(LIBDIR)/libAliL3Hough.so
90 rm $(DICT) $(DICTH)
91
92so:
93 rm -f $(LIBDIR)/libAliL3Hough.so