Functions for bitio. Taken as is from The Data Compression Book
[u/mrichter/AliRoot.git] / HLT / comp / Makefile
CommitLineData
735e167e 1#
2# Makefile for ROOT version of HLT code.
3#
4# Author: Anders Vestbo
5#
6
7CXX = g++
8LD = g++
9CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual
10LDFLAGS = -O2
11SOFLAGS = -shared
12
13TOPDIR = $(HOME)/level3code
14OBJDIR = tgt_Linux
15
16SRCS = AliL3Modeller.cxx AliL3ModelTrack.cxx
17
18DICT = AliL3CompCint.cxx
19DICTH = AliL3CompCint.h
20DICTO = $(OBJDIR)/AliL3CompCint.o
21
22HDRS = $(SRCS:.cxx=.h) AliL3CompLinkDef.h
23
24OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
25
26LEVELSO = $(LEVEL3)/lib_$(USERNAME)/libAliL3Comp.so
27
28all : $(OBJDIR) $(LEVELSO)
29
30
31$(LEVELSO) : $(OBJS)
32 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
33
34$(DICT) : $(HDRS)
35 @echo "Generating dictionary..."
36 @rootcint -f $(DICT) -c -I$(ROOTSYS) -I$(TOPDIR)/src/ $(HDRS)
37
38
39$(OBJDIR)/%.o : %.cxx
40 $(CXX) $(CXXFLAGS) -c -I$(ROOTSYS)/include -I$(TOPDIR)/src -I$(TOPDIR)/hough -o $@ $<
41
42$(OBJDIR) :
43 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
44
45clean :
46 rm -f $(OBJDIR)/*.o
47 rm -f $(LEVEL3)/lib_$(USERNAME)/libAliL3Comp.so
48 rm $(DICT) $(DICTH)
49so :
50 rm -f $(LEVEL3)/lib_$(USERNAME)/libAliL3Comp.so