]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/comp/Makefile
New class to make V2 clusters starting from digits or hits (fast simulation). Origin...
[u/mrichter/AliRoot.git] / HLT / comp / Makefile
1 #$Id$
2 ###########################
3 # Makefile for HLT code.  #
4 #                         #
5 # Author: Anders Vestbo   #                    
6 # changes by C. Loizides  #
7 ###########################
8
9
10 ifndef TOPDIR
11 TOPDIR = $(shell pwd)/..
12 endif
13
14 include $(TOPDIR)/Makefile.conf
15
16 DEFSTR = -Dno_root
17 OBJDIR = lib_alone
18 INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
19
20 ifeq ($(USEPACKAGE),ROOT) 
21 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
22 DEFSTR = -Duse_root
23 OBJDIR = lib_ROOT
24 endif
25
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
29 OBJDIR = lib
30 endif
31
32 ifdef DO_MC
33 DEFSTR += -Ddo_mc
34 endif
35
36 ifndef NOLOGGING
37 DEFSTR += -Duse_logging
38 endif
39
40 DEFSTR += $(EXTRADEF)
41
42 ifdef MLUCDIR
43 INCLUDES += -I$(MLUCDIR)/include
44 else
45 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
46 endif
47
48 SRCS =  AliL3Modeller.cxx AliL3ModelTrack.cxx 
49
50 DICT  = AliL3CompCint-$(USEPACKAGE).cxx
51 DICTH = AliL3CompCint-$(USEPACKAGE).h
52 DICTO = $(OBJDIR)/AliL3CompCint-$(USEPACKAGE).o
53
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)
58 endif
59
60 ifeq ($(USEPACKAGE),ALIROOT)
61 SRCS += AliL3Compress.cxx AliL3DataCompressor.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)
64 endif
65
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
69 endif
70
71
72 LEVELSO = $(LIBDIR)/libAliL3Comp.so
73
74 all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
75
76 $(LEVELSO) : $(OBJS)
77         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
78
79 $(DICT) : $(HDRS)
80         @echo "Generating dictionary..."
81         @rootcint -f $(DICT) -c $(INCLUDES) -DGCCVERSION=$(GCCVERSION) -include AliL3StandardIncludes.h $(HDRS)
82
83 $(OBJDIR)/%.o : %.cxx 
84         $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
85
86 $(OBJDIR) : 
87         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
88
89 $(LIBDIR) :
90         test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
91
92 $(OBJDIR)/bitio.o : bitio.c
93         $(CXX) -c -o $(OBJDIR)/bitio.o bitio.c
94
95 $(OBJDIR)/errhand.o : errhand.c
96         $(CXX) -c -o $(OBJDIR)/errhand.o errhand.c
97
98 clean :
99         rm -f $(OBJDIR)/*.o
100         rm -f $(LIBDIR)/libAliL3Comp.so
101         rm -f $(DICT) $(DICTH)
102 so :
103         rm -f $(LIBDIR)/libAliL3Comp.so