Newline added at the end of file.
[u/mrichter/AliRoot.git] / HLT / hough / Makefile
CommitLineData
e998e586 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6fd65d1d 6# changes by C. Loizides #
e998e586 7###########################
4de874d1 8
6fd65d1d 9
69581543 10ifndef TOPDIR
11TOPDIR = `pwd`/..
71e6af6c 12endif
b5a207b4 13
69581543 14include $(TOPDIR)/Makefile.conf
4de874d1 15
69581543 16DEFSTR = -Dno_root
6fd65d1d 17OBJDIR = lib_alone
18INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
4de874d1 19
b5a207b4 20ifeq ($(USEPACKAGE),ROOT)
d96f6a4a 21INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
e2e0cb81 22DEFSTR = -Duse_root
74eabe5f 23OBJDIR = lib_ROOT
b5a207b4 24endif
25
26ifeq ($(USEPACKAGE),ALIROOT)
d96f6a4a 27INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
e2e0cb81 28DEFSTR = -Duse_aliroot -Duse_root
6fd65d1d 29OBJDIR = lib
b5a207b4 30endif
31
e2e0cb81 32#Save the particle id's
69581543 33ifdef DO_MC
34DEFSTR += -Ddo_mc
35endif
e2e0cb81 36
71e6af6c 37#Use logging classes
b419a833 38ifndef NOLOGGING
71e6af6c 39DEFSTR += -Duse_logging
b419a833 40endif
71e6af6c 41
6fd65d1d 42DEFSTR += $(EXTRADEF)
43
71e6af6c 44ifdef MLUCDIR
45INCLUDES += -I$(MLUCDIR)/include
46else
47INCLUDES += -I/prog/alice/level3/kip/MLUC/include
48endif
49
c05bc6c5 50SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
51 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
237d3f5c 52 AliL3Histogram.cxx AliL3Histogram1D.cxx AliL3HoughBaseTransformer.cxx \
b46b53c1 53 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx \
1ed2ff53 54 AliL3HoughTransformerVhdl.cxx AliL3HoughDisplay.cxx
4de874d1 55
6fd65d1d 56DICT = AliL3HoughCint-$(USEPACKAGE).cxx
57DICTH = AliL3HoughCint-$(USEPACKAGE).h
58DICTO = $(OBJDIR)/AliL3HoughCint-$(USEPACKAGE).o
4de874d1 59
c05bc6c5 60HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
c05bc6c5 61OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
9f33a1db 62
6fd65d1d 63ifeq ($(OBJDIR),lib_alone)
64HDRS = $(SRCS:.cxx=.h)
65OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS))
66endif
67
68
e998e586 69LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 70
cc4d912a 71all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 72
c05bc6c5 73$(LEVELSO) : $(OBJS)
74 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 75
c05bc6c5 76$(DICT) : $(HDRS)
77 @echo "Generating dictionary..."
b5a207b4 78 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
4de874d1 79
4de874d1 80
c05bc6c5 81$(OBJDIR)/%.o : %.cxx
e2e0cb81 82 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
4de874d1 83
c05bc6c5 84$(OBJDIR) :
85 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 86$(LIBDIR) :
87 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 88
c05bc6c5 89clean :
90 rm -f $(OBJDIR)/*.o
e998e586 91 rm -f $(LIBDIR)/libAliL3Hough.so
74eabe5f 92 rm -f $(DICT) $(DICTH)
e998e586 93
94so:
b46b53c1 95 rm -f $(LIBDIR)/libAliL3Hough.so