Renamed macro test.C in runtracker.C
[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
74eabe5f 33OBJDIR = lib_ROOT
b5a207b4 34endif
35
36ifeq ($(USEPACKAGE),ALIROOT)
37INCLUDES = -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 38DEFSTR = -Duse_aliroot -Duse_root
b5a207b4 39endif
40
e2e0cb81 41#Save the particle id's
42#DEFSTR += -Ddo_mc
43
71e6af6c 44#Use logging classes
b419a833 45ifndef NOLOGGING
71e6af6c 46DEFSTR += -Duse_logging
b419a833 47endif
71e6af6c 48
49ifdef MLUCDIR
50INCLUDES += -I$(MLUCDIR)/include
51else
52INCLUDES += -I/prog/alice/level3/kip/MLUC/include
53endif
54
c05bc6c5 55SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
56 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
237d3f5c 57 AliL3Histogram.cxx AliL3Histogram1D.cxx AliL3HoughBaseTransformer.cxx \
c3ebc415 58 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx
4de874d1 59
c05bc6c5 60DICT = AliL3HoughCint.cxx
61DICTH = AliL3HoughCint.h
62DICTO = $(OBJDIR)/AliL3HoughCint.o
4de874d1 63
c3ebc415 64ifeq ($(USEPACKAGE),ROOT)
c05bc6c5 65HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
c05bc6c5 66OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
c3ebc415 67endif
68
69ifeq ($(USEPACKAGE),ALIROOT)
70HDRS = $(SRCS:.cxx=.h) GetGoodParticles.h AliL3HoughLinkDef.h
71OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/GetGoodParticles.o $(DICTO)
72endif
9f33a1db 73
e998e586 74LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 75
cc4d912a 76all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 77
c05bc6c5 78$(LEVELSO) : $(OBJS)
79 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 80
c05bc6c5 81$(DICT) : $(HDRS)
82 @echo "Generating dictionary..."
b5a207b4 83 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
4de874d1 84
4de874d1 85
c05bc6c5 86$(OBJDIR)/%.o : %.cxx
e2e0cb81 87 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
4de874d1 88
c05bc6c5 89$(OBJDIR) :
90 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 91$(LIBDIR) :
92 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 93
c05bc6c5 94clean :
95 rm -f $(OBJDIR)/*.o
e998e586 96 rm -f $(LIBDIR)/libAliL3Hough.so
74eabe5f 97 rm -f $(DICT) $(DICTH)
e998e586 98
99so:
100 rm -f $(LIBDIR)/libAliL3Hough.so