]>
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 | |
20 | ifndef LIBDIR | |
21 | LIBDIR = $(LEVEL3)/lib_$(USERNAME) | |
22 | endif | |
01ee3a4e | 23 | |
24 | #Switch on/off HLT logging classes | |
47b00675 | 25 | NOLOGGING = 1 |
01ee3a4e | 26 | |
27 | #Switch on/off saving MC data through the chain. | |
28 | #This will only have an effect if you are running with aliroot. | |
47b00675 | 29 | #DO_MC = 1 |
01ee3a4e | 30 | |
47b00675 | 31 | CXX = g++ |
32 | LD = g++ | |
33 | GCCVERSION = $(shell $(CXX) --version | head -n 1 | cut -d" " -f 3 | cut -d. -f 1) | |
b1f97365 | 34 | |
47b00675 | 35 | CXXGCC3FLAGS = -DGCCVERSION=$(GCCVERSION) |
36 | #CXXGCC3FLAGS += -pedantic | |
37 | #CXXGCC3FLAGS += -Wno-deprecated | |
38 | ||
39 | CXXFLAGS = -O2 -Wall -fPIC -Woverloaded-virtual $(CXXGCC3FLAGS) $(EXTRACXXFLAGS) | |
40 | LDFLAGS = -O2 $(EXTRALDFLAGS) | |
41 | SOFLAGS = -shared |