]>
Commit | Line | Data |
---|---|---|
d95a3ef8 | 1 | # -*- mode: makefile -*- |
5c0f7251 | 2 | # Makefile to build AliRoot for Linux |
3 | ||
4 | # System dependent commands | |
5 | ||
6 | XARGS = xargs -r | |
7 | ||
5c0f7251 | 8 | # Global optimisation |
9 | OPT = -O -g | |
10 | NOOPT = -g | |
11 | ||
12 | CXXOPT = $(OPT) | |
13 | CXXNOOPT = $(NOOPT) | |
14 | COPT = $(OPT) | |
15 | FOPT = $(OPT) | |
16 | ||
17 | # CERNLIB defines | |
18 | CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ | |
19 | CLIBCXXOPTS = | |
20 | CLIBCOPT = | |
21 | CLIBFOPT = $(CLIBDEFS) | |
22 | ||
23 | # Compiler flags | |
ad2f2da2 | 24 | CXXFLAGS = $(OPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL |
25 | CXXFLAGSNO = $(NOOPT) -Wall -pipe -Woverloaded-virtual -Weffc++ -D_DLL | |
5c0f7251 | 26 | CFLAGS = $(OPT) -Wall -D_DLL |
27 | FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore | |
28 | # rmkdepend flags for building dependencies of FORTRAN files | |
29 | DEPENDFFLAGS = $(FFLAGS) | |
30 | ||
31 | # rootcint flags | |
32 | CINTFLAGS = | |
33 | ||
5f30d16c | 34 | LD = $(shell root-config --ld) |
5c0f7251 | 35 | LDFLAGS = $(OPT) |
36 | ||
37 | SHLD = $(LD) | |
38 | SOFLAGS = $(OPT) -shared -Wl,--export-all-symbols -Wl,-soname=$$TMPLIB -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc | |
39 | SHLIB = $(shell root-config --libs) -lg2c | |
40 | SOEXT = dll | |
41 | ||
42 | ALLD = ar | |
43 | ALFLAGS = cr | |
44 | ALLIB = | |
45 | AEXT = a | |
46 | ||
47 | # additional ROOT libraries | |
48 | ||
49 | #System libraries | |
50 | SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11 | |
51 | ||
52 | ||
53 | ||
54 | ||
55 |