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