]>
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 |
fe4da5cc | 13 | |
14 | # Shared library suffix | |
15 | SL = so | |
16 | ||
17 | # The options | |
9d02daf6 | 18 | # |
19 | # starting from root.2.22 on Linux the flags -fno-rtti -fno-exceptions are | |
20 | # not necessary any more | |
21 | # | |
22 | CXXOPTS = $(OPT) -Wall -fPIC | |
fe4da5cc | 23 | COPT = $(OPT) |
24 | FOPT = $(OPT) -fno-second-underscore | |
25 | ||
26 | # CERNLIB defines | |
27 | ||
28 | CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ | |
29 | CLIBCXXOPTS = | |
30 | CLIBCOPT = | |
31 | CLIBFOPT = | |
32 | ||
33 | # Additional directories for dependencies | |
34 | ||
126a9774 | 35 | DEPINC = `rm -f /tmp/d_$$$$.cxx; touch /tmp/d_$$$$.cxx ; \ |
36 | g++ -v -c /tmp/d_$$$$.cxx -o /dev/null 2>&1 | \ | |
9e11827b | 37 | awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \ |
38 | if(i==1) printf "%s",$$sub(" ","-I")" "; \ | |
126a9774 | 39 | if(substr($$0,1,10) == "\#include <") i=1}' ; \ |
40 | 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 | ||
084c1b4a | 49 | LIBS = $(ROOTLIBS) |
50 | GLIBS = $(ROOTLIBS) -L/usr/X11R6/lib -lX11 -lg2c -lcrypt | |
fe4da5cc | 51 |