]>
Commit | Line | Data |
---|---|---|
02a1d5c1 | 1 | PLATFORM:=linux |
2 | ||
3 | # The compilers | |
4 | CXX = g++ | |
5 | F77 = g77 | |
6 | CC = gcc | |
7 | CCMAJORV = $(shell $(CC) -dumpversion | cut -d. -f1) | |
8 | ||
9 | # Global optimisation | |
10 | OPT = -O -g | |
11 | ||
12 | ifeq ($(CCMAJORV),2) | |
13 | CXXOPTS = $(OPT) -W -Wall -fPIC -pipe | |
14 | else | |
15 | CXXOPTS = $(OPT) -W -Wall -Werror -fPIC -pipe -fmessage-length=0 -Wno-long-long -pedantic-errors -ansi | |
16 | endif | |
17 | COPT = $(OPT) | |
18 | FOPT = $(OPT) -fno-second-underscore | |
19 | CXXFLAGS = $(CXXOPTS) | |
20 | CFLAGS = $(OPT) -Wall -Werror -fPIC -pipe -Wno-long-long -pedantic-errors -ansi | |
21 | ||
22 | # rootcint flags | |
23 | CINTFLAGS = | |
24 | ||
25 | # CERNLIB defines | |
26 | ||
27 | CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ | |
28 | CLIBCXXOPTS = | |
29 | CLIBCOPT = | |
30 | CLIBFOPT = | |
31 | ||
32 | # Common Fortran compilation flags | |
33 | FFLAGS = $(CLIBFOPT) $(CLIBDEFS) $(FOPT) | |
34 | ||
35 | LD = g++ | |
36 | LDFLAGS = $(OPT) | |
37 | ||
38 | SHLD = $(LD) | |
39 | SOFLAGS = $(OPT) -shared -Wl | |
40 | SHLIB = -lg2c | |
41 | SOEXT = so | |
42 | ||
43 | ALLD = ar | |
44 | ALFLAGS = cr | |
45 | ALLIB = | |
46 | AEXT = a | |
47 | ||
48 | # additional ROOT libraries | |
49 | ROOTLIBS += -lcrypt | |
50 | ||
51 | # rmkdepend flags for building dependencies of FORTRAN files | |
52 | DEPENDFFLAGS = $(FFLAGS) | |
53 | ||
54 | LIBNOVER = `find /lib -name 'libNoVersion*.so' | xargs --replace basename {} .so | sed -e 's/lib/ -l/'` | |
55 | GLIBS = -L/usr/X11R6/lib -lX11 $(LIBNOVER) | |
56 | ||
57 | #System libraries | |
58 | SYSLIBS = -ldl | |
59 | ||
60 | EXEFLAGS+= -lg2c | |
61 | ||
62 | ||
63 | ||
64 |