Added #include<stdlib.h> and log
[u/mrichter/AliRoot.git] / HLT / hough / Makefile
CommitLineData
e998e586 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
4de874d1 7
c05bc6c5 8CXX = g++
9LD = g++
10CXXFLAGS = -O2 -Wall -fPIC
11LDFLAGS = -O2
12SOFLAGS = -shared
4de874d1 13
c05bc6c5 14TOPDIR = $(HOME)/level3code
e998e586 15OBJDIR = lib
16LIBDIR = $(LEVEL3)/lib_$(USERNAME)
4de874d1 17
c05bc6c5 18SRCS = AliL3HoughTransformer.cxx AliL3Hough.cxx AliL3HoughTrack.cxx\
19 AliL3HoughMaxFinder.cxx AliL3HoughEval.cxx AliL3HoughMerger.cxx \
20 AliL3Histogram.cxx AliL3Histogram1D.cxx \
21 AliL3HoughIntMerger.cxx AliL3HoughGlobalMerger.cxx
4de874d1 22
c05bc6c5 23DICT = AliL3HoughCint.cxx
24DICTH = AliL3HoughCint.h
25DICTO = $(OBJDIR)/AliL3HoughCint.o
4de874d1 26
c05bc6c5 27HDRS = $(SRCS:.cxx=.h) AliL3HoughLinkDef.h
4de874d1 28
c05bc6c5 29OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
9f33a1db 30
e998e586 31LEVELSO = $(LIBDIR)/libAliL3Hough.so
4de874d1 32
cc4d912a 33all : $(OBJDIR) $(LIBDIR) $(LEVELSO)
4de874d1 34
c05bc6c5 35$(LEVELSO) : $(OBJS)
36 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
4de874d1 37
c05bc6c5 38$(DICT) : $(HDRS)
39 @echo "Generating dictionary..."
40 @rootcint -f $(DICT) -c -I$(ROOTSYS) -I$(TOPDIR)/src $(HDRS)
4de874d1 41
4de874d1 42
c05bc6c5 43$(OBJDIR)/%.o : %.cxx
44 $(CXX) $(CXXFLAGS) -c -I$(ROOTSYS)/include -I$(TOPDIR)/src -I$(TOPDIR)/hough -o $@ $<
4de874d1 45
c05bc6c5 46$(OBJDIR) :
47 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
cc4d912a 48$(LIBDIR) :
49 test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
4de874d1 50
c05bc6c5 51clean :
52 rm -f $(OBJDIR)/*.o
e998e586 53 rm -f $(LIBDIR)/libAliL3Hough.so
54 rm $(DICT) $(DICTH)
55
56so:
57 rm -f $(LIBDIR)/libAliL3Hough.so