]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/misc/Makefile
Conversion table class for 10-8bit compression.
[u/mrichter/AliRoot.git] / HLT / misc / Makefile
1 #$Id$
2 ###########################
3 # Makefile for HLT code.  #
4 #                         #
5 # Author: Anders Vestbo   #                    
6 ###########################
7
8 ifndef USEPACKAGE
9 #USEPACKAGE = ROOT
10 USEPACKAGE = ALIROOT
11 endif
12
13 #used if USEPACKAGE=anything else
14 DEFSTR = -Dno_root
15
16 CXX         = g++
17 LD          = g++
18 CXXFLAGS    = -O2 -Wall -fPIC
19 LDFLAGS     = -O2
20 SOFLAGS     = -shared
21
22 ifndef TOPDIR
23 TOPDIR = $(HOME)/level3code
24 endif
25 ifndef LIBDIR
26 LIBDIR = $(LEVEL3)/lib_$(USERNAME)
27 endif
28 OBJDIR = lib
29
30 ifeq ($(USEPACKAGE),ROOT) 
31 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
32 DEFSTR = -Duse_root
33 endif
34
35 ifeq ($(USEPACKAGE),ALIROOT)
36 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
37 DEFSTR = -Duse_aliroot
38 endif
39
40 #Save the particle id's
41 #DEFSTR += -Ddo_mc
42
43 #Use logging classes
44 DEFSTR += -Duse_logging
45
46 ifdef MLUCDIR
47 INCLUDES += -I$(MLUCDIR)/include
48 else
49 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
50 endif
51
52 SRCS    = AliTransBit.cxx
53
54 DICT = AliL3MiscCint.cxx
55 DICTH = AliL3MiscCint.h
56 DICTO = $(OBJDIR)/AliL3MiscCint.o
57
58 HDRS = $(SRCS:.cxx=.h) AliL3MiscLinkDef.h
59 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
60
61 LEVELSO = $(LIBDIR)/libAliL3Misc.so
62
63 all : $(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
81 clean :
82         rm -f $(OBJDIR)/*.o
83         rm -f $(LIBDIR)/libAliL3Misc.so
84         rm $(DICT) $(DICTH) 
85
86 so :
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