# Makefile for HLT code. #
# #
# Author: Anders Vestbo #
+# changes by C. Loizides #
###########################
+
ifndef TOPDIR
TOPDIR = `pwd`/..
endif
include $(TOPDIR)/Makefile.conf
DEFSTR = -Dno_root
+OBJDIR = lib_alone
+INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
ifeq ($(USEPACKAGE),ROOT)
INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
ifeq ($(USEPACKAGE),ALIROOT)
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
DEFSTR = -Duse_aliroot -Duse_root
+OBJDIR = lib
endif
ifdef DO_MC
DEFSTR += -Duse_logging
endif
+DEFSTR += $(EXTRADEF)
+
ifdef MLUCDIR
INCLUDES += -I$(MLUCDIR)/include
else
SRCS = AliL3Modeller.cxx AliL3ModelTrack.cxx AliL3Compress.cxx
-DICT = AliL3CompCint.cxx
-DICTH = AliL3CompCint.h
-DICTO = $(OBJDIR)/AliL3CompCint.o
-HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
+DICT = AliL3CompCint-$(USEPACKAGE).cxx
+DICTH = AliL3CompCint-$(USEPACKAGE).h
+DICTO = $(OBJDIR)/AliL3CompCint-$(USEPACKAGE).o
+HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o $(DICTO)
+ifeq ($(OBJDIR),lib_alone)
+HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h
+OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o
+endif
+
+
LEVELSO = $(LIBDIR)/libAliL3Comp.so
all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
-
$(LEVELSO) : $(OBJS)
$(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
@echo "Generating dictionary..."
@rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
-
$(OBJDIR)/%.o : %.cxx
$(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
$(OBJDIR)/bitio.o : bitio.c
$(CXX) -c -o $(OBJDIR)/bitio.o bitio.c
+
$(OBJDIR)/errhand.o : errhand.c
$(CXX) -c -o $(OBJDIR)/errhand.o errhand.c
clean :
rm -f $(OBJDIR)/*.o
rm -f $(LIBDIR)/libAliL3Comp.so
- rm -f $(DICT) $(DICTH)
+ rm -f $(DICT) $(DICTH)
so :
- rm -f $(LIBDIR)/libAliL3Comp.so
\ No newline at end of file
+ rm -f $(LIBDIR)/libAliL3Comp.so
# Makefile for HLT code. #
# #
# Author: Anders Vestbo #
+# changes by C. Loizides #
###########################
+
ifndef TOPDIR
TOPDIR = `pwd`/..
endif
include $(TOPDIR)/Makefile.conf
DEFSTR = -Dno_root
+OBJDIR = lib_alone
+INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
ifeq ($(USEPACKAGE),ROOT)
INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
ifeq ($(USEPACKAGE),ALIROOT)
INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
DEFSTR = -Duse_aliroot -Duse_root
+OBJDIR = lib
endif
#Save the particle id's
ifdef DO_MC
DEFSTR += -Ddo_mc
endif
-DEFSTR += $(EXTRADEF)
#Use logging classes
ifndef NOLOGGING
DEFSTR += -Duse_logging
endif
+DEFSTR += $(EXTRADEF)
+
ifdef MLUCDIR
INCLUDES += -I$(MLUCDIR)/include
else
AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx \
AliL3HoughTransformerVhdl.cxx AliL3HoughDisplay.cxx
-DICT = AliL3HoughCint.cxx
-DICTH = AliL3HoughCint.h
-DICTO = $(OBJDIR)/AliL3HoughCint.o
+DICT = AliL3HoughCint-$(USEPACKAGE).cxx
+DICTH = AliL3HoughCint-$(USEPACKAGE).h
+DICTO = $(OBJDIR)/AliL3HoughCint-$(USEPACKAGE).o
HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
+ifeq ($(OBJDIR),lib_alone)
+HDRS = $(SRCS:.cxx=.h)
+OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS))
+endif
+
+
LEVELSO = $(LIBDIR)/libAliL3Hough.so
all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
# Makefile for HLT code. #
# #
# Author: Anders Vestbo #
+# changes by C. Loizides #
###########################
ifndef TOPDIR
include $(TOPDIR)/Makefile.conf
DEFSTR = -Dno_root
+OBJDIR = lib_alone
+INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
ifeq ($(USEPACKAGE),ROOT)
INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
ifeq ($(USEPACKAGE),ALIROOT)
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
DEFSTR = -Duse_aliroot
+OBJDIR = lib
endif
ifdef DO_MC
DEFSTR += -Duse_logging
endif
+DEFSTR += $(EXTRADEF)
+
ifdef MLUCDIR
INCLUDES += -I$(MLUCDIR)/include
else
SRCS = AliTransBit.cxx AliL3AltroMemHandler.cxx AliL3DataHandler.cxx AliL3VHDLClusterFinder.cxx
-DICT = AliL3MiscCint.cxx
-DICTH = AliL3MiscCint.h
-DICTO = $(OBJDIR)/AliL3MiscCint.o
+DICT = AliL3MiscCint-$(USEPACKAGE).cxx
+DICTH = AliL3MiscCint-$(USEPACKAGE).h
+DICTO = $(OBJDIR)/AliL3MiscCint-$(USEPACKAGE).o
HDRS = $(SRCS:.cxx=.h) AliL3MiscLinkDef.h
OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
+ifeq ($(OBJDIR),lib_alone)
+HDRS = $(SRCS:.cxx=.h)
+OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS))
+endif
+
+
LEVELSO = $(LIBDIR)/libAliL3Misc.so
all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
so :
rm -f $(LIBDIR)/libAliL3Misc.so
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-