git://git.uio.no
/
u
/
mrichter
/
AliRoot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(ALIHLT_TOPDIR)/BASE added to include paths, (ALICE_ROOT)/RAW added to avoid compile...
[u/mrichter/AliRoot.git]
/
HLT
/
Makefile.rules
diff --git
a/HLT/Makefile.rules
b/HLT/Makefile.rules
index 910a4b11d239cfb8087474e80109ea0c274902bc..cee7c148e2654353ac11bd300de8fc64d4140d5a 100644
(file)
--- a/
HLT/Makefile.rules
+++ b/
HLT/Makefile.rules
@@
-1,18
+1,20
@@
+# -*- Mode: Makefile -*-
#$Id$
################################
# Makefile.rules for HLT code. #
# #
# Author: Anders Vestbo, #
#$Id$
################################
# Makefile.rules for HLT code. #
# #
# Author: Anders Vestbo, #
-# Constantin Loizide
#
+# Constantin Loizide
s
#
################################
#----------------------------------------------------
################################
#----------------------------------------------------
-# !!! Dont change anything here !!!
+# !!! Dont change anything here !!!
+# !!! and if you have to send a mail to authors !!!
#----------------------------------------------------
DEFSTR = -Dno_root
OBJDIR = lib_alone
#----------------------------------------------------
DEFSTR = -Dno_root
OBJDIR = lib_alone
-INCLUDES = -I$(ALIHLT_TOPDIR)/
hough -I$(ALIHLT_TOPDIR)/src -I$(ALIHLT_TOPDIR)/comp -I$(ALIHLT_TOPDIR)/misc -I$(ALIHLT_TOPDIR)/trigger
+INCLUDES = -I$(ALIHLT_TOPDIR)/
src -I$(ALIHLT_TOPDIR)/hough -I$(ALIHLT_TOPDIR)/comp -I$(ALIHLT_TOPDIR)/misc -I$(ALIHLT_TOPDIR)/trigger -I$(ALIHLT_TOPDIR)/kalman -I$(ALIHLT_TOPDIR)/BASE
ifeq ($(ALIHLT_USEPACKAGE),ROOT)
INCLUDES += -I$(ROOTSYS)/include
ifeq ($(ALIHLT_USEPACKAGE),ROOT)
INCLUDES += -I$(ROOTSYS)/include
@@
-25,6
+27,10
@@
endif
ifeq ($(ALIHLT_USEPACKAGE),ALIROOT)
INCLUDES += -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
DEFSTR = -Duse_aliroot -Duse_root
ifeq ($(ALIHLT_USEPACKAGE),ALIROOT)
INCLUDES += -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
DEFSTR = -Duse_aliroot -Duse_root
+ifeq ($(USENEWIO),1)
+DEFSTR += -Duse_newio
+INCLUDES += -I$(ALICE_ROOT)/RAW
+endif
OBJDIR = lib
ROOTSTR := $(shell $(ROOTSYS)/bin/root -n -b -q | grep Version | cut -b 17-25 | cut -d" " -f1)
DEFSTR += -DROOTVERSION=\"$(ROOTSTR)\"
OBJDIR = lib
ROOTSTR := $(shell $(ROOTSYS)/bin/root -n -b -q | grep Version | cut -b 17-25 | cut -d" " -f1)
DEFSTR += -DROOTVERSION=\"$(ROOTSTR)\"
@@
-35,12
+41,19
@@
else
ALIROOTSTR = "Unknown"
endif
DEFSTR += -DALIROOTVERSION=\"$(ALIROOTSTR)\"
ALIROOTSTR = "Unknown"
endif
DEFSTR += -DALIROOTVERSION=\"$(ALIROOTSTR)\"
+ifeq ($(ALIROOTST),HEAD)
+DEFSTR += -Duse_reconstruction
+endif
endif
ifeq ($(DOMC),1)
DEFSTR += -Ddo_mc
endif
endif
ifeq ($(DOMC),1)
DEFSTR += -Ddo_mc
endif
+ifeq ($(USEROWHOUGH),1)
+DEFSTR += -DROWHOUGHPARAMS
+endif
+
ifneq ($(NOLOGGING),1)
DEFSTR += -Duse_logging
ifdef ALIHLT_MLUCDIR
ifneq ($(NOLOGGING),1)
DEFSTR += -Duse_logging
ifdef ALIHLT_MLUCDIR
@@
-50,17
+63,12
@@
INCLUDES += -I/prog/alice/level3/kip/MLUC/include
endif
endif
endif
endif
-ifeq ($(ASVVERSION),1)
-DEFSTR += -DASVVERSION
-endif
-
-DEFSTR += $(EXTRADEF)
+DEFSTR += -D$(ARCH) $(EXTRADEF)
DICT = $(MODNAME)Cint-$(ALIHLT_USEPACKAGE).cxx
DICTH = $(MODNAME)Cint-$(ALIHLT_USEPACKAGE).h
DICTO = $(OBJDIR)/$(MODNAME)Cint-$(ALIHLT_USEPACKAGE).o
DICT = $(MODNAME)Cint-$(ALIHLT_USEPACKAGE).cxx
DICTH = $(MODNAME)Cint-$(ALIHLT_USEPACKAGE).h
DICTO = $(OBJDIR)/$(MODNAME)Cint-$(ALIHLT_USEPACKAGE).o
-
ifndef OBJS
ifeq ($(OBJDIR),lib_alone)
HDRS = $(SRCS:.cxx=.h)
ifndef OBJS
ifeq ($(OBJDIR),lib_alone)
HDRS = $(SRCS:.cxx=.h)
@@
-71,23
+79,41
@@
OBJS = $(patsubst %.cxx,$(OBJDIR)/%.o,$(SRCS)) $(DICTO)
endif
endif
endif
endif
-ALIHLT_LIBSO = $(ALIHLT_LIBDIR)/lib$(MODNAME).so
+STATICOBJS = $(patsubst %.o,%.sto,$(OBJS))
+
+ALIHLT_LIBSO = $(ALIHLT_LIBDIR)/lib$(MODNAME).so
+ALIHLT_DYLIB = $(ALIHLT_LIBDIR)/lib$(MODNAME).dylib
+ALIHLT_STATIC = $(ALIHLT_LIBDIR)/lib$(MODNAME).a
-#Default Target
s
-#
+#Default Target
+default: so
-all: $(OBJDIR) $(ALIHLT_LIBDIR) $(ALIHLT_LIBSO)
+libs: so static
+
+so: $(OBJDIR) $(ALIHLT_LIBDIR) $(ALIHLT_LIBSO)
+
+static: $(OBJDIR) $(ALIHLT_LIBDIR) $(ALIHLT_STATIC)
$(ALIHLT_LIBSO): $(OBJS)
$(ALIHLT_LIBSO): $(OBJS)
- $(LD) $(SOFLAGS) $(LDFLAGS) $^ -o $@
+ifeq ($(ARCH),macosx)
+ $(LD) $(DYFLAGS) $^ $(LDFLAGS) -o $(ALIHLT_DYLIB)
+endif
+ $(LD) $(SOFLAGS) $^ $(LDFLAGS) -o $@
+
+$(ALIHLT_STATIC): $(STATICOBJS)
+ $(LDSTATIC) $(STATICFLAGS) $@ $^
$(DICT): $(HDRS)
@echo "Generating dictionary..."
$(DICT): $(HDRS)
@echo "Generating dictionary..."
- rootcint -f $(DICT) -c $(INCLUDES) -DGCCVERSION=$(GCCVERSION) $(DEFSTR) -include AliL3StandardIncludes.h $(HDRS)
+ rootcint -f $(DICT) -c $(CINTCXXFLAGS) $(INCLUDES) \
+ $(DEFSTR) -include AliL3StandardIncludes.h $(HDRS)
$(OBJDIR)/%.o: %.cxx
$(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
$(OBJDIR)/%.o: %.cxx
$(CXX) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
+$(OBJDIR)/%.sto: %.cxx
+ $(CXX) $(PROFILEFLAGS) $(CXXFLAGS) $(DEFSTR) -c $(INCLUDES) -o $@ $<
+
$(OBJDIR):
test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
$(OBJDIR):
test ! -e $(OBJDIR) && mkdir -p $(OBJDIR)
@@
-103,10
+129,11
@@
print:
@echo "ALIHLT_TOPDIR = $(ALIHLT_TOPDIR)"
@echo "ALIHLT_MLUCDIR = $(ALIHLT_MLUCDIR)"
@echo "ALIHLT_USEPACKAGE = $(ALIHLT_USEPACKAGE)"
@echo "ALIHLT_TOPDIR = $(ALIHLT_TOPDIR)"
@echo "ALIHLT_MLUCDIR = $(ALIHLT_MLUCDIR)"
@echo "ALIHLT_USEPACKAGE = $(ALIHLT_USEPACKAGE)"
+ @echo "ALIHLT_USENEWIO = $(ALIHLT_USENEWIO)"
@echo "ALIHLT_NOLOGGING = $(ALIHLT_NOLOGGING)"
@echo "ALIHLT_DOMC = $(ALIHLT_DOMC)"
@echo "ALIHLT_NOLOGGING = $(ALIHLT_NOLOGGING)"
@echo "ALIHLT_DOMC = $(ALIHLT_DOMC)"
- @echo "ALIHLT_HAVEASV = $(ALIHLT_HAVEASV)"
@echo "ALIHLT_ALIDETECT = $(ALIHLT_ALIDETECT)"
@echo "ALIHLT_ALIDETECT = $(ALIHLT_ALIDETECT)"
+ @echo "ALIHLT_ROWHOUGH = $(ALIHLT_ROWHOUGH)"
@echo "ROOTSTR = $(ROOTSTR)"
@echo "ALIROOTSTR = $(ALIROOTSTR)"
@echo "ROOTSTR = $(ROOTSTR)"
@echo "ALIROOTSTR = $(ALIROOTSTR)"
@@
-120,13
+147,15
@@
printall: print
@echo "OBJS = $(OBJS)"
clean:
@echo "OBJS = $(OBJS)"
clean:
- rm -f $(OBJDIR)/*.o
- rm -f $(ALIHLT_LIBSO)
+ rm -f $(OBJDIR)/*.o $(OBJDIR)/*.sto
rm -f $(DICT) $(DICTH)
rm -rf $(OBJDIR)
rm -f $(DICT) $(DICTH)
rm -rf $(OBJDIR)
-so:
- rm -f $(ALIHLT_LIBSO)
+cleanlib:
+ rm -f $(ALIHLT_LIBSO) $(ALIHLT_DYLIB) $(ALIHLT_STATIC)
+
+realclean: clean cleanlib
+
+.phony: help print printall clean so realclean
-.phony: print clean so