Minor updates
[u/mrichter/AliRoot.git] / HLT / src / Makefile
CommitLineData
95a00d93 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
7
8USEPACKAGE = ROOT
9#USEPACKAGE = ALIROOT
108615fc 10
352eb143 11CXX = g++
12LD = g++
13CXXFLAGS = -O2 -Wall -fPIC
14LDFLAGS = -O2
15SOFLAGS = -shared
108615fc 16
352eb143 17TOPDIR = $(HOME)/level3code
e998e586 18OBJDIR = lib
95a00d93 19LIBDIR = $(LEVEL3)/lib_$(USERNAME)
20
21ifeq ($(USEPACKAGE),ROOT)
22INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
23endif
24
25ifeq ($(USEPACKAGE),ALIROOT)
26INCLUDES = -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
27endif
108615fc 28
352eb143 29SRCS = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
30 AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
31 AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
32 AliL3Vertex.cxx AliL3VertexFinder.cxx \
33 AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
34 AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
35 AliL3MemHandler.cxx AliL3Benchmark.cxx AliL3Display.cxx\
108615fc 36
352eb143 37DICT = AliL3Cint.cxx
38DICTH = AliL3Cint.h
39DICTO = $(OBJDIR)/AliL3Cint.o
108615fc 40
95a00d93 41ifeq ($(USEPACKAGE),ROOT)
352eb143 42HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
352eb143 43OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
95a00d93 44endif
45
46ifeq ($(USEPACKAGE),ALIROOT)
47HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3LinkDef.h
48OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3FileHandler.o $(DICTO)
49endif
108615fc 50
95a00d93 51LEVELSO = $(LIBDIR)/libAliL3.so
108615fc 52
95a00d93 53all : $(LEVELSO) $(OBJDIR)
108615fc 54
352eb143 55$(LEVELSO) : $(OBJS)
56 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
108615fc 57
352eb143 58$(DICT) : $(HDRS)
59 @echo "Generating dictionary..."
95a00d93 60 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
108615fc 61
352eb143 62$(OBJDIR)/%.o : %.cxx
95a00d93 63 $(CXX) $(CXXFLAGS) -c $(INCLUDES) -o $@ $<
108615fc 64
352eb143 65$(OBJDIR) :
66 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
108615fc 67
352eb143 68clean :
69 rm -f $(OBJDIR)/*.o
95a00d93 70 rm -f $(LIBDIR)/libAliL3.so
71 rm $(DICT) $(DICTH)
72
73so :
74 rm -f $(LIBDIR)/libAliL3.so