Changed Makefile and AliL3RootTypes.h in order to define usepackage (ROOT, ALIROOT
[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
b5a207b4 8#USEPACKAGE = ROOT
9USEPACKAGE = ALIROOT
10
c05bc6c5 11CXX = g++
12LD = g++
13CXXFLAGS = -O2 -Wall -fPIC
14LDFLAGS = -O2
15SOFLAGS = -shared
4de874d1 16
c05bc6c5 17TOPDIR = $(HOME)/level3code
e998e586 18OBJDIR = lib
19LIBDIR = $(LEVEL3)/lib_$(USERNAME)
4de874d1 20
b5a207b4 21ifeq ($(USEPACKAGE),ROOT)
22INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
23endif
24
25ifeq ($(USEPACKAGE),ALIROOT)
26INCLUDES = -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
27endif
28
c05bc6c5 29SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
30 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
31 AliL3Histogram.cxx AliL3Histogram1D.cxx \
32 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx
4de874d1 33
c05bc6c5 34DICT = AliL3HoughCint.cxx
35DICTH = AliL3HoughCint.h
36DICTO = $(OBJDIR)/AliL3HoughCint.o
4de874d1 37
c05bc6c5 38HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
4de874d1 39
c05bc6c5 40OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
9f33a1db 41
e998e586 42LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 43
cc4d912a 44all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 45
c05bc6c5 46$(LEVELSO) : $(OBJS)
47 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 48
c05bc6c5 49$(DICT) : $(HDRS)
50 @echo "Generating dictionary..."
b5a207b4 51 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
4de874d1 52
4de874d1 53
c05bc6c5 54$(OBJDIR)/%.o : %.cxx
b5a207b4 55 $(CXX) $(CXXFLAGS) -c $(INCLUDES) -o $@ $<
4de874d1 56
c05bc6c5 57$(OBJDIR) :
58 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 59$(LIBDIR) :
60 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 61
c05bc6c5 62clean :
63 rm -f $(OBJDIR)/*.o
e998e586 64 rm -f $(LIBDIR)/libAliL3Hough.so
65 rm $(DICT) $(DICTH)
66
67so:
68 rm -f $(LIBDIR)/libAliL3Hough.so