]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/misc/Makefile
New class AliL3DataHandler, for handling 8 bit data. Similiar and closely related...
[u/mrichter/AliRoot.git] / HLT / misc / Makefile
CommitLineData
1a3c8f6e 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
7
8ifndef USEPACKAGE
9#USEPACKAGE = ROOT
10USEPACKAGE = ALIROOT
11endif
12
13#used if USEPACKAGE=anything else
14DEFSTR = -Dno_root
15
16CXX = g++
17LD = g++
18CXXFLAGS = -O2 -Wall -fPIC
19LDFLAGS = -O2
20SOFLAGS = -shared
21
22ifndef TOPDIR
23TOPDIR = $(HOME)/level3code
24endif
25ifndef LIBDIR
26LIBDIR = $(LEVEL3)/lib_$(USERNAME)
27endif
28OBJDIR = lib
29
30ifeq ($(USEPACKAGE),ROOT)
31INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
32DEFSTR = -Duse_root
74eabe5f 33OBJDIR = lib_ROOT
1a3c8f6e 34endif
35
36ifeq ($(USEPACKAGE),ALIROOT)
37INCLUDES = -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
38DEFSTR = -Duse_aliroot
39endif
40
41#Save the particle id's
42#DEFSTR += -Ddo_mc
43
44#Use logging classes
b419a833 45ifndef NOLOGGING
1a3c8f6e 46DEFSTR += -Duse_logging
b419a833 47endif
1a3c8f6e 48
49ifdef MLUCDIR
50INCLUDES += -I$(MLUCDIR)/include
51else
52INCLUDES += -I/prog/alice/level3/kip/MLUC/include
53endif
54
b328544b 55SRCS = AliTransBit.cxx AliL3AltroMemHandler.cxx AliL3DataHandler.cxx
1a3c8f6e 56
57DICT = AliL3MiscCint.cxx
58DICTH = AliL3MiscCint.h
59DICTO = $(OBJDIR)/AliL3MiscCint.o
60
61HDRS = $(SRCS:.cxx=.h) AliL3MiscLinkDef.h
62OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
63
64LEVELSO = $(LIBDIR)/libAliL3Misc.so
65
66all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
67
68$(LEVELSO) : $(OBJS)
69 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
70
71$(DICT) : $(HDRS)
72 @echo "Generating dictionary..."
73 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
74
75$(OBJDIR)/%.o : %.cxx
76 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
77
78$(OBJDIR) :
79 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
80
81$(LIBDIR) :
82 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
83
84clean :
85 rm -f $(OBJDIR)/*.o
86 rm -f $(LIBDIR)/libAliL3Misc.so
74eabe5f 87 rm -f $(DICT) $(DICTH)
1a3c8f6e 88
89so :
90 rm -f $(LIBDIR)/libAliL3Misc.so
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119