]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/Makefile.conf
added cdb stuff
[u/mrichter/AliRoot.git] / HLT / Makefile.conf
index 2f7b031ba2c8046b81a6e2538960eba0d2514834..d2dc1e54b29a8dbb3ba1513fa212de64de17ddc7 100644 (file)
@@ -1,3 +1,4 @@
+# -*- Mode: Makefile -*-
 #$Id$
 ################################
 # Makefile.conf for HLT code.  #
@@ -6,6 +7,13 @@
 #         Constantin Loizide   #                    
 ################################
 
+#Added for MACOSX
+ARCH := $(shell root-config --arch)
+
+ifeq ($(ARCH),macosxxlc)
+ARCH := macosx
+endif
+
 #Specify the directory where the level3code tree is located.
 ifndef ALIHLT_TOPDIR
 ALIHLT_TOPDIR = $(HOME)/workcode/level3code
@@ -45,23 +53,49 @@ ifeq ($(ALIHLT_ALIDETECT),true)
 USECVS = 1
 endif
 
+#switch on NEWIO if aliroot version needs it
+ifndef ALIHLT_USENEWIO
+ALIHLT_USENEWIO = false
+ifeq ($(ALICE_LEVEL),ali-head)
+ALIHLT_USENEWIO = true
+endif
+endif
+
+ifeq ($(ALIHLT_ROWHOUGH),true)
+USEROWHOUGH = 1
+endif
+
+ifeq ($(ALIHLT_USENEWIO),true)
+USENEWIO = 1
+endif
+
 #----------------------------------------------------
 #Some compiler flags or defines: You can use your
 #own setting by defining them outside (make -e)
 #----------------------------------------------------
 
+ifeq ($(ARCH),Darwin)
+FINKDIR         = /sw
+CXX             = g++
+CXXFLAGS        = -O -pipe -Wall -fsigned-char $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
+CINTCXXFLAGS  = -pipe -W -Wall -fsigned-char \
+                -DG__REGEXP  -DG__UNIX -DG__SHAREDLIB \
+                -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL
+LD              = $(CXX)
+#SOFLAGS         = -bundle -Xlinker -bind_at_load -undefined suppress
+SOFLAGS         = -bundle -undefined suppress
+DYFLAGS         = -dynamiclib -undefined suppress \
+                  -compatibility_version 1 -current_version 1.0.0 
+LDFLAGS         = -O $(EXTRALDFLAGS) -L/sw/lib -ldl
+else
 CXX          = g++
+CXXFLAGS     = -O2 -fPIC -Wall $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) 
 LD           = $(CXX)
-GCCVERSION   = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1 | cut -d" " -f1)
-
-CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION)
-#CXXGCC3FLAGS += -pedantic
-#CXXGCC3FLAGS += -Wno-deprecated
-#CXXGCC3FLAGS += -Woverloaded-virtual
-
-#If you are compiling on the alpha, use this flag:
-#EXTRACXXFLAGS += -mcpu=ev6
-
-CXXFLAGS     = -O2 -Wall -fPIC $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) 
 LDFLAGS      = -O2 $(EXTRALDFLAGS)
 SOFLAGS      = -shared
+endif
+
+#static flags for profiling
+PROFILEFLAGS = -g -pg
+LDSTATIC     = ar
+STATICFLAGS  = rucs