e465296f46574cf18ed1ae5d6dd1a0d1b9b336d3
[u/mrichter/AliRoot.git] / conf / MachineDef.Linux
1 # $Id$
2  
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
12 OPT           = -O2
13
14 # Shared library suffix
15 SL            = so
16
17 # The options
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
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
35 DEPINC        = `rm -f /tmp/d_$$$$.cxx; touch /tmp/d_$$$$.cxx ; \
36                  g++ -v -c /tmp/d_$$$$.cxx -o /dev/null 2>&1 | \
37                  awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \
38                  if(i==1) printf "%s",$$sub(" ","-I")" "; \
39                  if(substr($$0,1,10) == "\#include <") i=1}' ; \
40                  rm /tmp/d_$$$$.cxx`
41                 
42 LD            = g++
43 LDFLAGS       = $(OPT)
44
45 SHLD          = $(LD)
46 SOFLAGS       = -Wl,-soname,$(notdir $@) -shared 
47 SHLIB         = -lg2c
48
49 LIBS          = $(ROOTLIBS) 
50 GLIBS         = $(ROOTLIBS) -L/usr/X11R6/lib -lX11 -lg2c -lcrypt
51