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