]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/misc/Makefile
Class for fixed point operations.
[u/mrichter/AliRoot.git] / HLT / misc / Makefile
1 #$Id$
2 ###########################
3 # Makefile for HLT code.  #
4 #                         #
5 # Author: Anders Vestbo   #                    
6 # changes by C. Loizides  #
7 ###########################
8
9 ifndef TOPDIR
10 TOPDIR = `pwd`/..
11 endif
12
13 include $(TOPDIR)/Makefile.conf
14
15 DEFSTR = -Dno_root
16 OBJDIR = lib_alone
17 INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
18
19 ifeq ($(USEPACKAGE),ROOT) 
20 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
21 DEFSTR = -Duse_root
22 OBJDIR = lib_ROOT
23 endif
24
25 ifeq ($(USEPACKAGE),ALIROOT)
26 INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
27 DEFSTR = -Duse_aliroot
28 OBJDIR = lib
29 endif
30
31 ifdef DO_MC
32 DEFSTR += -Ddo_mc
33 endif
34
35 ifndef NOLOGGING
36 DEFSTR += -Duse_logging
37 endif
38
39 DEFSTR += $(EXTRADEF)
40
41 ifdef MLUCDIR
42 INCLUDES += -I$(MLUCDIR)/include
43 else
44 INCLUDES += -I/prog/alice/level3/kip/MLUC/include
45 endif
46
47 SRCS    = AliTransBit.cxx AliL3AltroMemHandler.cxx AliL3DataHandler.cxx AliL3VHDLClusterFinder.cxx
48
49 DICT  = AliL3MiscCint-$(USEPACKAGE).cxx
50 DICTH = AliL3MiscCint-$(USEPACKAGE).h
51 DICTO = $(OBJDIR)/AliL3MiscCint-$(USEPACKAGE).o
52
53 HDRS = $(SRCS:.cxx=.h) AliL3MiscLinkDef.h
54 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
55
56 ifeq ($(OBJDIR),lib_alone)
57 HDRS = $(SRCS:.cxx=.h) 
58 OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS))
59 endif
60
61
62 LEVELSO = $(LIBDIR)/libAliL3Misc.so
63
64 all : $(OBJDIR) $(LIBDIR) $(LEVELSO) 
65
66 $(LEVELSO) : $(OBJS)
67         $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
68
69 $(DICT) : $(HDRS)
70         @echo "Generating dictionary..."
71         @rootcint -f $(DICT) -c $(INCLUDES) $(HDRS)
72
73 $(OBJDIR)/%.o : %.cxx 
74         $(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
75
76 $(OBJDIR) : 
77         test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
78
79 $(LIBDIR) :
80         test ! -e $(LIBDIR) && mkdir -p $(LIBDIR)
81
82 clean :
83         rm -f $(OBJDIR)/*.o
84         rm -f $(LIBDIR)/libAliL3Misc.so
85         rm -f $(DICT) $(DICTH) 
86
87 so :
88         rm -f $(LIBDIR)/libAliL3Misc.so