Minor changes at new Top Makefile.
[u/mrichter/AliRoot.git] / HLT / src / Makefile
CommitLineData
95a00d93 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
7
17d8d094 8ifndef TOPDIR
9TOPDIR = `pwd`/..
05d3c0f8 10endif
152be1b5 11
17d8d094 12include $(TOPDIR)/Makefile.conf
108615fc 13
17d8d094 14DEFSTR = -Dno_root
152be1b5 15
95a00d93 16ifeq ($(USEPACKAGE),ROOT)
17INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
152be1b5 18DEFSTR = -Duse_root
74eabe5f 19OBJDIR = lib_ROOT
95a00d93 20endif
21
22ifeq ($(USEPACKAGE),ALIROOT)
23INCLUDES = -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
05d3c0f8 24DEFSTR = -Duse_aliroot
95a00d93 25endif
108615fc 26
17d8d094 27ifdef DO_MC
28DEFSTR += -Ddo_mc
29endif
c3dd27a3 30DEFSTR += $(EXTRADEF)
152be1b5 31
b419a833 32ifndef NOLOGGING
05d3c0f8 33DEFSTR += -Duse_logging
b419a833 34endif
05d3c0f8 35
36ifdef MLUCDIR
37INCLUDES += -I$(MLUCDIR)/include
38else
39INCLUDES += -I/prog/alice/level3/kip/MLUC/include
40endif
41
352eb143 42SRCS = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
43 AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
44 AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
45 AliL3Vertex.cxx AliL3VertexFinder.cxx \
46 AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
47 AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
c3dd27a3 48 AliL3MemHandler.cxx AliL3Benchmark.cxx AliL3Display.cxx
49
108615fc 50
352eb143 51DICT = AliL3Cint.cxx
52DICTH = AliL3Cint.h
53DICTO = $(OBJDIR)/AliL3Cint.o
108615fc 54
95a00d93 55ifeq ($(USEPACKAGE),ROOT)
352eb143 56HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
352eb143 57OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
95a00d93 58endif
59
60ifeq ($(USEPACKAGE),ALIROOT)
84122e15 61HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3Evaluate.h AliL3LinkDef.h
62OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3Evaluate.o $(OBJDIR)/AliL3FileHandler.o $(DICTO)
95a00d93 63endif
108615fc 64
95a00d93 65LEVELSO = $(LIBDIR)/libAliL3.so
108615fc 66
cc4d912a 67all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
108615fc 68
352eb143 69$(LEVELSO) : $(OBJS)
70 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
108615fc 71
352eb143 72$(DICT) : $(HDRS)
73 @echo "Generating dictionary..."
95a00d93 74 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
108615fc 75
352eb143 76$(OBJDIR)/%.o : %.cxx
152be1b5 77 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
108615fc 78
352eb143 79$(OBJDIR) :
80 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
108615fc 81
cc4d912a 82$(LIBDIR) :
83 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
84
352eb143 85clean :
86 rm -f $(OBJDIR)/*.o
95a00d93 87 rm -f $(LIBDIR)/libAliL3.so
74eabe5f 88 rm -f $(DICT) $(DICTH)
95a00d93 89
90so :
05d3c0f8 91 rm -f $(LIBDIR)/libAliL3.so
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
05d3c0f8 114
115
116
117