Data structures for track and clusters
[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
6820fe90 15LIBDIR = $(LEVEL3)/lib_$(USERNAME)
735e167e 16
6820fe90 17SRCS = AliL3Modeller.cxx AliL3ModelTrack.cxx AliL3Compress.cxx
735e167e 18
19DICT = AliL3CompCint.cxx
20DICTH = AliL3CompCint.h
21DICTO = $(OBJDIR)/AliL3CompCint.o
22
6820fe90 23HDRS = $(SRCS:.cxx=.h) bitio.h errhand.h AliL3CompLinkDef.h
735e167e 24
6820fe90 25OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(OBJDIR)/bitio.o $(OBJDIR)/errhand.o $(DICTO)
735e167e 26
6820fe90 27LEVELSO = $(LIBDIR)/libAliL3Comp.so
735e167e 28
29all : $(OBJDIR) $(LEVELSO)
30
31
32$(LEVELSO) : $(OBJS)
33 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
34
35$(DICT) : $(HDRS)
36 @echo "Generating dictionary..."
37 @rootcint -f $(DICT) -c -I$(ROOTSYS) -I$(TOPDIR)/src/ $(HDRS)
38
39
40$(OBJDIR)/%.o : %.cxx
41 $(CXX) $(CXXFLAGS) -c -I$(ROOTSYS)/include -I$(TOPDIR)/src -I$(TOPDIR)/hough -o $@ $<
42
43$(OBJDIR) :
44 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
6820fe90 45 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
46
47$(OBJDIR)/bitio.o : bitio.c
48 $(CXX) -c -o $(OBJDIR)/bitio.o bitio.c
49$(OBJDIR)/errhand.o : errhand.c
50 $(CXX) -c -o $(OBJDIR)/errhand.o errhand.c
735e167e 51
52clean :
53 rm -f $(OBJDIR)/*.o
6820fe90 54 rm -f $(LIBDIR)/libAliL3Comp.so
735e167e 55 rm $(DICT) $(DICTH)
56so :
6820fe90 57 rm -f $(LIBDIR)/libAliL3Comp.so