2 ###########################
3 # Makefile for HLT code. #
5 # Author: Anders Vestbo #
6 ###########################
15 CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual
19 TOPDIR = $(HOME)/level3code
21 LIBDIR = $(LEVEL3)/lib_$(USERNAME)
24 ifeq ($(USEPACKAGE),ROOT)
25 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
29 ifeq ($(USEPACKAGE),ALIROOT)
30 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
31 DEFSTR = -Duse_aliroot -Duse_root
34 #Save the particle id's
37 SRCS = AliL3Modeller.cxx AliL3ModelTrack.cxx AliL3Compress.cxx
39 DICT = AliL3CompCint.cxx
40 DICTH = AliL3CompCint.h
41 DICTO = $(OBJDIR)/AliL3CompCint.o
43 HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
45 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o $(DICTO)
47 LEVELSO = $(LIBDIR)/libAliL3Comp.so
49 all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
53 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
56 @echo "Generating dictionary..."
57 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
61 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
64 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
67 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
69 $(OBJDIR)/bitio.o : bitio.c
70 $(CXX) -c -o $(OBJDIR)/bitio.o bitio.c
71 $(OBJDIR)/errhand.o : errhand.c
72 $(CXX) -c -o $(OBJDIR)/errhand.o errhand.c
76 rm -f $(LIBDIR)/libAliL3Comp.so
79 rm -f $(LIBDIR)/libAliL3Comp.so