]>
Commit | Line | Data |
---|---|---|
01ee3a4e | 1 | #$Id$ |
3e87ef69 | 2 | ################################ |
3 | # Makefile.conf for HLT code. # | |
4 | # # | |
5 | # Author: Anders Vestbo, # | |
6 | # Constantin Loizide # | |
7 | ################################ | |
01ee3a4e | 8 | |
1f1942b8 | 9 | #Added for MACOSX |
86b74d5e | 10 | ARCH := $(shell root-config --arch) |
11 | ||
12 | ifeq ($(ARCH),macosxxlc) | |
13 | ARCH := macosx | |
14 | endif | |
1f1942b8 | 15 | |
3e87ef69 | 16 | #Specify the directory where the level3code tree is located. |
17 | ifndef ALIHLT_TOPDIR | |
18 | ALIHLT_TOPDIR = $(HOME)/workcode/level3code | |
01ee3a4e | 19 | endif |
20 | ||
3e87ef69 | 21 | #Define directory to contain additional hlt code, such as logging classes. |
22 | ifndef ALIHLT_BASEDIR | |
23 | ALIHLT_BASEDIR = /prog/alice/level3 | |
01ee3a4e | 24 | endif |
d2e100c5 | 25 | |
3e87ef69 | 26 | #Define directory where libs will be stored |
27 | ifndef ALIHLT_LIBDIR | |
28 | ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER) | |
d2e100c5 | 29 | endif |
3e87ef69 | 30 | |
31 | #Define whether you want to run with ALIROOT or only ROOT | |
32 | #Only one of them should be defined | |
33 | ifndef ALIHLT_USEPACKAGE | |
34 | ALIHLT_USEPACKAGE = ALIROOT | |
35 | #ALIHLT_USEPACKAGE = ROOT | |
36 | #ALIHLT_USEPACKAGE = STANDALONE | |
01ee3a4e | 37 | endif |
01ee3a4e | 38 | |
3e87ef69 | 39 | #Switch off special HLT logging classes |
40 | ifeq ($(ALIHLT_NOLOGGING),true) | |
41 | NOLOGGING = 1 | |
42 | endif | |
01ee3a4e | 43 | |
3e87ef69 | 44 | #Switch on saving MC data through the chain. |
01ee3a4e | 45 | #This will only have an effect if you are running with aliroot. |
3e87ef69 | 46 | ifeq ($(ALIHLT_DOMC),true) |
47 | DOMC = 1 | |
48 | endif | |
01ee3a4e | 49 | |
3e87ef69 | 50 | #Switch on ALIROOT version detection by cvs command |
51 | ifeq ($(ALIHLT_ALIDETECT),true) | |
52 | USECVS = 1 | |
53 | endif | |
54 | ||
b2a02bce | 55 | #switch on NEWIO if aliroot version needs it |
56 | ifndef ALIHLT_USENEWIO | |
57 | ALIHLT_USENEWIO = false | |
58 | ifeq ($(ALICE_LEVEL),ali-head) | |
59 | ALIHLT_USENEWIO = true | |
60 | endif | |
b2a02bce | 61 | endif |
0bd0c1ef | 62 | |
63 | ifeq ($(ALIHLT_ROWHOUGH),true) | |
64 | USEROWHOUGH = 1 | |
b2a02bce | 65 | endif |
66 | ||
67 | ifeq ($(ALIHLT_USENEWIO),true) | |
68 | USENEWIO = 1 | |
69 | endif | |
70 | ||
3e87ef69 | 71 | #---------------------------------------------------- |
72 | #Some compiler flags or defines: You can use your | |
73 | #own setting by defining them outside (make -e) | |
74 | #---------------------------------------------------- | |
5672e807 | 75 | |
1f1942b8 | 76 | ifeq ($(ARCH),Darwin) |
77 | FINKDIR = /sw | |
78 | CXX = g++ | |
79 | CXXFLAGS = -O -pipe -Wall -fsigned-char $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) | |
5a31e9df | 80 | CINTCXXFLAGS = -pipe -W -Wall -fsigned-char \ |
81 | -DG__REGEXP -DG__UNIX -DG__SHAREDLIB \ | |
82 | -DG__ROOT -DG__REDIRECTIO -DG__OSFDLL | |
1f1942b8 | 83 | LD = $(CXX) |
84 | #SOFLAGS = -bundle -flat_namespace -Xlinker -bind_at_load -undefined suppress | |
85 | SOFLAGS = -bundle -flat_namespace -undefined suppress | |
86 | DYFLAGS = -dynamiclib -flat_namespace -undefined suppress \ | |
87 | -compatibility_version 1 -current_version 1.0.0 | |
88 | LDFLAGS = -O $(EXTRALDFLAGS) -L/sw/lib -ldl | |
1f1942b8 | 89 | else |
90 | CXX = g++ | |
5a31e9df | 91 | CXXFLAGS = -O2 -fPIC -Wall $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) |
1f1942b8 | 92 | LD = $(CXX) |
47b00675 | 93 | LDFLAGS = -O2 $(EXTRALDFLAGS) |
94 | SOFLAGS = -shared | |
1f1942b8 | 95 | endif |
0bd0c1ef | 96 | |
97 | #static flags for profiling | |
98 | PROFILEFLAGS = -g -pg | |
99 | LDSTATIC = ar | |
100 | STATICFLAGS = rucs |