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\
65 DICTO = $(OBJDIR)/AliL3Cint.o
67 ifeq ($(USEPACKAGE),ROOT)
68 HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
69 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
72 ifeq ($(USEPACKAGE),ALIROOT)
73 HDRS = $(SRCS:.cxx=.h) AliL3FileHandler.h AliL3LinkDef.h
74 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/AliL3FileHandler.o $(DICTO)
77 LEVELSO = $(LIBDIR)/libAliL3.so
79 all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
82 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
85 @echo "Generating dictionary..."
86 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
89 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
92 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
95 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
99 rm -f $(LIBDIR)/libAliL3.so
100 rm -f $(DICT) $(DICTH)
103 rm -f $(LIBDIR)/libAliL3.so