]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/hough/Makefile
Little changes to make g++ version 3.2 compile the hough library.
[u/mrichter/AliRoot.git] / HLT / hough / Makefile
1 #$Id$
2 ###########################
3 # Makefile for HLT code.  #
4 #                         #
5 # Author: Anders Vestbo   #                    
6 # changes by C. Loizides  #
7 ###########################
8
9
10 ifndef TOPDIR
11 TOPDIR = `pwd`/..
12 endif
13
14 include $(TOPDIR)/Makefile.conf
15
16 DEFSTR = -Dno_root
17 OBJDIR = lib_alone
18 INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
19
20 ifeq ($(USEPACKAGE),ROOT) 
21 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
22 DEFSTR = -Duse_root
23 OBJDIR = lib_ROOT
24 endif
25
26 ifeq ($(USEPACKAGE),ALIROOT)
27 INCLUDES = -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
28 DEFSTR = -Duse_aliroot -Duse_root
29 OBJDIR = lib
30 endif
31
32 #Save the particle id's
33 ifdef DO_MC
34 DEFSTR += -Ddo_mc
35 endif
36
37 #Use logging classes
38 ifndef NOLOGGING
39 DEFSTR += -Duse_logging
40 endif
41
42 DEFSTR += $(EXTRADEF)
43
44 ifdef MLUCDIR
45 INCLUDES += -I$(MLUCDIR)/include
46 else
47 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
48 endif
49
50 SRCS = AliL3HoughTransformer.cxx AliL3HoughTrack.cxx AliL3HoughClusterTransformer.cxx \
51        AliL3HoughEval.cxx AliL3HoughMerger.cxx AliL3HoughBaseTransformer.cxx \
52        AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx AliL3HoughTransformerVhdl.cxx \
53        AliL3Histogram.cxx AliL3Histogram1D.cxx AliL3HoughMaxFinder.cxx AliL3Hough.cxx \
54        AliL3HoughTransformerLUT.cxx 
55
56 DICT  = AliL3HoughCint-$(USEPACKAGE).cxx
57 DICTH = AliL3HoughCint-$(USEPACKAGE).h
58 DICTO = $(OBJDIR)/AliL3HoughCint-$(USEPACKAGE).o
59
60 ifeq ($(USEPACKAGE),ROOT)
61 SRCS += AliL3HoughDisplay.cxx 
62 HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
63 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
64 endif
65
66 ifeq ($(USEPACKAGE),ALIROOT)
67 SRCS += AliL3HoughDisplay.cxx
68 HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
69 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
70 endif
71
72 ifeq ($(OBJDIR),lib_alone)
73 HDRS = $(SRCS:.cxx=.h) 
74 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS))
75 endif
76
77 LEVELSO = $(LIBDIR)/libAliL3Hough.so
78
79 all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
80
81 $(LEVELSO) : $(OBJS)
82         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
83
84 $(DICT) : $(HDRS)
85         @echo "Generating dictionary..."
86         @rootcint -f $(DICT) -c $(INCLUDES) -DGCCVERSION=$(GCCVERSION) -include AliL3StandardIncludes.h $(HDRS)
87
88 $(OBJDIR)/%.o : %.cxx 
89         $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
90
91 $(OBJDIR) : 
92         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
93
94 $(LIBDIR) :
95         test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
96
97 clean :
98         rm -f $(OBJDIR)/*.o
99         rm -f $(LIBDIR)/libAliL3Hough.so
100         rm -f $(DICT) $(DICTH) 
101
102 so: 
103         rm -f $(LIBDIR)/libAliL3Hough.so