Example how to run script
[u/mrichter/AliRoot.git] / HLT / src / Makefile
CommitLineData
352eb143 1#
2# Makefile for ROOT version of HLT code.
3#
4# Author: Anders Vestbo
5#
108615fc 6
352eb143 7CXX = g++
8LD = g++
9CXXFLAGS = -O2 -Wall -fPIC
10LDFLAGS = -O2
11SOFLAGS = -shared
108615fc 12
352eb143 13TOPDIR = $(HOME)/level3code
14OBJDIR = tgt_Linux
108615fc 15
352eb143 16SRCS = AliL3ConfMapper.cxx AliL3ConfMapPoint.cxx AliLevel3.cxx\
17 AliL3ConfMapTrack.cxx AliL3ConfMapFit.cxx AliL3Track.cxx\
18 AliL3Transform.cxx AliL3TrackMerger.cxx AliL3VertexArray.cxx \
19 AliL3Vertex.cxx AliL3VertexFinder.cxx \
20 AliL3Merger.cxx AliL3GlobalMerger.cxx AliL3ClustFinderNew.cxx \
21 AliL3TrackArray.cxx AliL3InterMerger.cxx AliL3Logger.cxx \
22 AliL3MemHandler.cxx AliL3Benchmark.cxx AliL3Display.cxx\
108615fc 23
352eb143 24DICT = AliL3Cint.cxx
25DICTH = AliL3Cint.h
26DICTO = $(OBJDIR)/AliL3Cint.o
108615fc 27
352eb143 28HDRS = $(SRCS:.cxx=.h) AliL3LinkDef.h
108615fc 29
352eb143 30OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
108615fc 31
352eb143 32LEVELSO = $(LEVEL3)/lib_$(USERNAME)/libAliL3.so
108615fc 33
352eb143 34all : $(OBJDIR) $(LEVELSO)
108615fc 35
352eb143 36$(LEVELSO) : $(OBJS)
37 $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
108615fc 38
352eb143 39$(DICT) : $(HDRS)
40 @echo "Generating dictionary..."
41 @rootcint -f $(DICT) -c $(HDRS)
108615fc 42
352eb143 43$(OBJDIR)/%.o : %.cxx
44 $(CXX) $(CXXFLAGS) -c -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -o $@ $<
108615fc 45
352eb143 46$(OBJDIR) :
47 test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
108615fc 48
352eb143 49clean :
50 rm -f $(OBJDIR)/*.o
51 rm -f $(LEVEL3)/lib_$(USERNAME)/libAliL3.so
52 rm $(DICT) $(DICTH)