Conversion table class for 10-8bit compression.
[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
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
37DEFSTR = -Duse_aliroot
38endif
39
40#Save the particle id's
41#DEFSTR += -Ddo_mc
42
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
52SRCS = AliTransBit.cxx
53
54DICT = AliL3MiscCint.cxx
55DICTH = AliL3MiscCint.h
56DICTO = $(OBJDIR)/AliL3MiscCint.o
57
58HDRS = $(SRCS:.cxx=.h) AliL3MiscLinkDef.h
59OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
60
61LEVELSO = $(LIBDIR)/libAliL3Misc.so
62
63all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
64
65$(LEVELSO) : $(OBJS)
66 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
67
68$(DICT) : $(HDRS)
69 @echo "Generating dictionary..."
70 @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
71
72$(OBJDIR)/%.o : %.cxx
73 $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
74
75$(OBJDIR) :
76 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
77
78$(LIBDIR) :
79 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
80
81clean :
82 rm -f $(OBJDIR)/*.o
83 rm -f $(LIBDIR)/libAliL3Misc.so
84 rm $(DICT) $(DICTH)
85
86so :
87 rm -f $(LIBDIR)/libAliL3Misc.so
88
89
90
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