]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/programs/Makefile
Added entry for runtracker. Also some changes in order to use this
[u/mrichter/AliRoot.git] / HLT / programs / Makefile
index 878544ec77bacc5a41a049d5aebcdd734f9127e2..1eb969184410927bbb15435505f56715ae231857 100644 (file)
@@ -16,9 +16,11 @@ DEFSTR = -Dno_root
 INCLUDES = -I$(TOPDIR)/hough -I$(TOPDIR)/src -I$(TOPDIR)/comp -I$(TOPDIR)/misc
 LIBS = -L$(LIBDIR) -lAliL3 -lAliL3Hough -lAliL3Comp -lAliL3Misc 
 
+ifneq ($(USEPACKAGE),STANDALONE)
 ROOTCFLAGS := $(shell root-config --cflags)
 ROOTLIBS   := $(shell root-config --libs)
 ROOTGLIBS  := $(shell root-config --glibs)
+endif
 
 ifeq ($(USEPACKAGE),ROOT) 
 DEFSTR = -Duse_root
@@ -36,6 +38,12 @@ RLIBS = $(ROOTLIBS) -lMinuit -lEG
 LIBS += $(ALICELIBS) $(RLIBS)
 endif
 
+ifeq ($(USEPACKAGE),STANDALONE)
+DEFSTR = -Dno_root
+RLIBS =  -lpthread -lm -ldl -rdynamic
+LIBS += $(RLIBS)
+endif
+
 ifdef DO_MC
 DEFSTR += -Ddo_mc
 endif
@@ -59,7 +67,7 @@ DEFSTR += $(EXTRADEF)
 CXXFLAGS = -O2 -Wall -ggdb $(EXTRACXXFLAGS) $(INCLUDES)
 LDFLAGS  = -O2 $(EXTRALDFLAGS) $(LIBS)
 
-PRGS   = runit read  runvhdlcf runhough runvhdlhough
+PRGS   = runit read  runvhdlcf runhough runvhdlhough runtracker
 UTILS   = convbin speedtest gettransform
 
 
@@ -93,6 +101,9 @@ convbin : ali2raw.o
 gettransform : gettransform.o
        $(LD) $< $(LDFLAGS) -o $@
 
+runtracker : runtracker.o
+       $(LD) $< $(LDFLAGS) -o $@
+
 speedtest : speedtest.cxx
        g++ -O -Wall -fPIC -ffast-math $(CXXFLAGS) speedtest.cxx -o speedtest
        # g++ -O -Wall -fPIC -mcpu=ev6 $(CXXFLAGS) speedtest.cxx -o speedtest