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