]>
Commit | Line | Data |
---|---|---|
809ca4d8 | 1 | # $Id$ |
2 | ||
fe4da5cc | 3 | # Which Machine |
4 | PLATFORM = linux | |
5 | ||
6 | # The compilers | |
7 | CXX = echo $*.cxx ; g++ | |
8 | F77 = echo $*.F ; g77 | |
9 | CC = echo $*.c ; gcc | |
10 | ||
11 | # Global optimisation | |
a4a43406 | 12 | OPT = -O2 |
ad51aeb0 | 13 | OPT = -g |
fe4da5cc | 14 | |
15 | # Shared library suffix | |
16 | SL = so | |
17 | ||
18 | # The options | |
9d02daf6 | 19 | # |
20 | # starting from root.2.22 on Linux the flags -fno-rtti -fno-exceptions are | |
21 | # not necessary any more | |
22 | # | |
23 | CXXOPTS = $(OPT) -Wall -fPIC | |
fe4da5cc | 24 | COPT = $(OPT) |
25 | FOPT = $(OPT) -fno-second-underscore | |
26 | ||
27 | # CERNLIB defines | |
28 | ||
29 | CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ | |
30 | CLIBCXXOPTS = | |
31 | CLIBCOPT = | |
32 | CLIBFOPT = | |
33 | ||
34 | # Additional directories for dependencies | |
35 | ||
9e11827b | 36 | DEPINC = `rm -f /tmp/d.cxx; touch /tmp/d.cxx ; \ |
37 | g++ -v -c /tmp/d.cxx -o /dev/null 2>&1 | \ | |
38 | awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \ | |
39 | if(i==1) printf "%s",$$sub(" ","-I")" "; \ | |
40 | if(substr($$0,1,10) == "\#include <") i=1}' ; rm /tmp/d.cxx` | |
fe4da5cc | 41 | |
42 | LD = g++ | |
43 | LDFLAGS = $(OPT) | |
40da9a8f | 44 | |
45 | SHLD = $(LD) | |
fe4da5cc | 46 | SOFLAGS = -Wl,-soname,$(notdir $@) -shared |
47 | SHLIB = -lg2c | |
48 | ||
49 | LIBS = $(ROOTLIBS) -lm -ldl -rdynamic | |
50 | GLIBS = $(ROOTLIBS) $(ROOTGLIBS) -L/usr/X11R6/lib -lX11 -lg2c -ldl -lcrypt -rdynamic | |
51 |