2 ###########################
3 # Makefile for HLT code. #
5 # Author: Anders Vestbo #
6 # changes by C. Loizides #
7 ###########################
14 include $(TOPDIR)/Makefile.conf
18 INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
20 ifeq ($(USEPACKAGE),ROOT)
21 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
26 ifeq ($(USEPACKAGE),ALIROOT)
27 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
28 DEFSTR = -Duse_aliroot -Duse_root
37 DEFSTR += -Duse_logging
43 INCLUDES += -I$(MLUCDIR)/include
45 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
48 SRCS = AliL3Modeller.cxx AliL3ModelTrack.cxx
50 DICT = AliL3CompCint-$(USEPACKAGE).cxx
51 DICTH = AliL3CompCint-$(USEPACKAGE).h
52 DICTO = $(OBJDIR)/AliL3CompCint-$(USEPACKAGE).o
54 ifeq ($(USEPACKAGE),ROOT)
55 SRCS += AliL3Compress.cxx
56 HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
57 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o $(DICTO)
60 ifeq ($(USEPACKAGE),ALIROOT)
61 SRCS += AliL3Compress.cxx
62 HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
63 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o $(DICTO)
66 ifeq ($(OBJDIR),lib_alone)
67 HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h
68 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o
72 LEVELSO = $(LIBDIR)/libAliL3Comp.so
74 all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
77 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
80 @echo "Generating dictionary..."
81 @rootcint -f $(DICT) -c $(INCLUDES) -DGCCVERSION=$(GCCVERSION) -include AliL3StandardIncludes.h $(HDRS)
84 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
87 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
90 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
92 $(OBJDIR)/bitio.o : bitio.c
93 $(CXX) -c -o $(OBJDIR)/bitio.o bitio.c
95 $(OBJDIR)/errhand.o : errhand.c
96 $(CXX) -c -o $(OBJDIR)/errhand.o errhand.c
100 rm -f $(LIBDIR)/libAliL3Comp.so
101 rm -f $(DICT) $(DICTH)
103 rm -f $(LIBDIR)/libAliL3Comp.so