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