MergeEtaSlices and MergeTracks are currently empty.
[u/mrichter/AliRoot.git] / HLT / comp / Makefile
CommitLineData
e998e586 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
735e167e 7
71e6af6c 8ifndef USEPACKAGE
e2e0cb81 9#USEPACKAGE = ROOT
10USEPACKAGE = ALIROOT
71e6af6c 11endif
e2e0cb81 12
71e6af6c 13#used if USEPACKAGE=anything else
e2e0cb81 14DEFSTR = -Dno_root
dfc8670c 15
735e167e 16CXX = g++
17LD = g++
18CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual
19LDFLAGS = -O2
20SOFLAGS = -shared
21
71e6af6c 22ifndef TOPDIR
735e167e 23TOPDIR = $(HOME)/level3code
71e6af6c 24endif
25ifndef LIBDIR
6820fe90 26LIBDIR = $(LEVEL3)/lib_$(USERNAME)
71e6af6c 27endif
28OBJDIR = lib
dfc8670c 29
30ifeq ($(USEPACKAGE),ROOT)
31INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
e2e0cb81 32DEFSTR = -Duse_root
dfc8670c 33endif
34
35ifeq ($(USEPACKAGE),ALIROOT)
36INCLUDES = -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
e2e0cb81 37DEFSTR = -Duse_aliroot -Duse_root
dfc8670c 38endif
39
e2e0cb81 40#Save the particle id's
41#DEFSTR += -Ddo_mc
42
71e6af6c 43#Use logging classes
44DEFSTR += -Duse_logging
45
46ifdef MLUCDIR
47INCLUDES += -I$(MLUCDIR)/include
48else
49INCLUDES += -I/prog/alice/level3/kip/MLUC/include
50endif
51
6820fe90 52SRCS = AliL3Modeller.cxx AliL3ModelTrack.cxx AliL3Compress.cxx
735e167e 53
54DICT = AliL3CompCint.cxx
55DICTH = AliL3CompCint.h
56DICTO = $(OBJDIR)/AliL3CompCint.o
57
6820fe90 58HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
735e167e 59
6820fe90 60OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o $(DICTO)
735e167e 61
6820fe90 62LEVELSO = $(LIBDIR)/libAliL3Comp.so
735e167e 63
cc4d912a 64all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
735e167e 65
66
67$(LEVELSO) : $(OBJS)
68 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
69
70$(DICT) : $(HDRS)
71 @echo "Generating dictionary..."
dfc8670c 72 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
735e167e 73
74
75$(OBJDIR)/%.o : %.cxx
e2e0cb81 76 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
735e167e 77
78$(OBJDIR) :
79 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
6820fe90 80
cc4d912a 81$(LIBDIR) :
82 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
83
6820fe90 84$(OBJDIR)/bitio.o : bitio.c
85 $(CXX) -c -o $(OBJDIR)/bitio.o bitio.c
86$(OBJDIR)/errhand.o : errhand.c
87 $(CXX) -c -o $(OBJDIR)/errhand.o errhand.c
735e167e 88
89clean :
90 rm -f $(OBJDIR)/*.o
6820fe90 91 rm -f $(LIBDIR)/libAliL3Comp.so
735e167e 92 rm $(DICT) $(DICTH)
93so :
6820fe90 94 rm -f $(LIBDIR)/libAliL3Comp.so