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