1 # -*- Mode: Makefile -*-
3 ################################
4 # Makefile.conf for HLT code. #
6 # Author: Anders Vestbo, #
8 ################################
11 ARCH := $(shell root-config --arch)
13 ifeq ($(ARCH),macosxxlc)
17 #Specify the directory where the level3code tree is located.
19 ALIHLT_TOPDIR = $(HOME)/workcode/level3code
22 #Define directory to contain additional hlt code, such as logging classes.
24 ALIHLT_BASEDIR = /prog/alice/level3
27 #Define directory where libs will be stored
29 ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER)
32 #Define whether you want to run with ALIROOT or only ROOT
33 #Only one of them should be defined
34 ifndef ALIHLT_USEPACKAGE
35 ALIHLT_USEPACKAGE = ALIROOT
36 #ALIHLT_USEPACKAGE = ROOT
37 #ALIHLT_USEPACKAGE = STANDALONE
40 #Switch off special HLT logging classes
41 ifeq ($(ALIHLT_NOLOGGING),true)
45 #Switch on saving MC data through the chain.
46 #This will only have an effect if you are running with aliroot.
47 ifeq ($(ALIHLT_DOMC),true)
51 #Switch on ALIROOT version detection by cvs command
52 ifeq ($(ALIHLT_ALIDETECT),true)
56 #switch on NEWIO if aliroot version needs it
57 ifndef ALIHLT_USENEWIO
58 ALIHLT_USENEWIO = false
59 ifeq ($(ALICE_LEVEL),ali-head)
60 ALIHLT_USENEWIO = true
64 ifeq ($(ALIHLT_ROWHOUGH),true)
68 ifeq ($(ALIHLT_USENEWIO),true)
72 #----------------------------------------------------
73 #Some compiler flags or defines: You can use your
74 #own setting by defining them outside (make -e)
75 #----------------------------------------------------
80 CXXFLAGS = -O -pipe -Wall -fsigned-char $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
81 CINTCXXFLAGS = -pipe -W -Wall -fsigned-char \
82 -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \
83 -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL
85 #SOFLAGS = -bundle -Xlinker -bind_at_load -undefined suppress
86 SOFLAGS = -bundle -undefined suppress
87 DYFLAGS = -dynamiclib -undefined suppress \
88 -compatibility_version 1 -current_version 1.0.0
89 LDFLAGS = -O $(EXTRALDFLAGS) -L/sw/lib -ldl
92 CXXFLAGS = -O2 -fPIC -Wall $(CXXGCC3FLAGS) $(EXTRACXXFLAGS)
94 LDFLAGS = -O2 $(EXTRALDFLAGS)
98 #static flags for profiling