Finding automatically g++ include directories for dependencies
[u/mrichter/AliRoot.git] / conf / MachineDef.Linux
... / ...
CommitLineData
1# Which Machine
2PLATFORM = linux
3
4# The compilers
5CXX = echo $*.cxx ; g++
6F77 = echo $*.F ; g77
7CC = echo $*.c ; gcc
8
9# Global optimisation
10OPT = -O2
11OPT = -g
12
13# Shared library suffix
14SL = 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#
21CXXOPTS = $(OPT) -Wall -fPIC
22COPT = $(OPT)
23FOPT = $(OPT) -fno-second-underscore
24
25# CERNLIB defines
26
27CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
28CLIBCXXOPTS =
29CLIBCOPT =
30CLIBFOPT =
31
32# Additional directories for dependencies
33
34DEPINC = `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
40LD = g++
41LDFLAGS = $(OPT)
42
43SHLD = $(LD)
44SOFLAGS = -Wl,-soname,$(notdir $@) -shared
45SHLIB = -lg2c
46
47LIBS = $(ROOTLIBS) -lm -ldl -rdynamic
48GLIBS = $(ROOTLIBS) $(ROOTGLIBS) -L/usr/X11R6/lib -lX11 -lg2c -ldl -lcrypt -rdynamic
49