]>
Commit | Line | Data |
---|---|---|
01ee3a4e | 1 | #$Id$ |
2 | ########################### | |
3 | # Makefile for HLT code. # | |
4 | # # | |
5 | # Author: Anders Vestbo # | |
6 | ########################### | |
7 | ||
8 | #Define whether you want to run with ALIROOT or only ROOT | |
9 | #Only one of them should be defined | |
10 | ifndef USEPACKAGE | |
01ee3a4e | 11 | USEPACKAGE = ALIROOT |
c1123a44 | 12 | #USEPACKAGE = ROOT |
13 | #USEPACKAGE = STANDALONE | |
01ee3a4e | 14 | endif |
15 | ||
16 | #Specify the directory where the level3code tree is located. | |
17 | ifndef TOPDIR | |
18 | TOPDIR = $(HOME)/workcode/level3code | |
19 | endif | |
d2e100c5 | 20 | |
21 | #Define directory to contain additional L3 code, such as logging classes. | |
22 | ifndef LEVEL3 | |
23 | LEVEL3 = /prog/alice/level3 | |
24 | endif | |
01ee3a4e | 25 | ifndef LIBDIR |
26 | LIBDIR = $(LEVEL3)/lib_$(USERNAME) | |
27 | endif | |
01ee3a4e | 28 | |
29 | #Switch on/off HLT logging classes | |
5672e807 | 30 | #NOLOGGING = 1 |
01ee3a4e | 31 | |
32 | #Switch on/off saving MC data through the chain. | |
33 | #This will only have an effect if you are running with aliroot. | |
47b00675 | 34 | #DO_MC = 1 |
01ee3a4e | 35 | |
748e01f4 | 36 | #Switch of if you are not using patched AliTPC |
37 | #This will only have an effect if you are running with aliroot. | |
38 | ASVVERSION = 1 | |
39 | ||
5672e807 | 40 | #If you are compiling on the alpha, use this flag: |
41 | #EXTRACXXFLAGS += -mcpu=ev6 | |
42 | ||
47b00675 | 43 | CXX = g++ |
44 | LD = g++ | |
45 | GCCVERSION = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1) | |
b1f97365 | 46 | |
47b00675 | 47 | CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION) |
48 | #CXXGCC3FLAGS += -pedantic | |
49 | #CXXGCC3FLAGS += -Wno-deprecated | |
50 | ||
51 | CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) | |
52 | LDFLAGS = -O2 $(EXTRALDFLAGS) | |
53 | SOFLAGS = -shared |