Minor changes to make it work with new Top Makefile. Also have generated code separat...
[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
69581543 8ifndef TOPDIR
9TOPDIR = `pwd`/..
71e6af6c 10endif
b5a207b4 11
69581543 12include $(TOPDIR)/Makefile.conf
4de874d1 13
69581543 14DEFSTR = -Dno_root
4de874d1 15
b5a207b4 16ifeq ($(USEPACKAGE),ROOT)
d96f6a4a 17INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
e2e0cb81 18DEFSTR = -Duse_root
74eabe5f 19OBJDIR = lib_ROOT
b5a207b4 20endif
21
22ifeq ($(USEPACKAGE),ALIROOT)
d96f6a4a 23INCLUDES = -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 24DEFSTR = -Duse_aliroot -Duse_root
b5a207b4 25endif
26
e2e0cb81 27#Save the particle id's
69581543 28ifdef DO_MC
29DEFSTR += -Ddo_mc
30endif
b46b53c1 31DEFSTR += $(EXTRADEF)
e2e0cb81 32
71e6af6c 33#Use logging classes
b419a833 34ifndef NOLOGGING
71e6af6c 35DEFSTR += -Duse_logging
b419a833 36endif
71e6af6c 37
38ifdef MLUCDIR
39INCLUDES += -I$(MLUCDIR)/include
40else
41INCLUDES += -I/prog/alice/level3/kip/MLUC/include
42endif
43
c05bc6c5 44SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
45 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
237d3f5c 46 AliL3Histogram.cxx AliL3Histogram1D.cxx AliL3HoughBaseTransformer.cxx \
b46b53c1 47 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx \
1ed2ff53 48 AliL3HoughTransformerVhdl.cxx AliL3HoughDisplay.cxx
4de874d1 49
c05bc6c5 50DICT = AliL3HoughCint.cxx
51DICTH = AliL3HoughCint.h
52DICTO = $(OBJDIR)/AliL3HoughCint.o
4de874d1 53
c05bc6c5 54HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
c05bc6c5 55OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
9f33a1db 56
e998e586 57LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 58
cc4d912a 59all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 60
c05bc6c5 61$(LEVELSO) : $(OBJS)
62 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 63
c05bc6c5 64$(DICT) : $(HDRS)
65 @echo "Generating dictionary..."
b5a207b4 66 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
4de874d1 67
4de874d1 68
c05bc6c5 69$(OBJDIR)/%.o : %.cxx
e2e0cb81 70 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
4de874d1 71
c05bc6c5 72$(OBJDIR) :
73 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 74$(LIBDIR) :
75 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 76
c05bc6c5 77clean :
78 rm -f $(OBJDIR)/*.o
e998e586 79 rm -f $(LIBDIR)/libAliL3Hough.so
74eabe5f 80 rm -f $(DICT) $(DICTH)
e998e586 81
82so:
b46b53c1 83 rm -f $(LIBDIR)/libAliL3Hough.so