]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/comp/Makefile
41a5384caa85401af0fd58b4659c59e5d1d2cd7f
[u/mrichter/AliRoot.git] / HLT / comp / Makefile
1 #
2 # Makefile for ROOT version of HLT code.
3 #
4 # Author: Anders Vestbo                       
5 #
6
7 CXX         = g++
8 LD          = g++
9 CXXFLAGS    = -O2 -Wall -fPIC -Woverloaded-virtual
10 LDFLAGS     = -O2
11 SOFLAGS     = -shared
12
13 TOPDIR = $(HOME)/level3code
14 OBJDIR = tgt_Linux
15
16 SRCS    = AliL3Modeller.cxx AliL3ModelTrack.cxx
17
18 DICT = AliL3CompCint.cxx
19 DICTH = AliL3CompCint.h
20 DICTO = $(OBJDIR)/AliL3CompCint.o
21
22 HDRS = $(SRCS:.cxx=.h) AliL3CompLinkDef.h
23
24 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
25
26 LEVELSO = $(LEVEL3)/lib_$(USERNAME)/libAliL3Comp.so
27
28 all : $(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
45 clean :
46         rm -f $(OBJDIR)/*.o
47         rm -f $(LEVEL3)/lib_$(USERNAME)/libAliL3Comp.so
48         rm $(DICT) $(DICTH) 
49 so :
50         rm -f $(LEVEL3)/lib_$(USERNAME)/libAliL3Comp.so