2 ###########################
3 # Makefile for HLT code. #
5 # Author: Anders Vestbo #
6 ###########################
13 #used if USEPACKAGE=anything else
18 CXXFLAGS = -O2 -Wall -fPIC
23 TOPDIR = $(HOME)/level3code
26 LIBDIR = $(LEVEL3)/lib_$(USERNAME)
30 ifeq ($(USEPACKAGE),ROOT)
31 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
36 ifeq ($(USEPACKAGE),ALIROOT)
37 INCLUDES = -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
38 DEFSTR = -Duse_aliroot
41 #Save the particle id's
46 DEFSTR += -Duse_logging
50 INCLUDES += -I$(MLUCDIR)/include
52 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
55 SRCS = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
56 AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
57 AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
58 AliL3Vertex.cxx AliL3VertexFinder.cxx \
59 AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
60 AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
61 AliL3MemHandler.cxx AliL3Benchmark.cxx AliL3Display.cxx\
66 DICTO = $(OBJDIR)/AliL3Cint.o
68 ifeq ($(USEPACKAGE),ROOT)
69 HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
70 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
73 ifeq ($(USEPACKAGE),ALIROOT)
74 HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3Evaluate.h AliL3LinkDef.h
75 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3Evaluate.o $(OBJDIR)/AliL3FileHandler.o $(DICTO)
78 LEVELSO = $(LIBDIR)/libAliL3.so
80 all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
83 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
86 @echo "Generating dictionary..."
87 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
90 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
93 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
96 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
100 rm -f $(LIBDIR)/libAliL3.so
101 rm -f $(DICT) $(DICTH)
104 rm -f $(LIBDIR)/libAliL3.so