]>
Commit | Line | Data |
---|---|---|
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 | ifeq ($(CCMAJORV),2) | |
31 | CXXFLAGS = $(OPT) -W -Wall -fPIC -pipe | |
32 | CXXFLAGSNO = $(NOOPT) -W -Wall -fPIC -pipe | |
33 | else | |
34 | ifeq ($(CCMAJORV),3) | |
35 | CXXFLAGS = $(OPT) -W -Wall -Weffc++ -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi -Dlinux | |
36 | CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi | |
37 | else | |
38 | CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux | |
39 | CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi | |
40 | endif | |
41 | endif | |
42 | CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi | |
43 | FFLAGS = $(CLIBFOPT) $(FOPT) -fno-second-underscore | |
44 | # rmkdepend flags for building dependencies of FORTRAN files | |
45 | DEPENDFFLAGS = $(FFLAGS) | |
46 | ||
47 | # rootcint flags | |
48 | CINTFLAGS = | |
49 | ||
50 | LD = g++ | |
51 | LDFLAGS = $(OPT) | |
52 | ||
53 | SHLD = $(LD) | |
54 | SOFLAGS = $(OPT) -shared -Wl | |
55 | SHLIB = -lg2c | |
56 | SOEXT = so | |
57 | ||
58 | ALLD = ar | |
59 | ALFLAGS = cr | |
60 | ALLIB = | |
61 | AEXT = a | |
62 | ||
63 | # additional ROOT libraries | |
64 | ||
65 | #System libraries | |
66 | SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11 | |
67 | ||
68 | ||
69 | ||
70 | ||
71 |