]> git.uio.no Git - u/mrichter/AliRoot.git/blame - conf/MachineDef.Linux
Avoid conflicts when creating /tmp files in Linux makedepend
[u/mrichter/AliRoot.git] / conf / MachineDef.Linux
CommitLineData
809ca4d8 1# $Id$
2
fe4da5cc 3# Which Machine
4PLATFORM = linux
5
6# The compilers
7CXX = echo $*.cxx ; g++
8F77 = echo $*.F ; g77
9CC = echo $*.c ; gcc
10
11# Global optimisation
a4a43406 12OPT = -O2
fe4da5cc 13
14# Shared library suffix
15SL = 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#
22CXXOPTS = $(OPT) -Wall -fPIC
fe4da5cc 23COPT = $(OPT)
24FOPT = $(OPT) -fno-second-underscore
25
26# CERNLIB defines
27
28CLIBDEFS = -DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ
29CLIBCXXOPTS =
30CLIBCOPT =
31CLIBFOPT =
32
33# Additional directories for dependencies
34
126a9774 35DEPINC = `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
42LD = g++
43LDFLAGS = $(OPT)
40da9a8f 44
45SHLD = $(LD)
fe4da5cc 46SOFLAGS = -Wl,-soname,$(notdir $@) -shared
47SHLIB = -lg2c
48
084c1b4a 49LIBS = $(ROOTLIBS)
50GLIBS = $(ROOTLIBS) -L/usr/X11R6/lib -lX11 -lg2c -lcrypt
fe4da5cc 51