]>
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 |
10 | ARCH = $(shell uname) | |
11 | ||
3e87ef69 | 12 | #Specify the directory where the level3code tree is located. |
13 | ifndef ALIHLT_TOPDIR | |
14 | ALIHLT_TOPDIR = $(HOME)/workcode/level3code | |
01ee3a4e | 15 | endif |
16 | ||
3e87ef69 | 17 | #Define directory to contain additional hlt code, such as logging classes. |
18 | ifndef ALIHLT_BASEDIR | |
19 | ALIHLT_BASEDIR = /prog/alice/level3 | |
01ee3a4e | 20 | endif |
d2e100c5 | 21 | |
3e87ef69 | 22 | #Define directory where libs will be stored |
23 | ifndef ALIHLT_LIBDIR | |
24 | ALIHLT_LIBDIR = $(ALIHLT_BASEDIR)/lib_$(USER) | |
d2e100c5 | 25 | endif |
3e87ef69 | 26 | |
27 | #Define whether you want to run with ALIROOT or only ROOT | |
28 | #Only one of them should be defined | |
29 | ifndef ALIHLT_USEPACKAGE | |
30 | ALIHLT_USEPACKAGE = ALIROOT | |
31 | #ALIHLT_USEPACKAGE = ROOT | |
32 | #ALIHLT_USEPACKAGE = STANDALONE | |
01ee3a4e | 33 | endif |
01ee3a4e | 34 | |
3e87ef69 | 35 | #Switch off special HLT logging classes |
36 | ifeq ($(ALIHLT_NOLOGGING),true) | |
37 | NOLOGGING = 1 | |
38 | endif | |
01ee3a4e | 39 | |
3e87ef69 | 40 | #Switch on saving MC data through the chain. |
01ee3a4e | 41 | #This will only have an effect if you are running with aliroot. |
3e87ef69 | 42 | ifeq ($(ALIHLT_DOMC),true) |
43 | DOMC = 1 | |
44 | endif | |
01ee3a4e | 45 | |
3e87ef69 | 46 | #Switch on ALIROOT version detection by cvs command |
47 | ifeq ($(ALIHLT_ALIDETECT),true) | |
48 | USECVS = 1 | |
49 | endif | |
50 | ||
b2a02bce | 51 | #switch on NEWIO if aliroot version needs it |
52 | ifndef ALIHLT_USENEWIO | |
53 | ALIHLT_USENEWIO = false | |
54 | ifeq ($(ALICE_LEVEL),ali-head) | |
55 | ALIHLT_USENEWIO = true | |
56 | endif | |
57 | ifeq ($(ALICE_LEVEL),ali-v4-01-00) | |
58 | ALIHLT_USENEWIO = true | |
59 | endif | |
60 | endif | |
61 | ||
62 | ifeq ($(ALIHLT_USENEWIO),true) | |
63 | USENEWIO = 1 | |
64 | endif | |
65 | ||
66 | ||
3e87ef69 | 67 | #---------------------------------------------------- |
68 | #Some compiler flags or defines: You can use your | |
69 | #own setting by defining them outside (make -e) | |
70 | #---------------------------------------------------- | |
5672e807 | 71 | |
3e87ef69 | 72 | GCCVERSION = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1 | cut -d" " -f1) |
47b00675 | 73 | CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION) |
5a31e9df | 74 | PROFILEFLAGS = -g -pg |
1f1942b8 | 75 | |
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 | |
5a31e9df | 89 | LDSTATIC = ar |
90 | STATICFLAGS = rucs | |
1f1942b8 | 91 | else |
92 | CXX = g++ | |
5a31e9df | 93 | CXXFLAGS = -O2 -fPIC -Wall $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) |
1f1942b8 | 94 | LD = $(CXX) |
47b00675 | 95 | LDFLAGS = -O2 $(EXTRALDFLAGS) |
96 | SOFLAGS = -shared | |
5a31e9df | 97 | LDSTATIC = ar |
98 | STATICFLAGS = rucs | |
1f1942b8 | 99 | endif |