+# $Id$
+
# Which Machine
PLATFORM = linux
# Shared library suffix
SL = so
+# AWK
+AWK = awk
+
# The options
#
# starting from root.2.22 on Linux the flags -fno-rtti -fno-exceptions are
# not necessary any more
#
-CXXOPTS = $(OPT) -Wall -fPIC
+CXXOPTS = $(OPT) -Wall -fPIC -pipe
COPT = $(OPT)
FOPT = $(OPT) -fno-second-underscore
# Additional directories for dependencies
-DEPINC = `rm -f /tmp/d.cxx; touch /tmp/d.cxx ; \
- g++ -v -c /tmp/d.cxx -o /dev/null 2>&1 | \
+DEPINC = `rm -f /tmp/d_$$$$.cxx; touch /tmp/d_$$$$.cxx ; \
+ g++ -v -c /tmp/d_$$$$.cxx -o /dev/null 2>&1 | \
awk 'BEGIN {i=0} {if(substr($$0,1,10)=="End of sea") i=0; \
if(i==1) printf "%s",$$sub(" ","-I")" "; \
- if(substr($$0,1,10) == "\#include <") i=1}' ; rm /tmp/d.cxx`
+ if(substr($$0,1,10) == "\#include <") i=1}' ; \
+ rm /tmp/d_$$$$.cxx`
LD = g++
LDFLAGS = $(OPT)
SOFLAGS = -Wl,-soname,$(notdir $@) -shared
SHLIB = -lg2c
-LIBS = $(ROOTLIBS) -lm -ldl -rdynamic
-GLIBS = $(ROOTLIBS) $(ROOTGLIBS) -L/usr/X11R6/lib -lX11 -lg2c -ldl -lcrypt -rdynamic
+LIBS = $(ROOTLIBS)
+GLIBS = $(ROOTLIBS) -L/usr/X11R6/lib -lX11 -lg2c -lcrypt