Minor changes at new Top Makefile.
[u/mrichter/AliRoot.git] / HLT / misc / Makefile
CommitLineData
1a3c8f6e 1#$Id$
2###########################
3# Makefile for HLT code. #
4# #
5# Author: Anders Vestbo #
6###########################
7
17d8d094 8ifndef TOPDIR
9TOPDIR = `pwd`/..
1a3c8f6e 10endif
11
17d8d094 12include $(TOPDIR)/Makefile.conf
1a3c8f6e 13
17d8d094 14DEFSTR = -Dno_root
1a3c8f6e 15
16ifeq ($(USEPACKAGE),ROOT)
17INCLUDES = -I$(ROOTSYS)/include -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp
18DEFSTR = -Duse_root
74eabe5f 19OBJDIR = lib_ROOT
1a3c8f6e 20endif
21
22ifeq ($(USEPACKAGE),ALIROOT)
23INCLUDES = -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
24DEFSTR = -Duse_aliroot
25endif
26
17d8d094 27ifdef DO_MC
28DEFSTR += -Ddo_mc
29endif
1a3c8f6e 30
b419a833 31ifndef NOLOGGING
1a3c8f6e 32DEFSTR += -Duse_logging
b419a833 33endif
1a3c8f6e 34
35ifdef MLUCDIR
36INCLUDES += -I$(MLUCDIR)/include
37else
38INCLUDES += -I/prog/alice/level3/kip/MLUC/include
39endif
40
8e1f5064 41SRCS = AliTransBit.cxx AliL3AltroMemHandler.cxx AliL3DataHandler.cxx AliL3VHDLClusterFinder.cxx
1a3c8f6e 42
43DICT = AliL3MiscCint.cxx
44DICTH = AliL3MiscCint.h
45DICTO = $(OBJDIR)/AliL3MiscCint.o
46
47HDRS = $(SRCS:.cxx=.h) AliL3MiscLinkDef.h
48OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
49
50LEVELSO = $(LIBDIR)/libAliL3Misc.so
51
52all : $(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
70clean :
71 rm -f $(OBJDIR)/*.o
72 rm -f $(LIBDIR)/libAliL3Misc.so
74eabe5f 73 rm -f $(DICT) $(DICTH)
1a3c8f6e 74
75so :
76 rm -f $(LIBDIR)/libAliL3Misc.so
77
78
79
80
81
82
83
84
85
86
87
88
89
90
1a3c8f6e 91
92
93
94
95
96
97
98