]>
Commit | Line | Data |
---|---|---|
b934f194 | 1 | # Makefile to build AliRoot for Linux |
2 | ||
6a772515 | 3 | # System dependent commands |
4 | ||
5 | XARGS = xargs -r | |
6 | ||
02a1d5c1 | 7 | # The compilers |
8 | CXX = g++ | |
9 | F77 = g77 | |
10 | CC = gcc | |
11 | CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) | |
19ca05d1 | 12 | CCMINORV = $(shell $(CC) -dumpversion | cut -d. -f2) |
02a1d5c1 | 13 | |
14 | # Global optimisation | |
15 | OPT = -O -g | |
19ca05d1 | 16 | NOOPT = -g |
02a1d5c1 | 17 | |
19ca05d1 | 18 | CXXOPT = $(OPT) |
19 | CXXNOOPT = $(NOOPT) | |
02a1d5c1 | 20 | COPT = $(OPT) |
19ca05d1 | 21 | FOPT = $(OPT) |
02a1d5c1 | 22 | |
23 | # CERNLIB defines | |
02a1d5c1 | 24 | CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ |
25 | CLIBCXXOPTS = | |
26 | CLIBCOPT = | |
19ca05d1 | 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 | |
0038d136 | 34 | ifeq ($(CCMAJORV),3) |
ec22f7b0 | 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 | |
0038d136 | 37 | else |
38 | CXXFLAGS = $(OPT) -W -Wall -Woverloaded-virtual -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi -Dlinux | |
ec22f7b0 | 39 | CXXFLAGSNO = $(NOOPT) -W -Wall -Weffc++ -fPIC -pipe -fmessage-length=0 -Wno-long-long -ansi |
0038d136 | 40 | endif |
19ca05d1 | 41 | endif |
931c1b8a | 42 | CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi |
19ca05d1 | 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 = | |
02a1d5c1 | 49 | |
02a1d5c1 | 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 | |
02a1d5c1 | 64 | |
02a1d5c1 | 65 | #System libraries |
8d64fbb3 | 66 | SYSLIBS := -ldl -lg2c -lcrypt -L/usr/X11R6/lib -lX11 |
02a1d5c1 | 67 | |
02a1d5c1 | 68 | |
69 | ||
70 | ||
71 |