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