Makefile.solarisCC5
# -*- mode: makefile -*-
#
# Makefile of ROOT for Solaris with CC 5.0
PLATFORM = solaris
DEBUGFLAGS = -g
OPTFLAGS = -O
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
MTOPT =
ifneq ($(OSTHREADLIB),)
MTOPT = -mt
endif
CC_MINOR_VER := $(shell CC -V 2>&1 | sed 's,^.*5\.\([0-9]*\) .*$$,\1,')
SOLCPU := $(shell uname -p)
CCPTR := -ptr$(ROOTSYS)
ifeq ($(patsubst $(CC_MINOR_VER),,0 1 2 3 4),0 1 2 3 4)
# newer than 5.4
CCPTR :=
ifeq ($(SOLCPU),i386)
CCSTL := -library=stlport4
endif
endif
# Compiler:
# used in cint/Module.mk
SUNCC5 = true
#CXX = /opt/WS5.0/bin/CC
#CC = /opt/WS5.0/bin/cc
CXX = CC
CC = cc
CXXFLAGS = -KPIC -I/usr/openwin/include $(CCSTL) $(CCPTR) \
$(EXTRA_CXXFLAGS) $(MTOPT)
CFLAGS = -KPIC -I/usr/openwin/include $(EXTRA_CFLAGS) $(MTOPT)
CINTCXXFLAGS = -KPIC -DG__REGEXP1 -DG__UNIX -DG__OSFDLL $(EXTRA_CXXFLAGS) \
-DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO $(CCSTL) $(CCPTR) \
$(MTOPT)
CINTCFLAGS = -KPIC -DG__REGEXP1 -DG__UNIX -DG__OSFDLL $(EXTRA_CFLAGS) \
-DG__SHAREDLIB -DG__ROOT -DG__REDIRECTIO $(MTOPT)
CPPPREP = /usr/ccs/lib/cpp -E -C -B -D__sun -D__sparc -D__unix
# Linker:
LD = CC
LDFLAGS = $(OPT) $(CCSTL) $(EXTRA_LDFLAGS)
SOFLAGS = -G $(CCPTR)
SOEXT = so
# System libraries:
SYSLIBS = -lm -ldl -lnsl -lsocket -lposix4 $(ALLOCLIBDIR) $(ALLOCLIB)
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS = -lm -ltermcap -ldl
# Fortran:
ifeq ($(F77),f77)
#F77 = /opt/SUNWspro/bin/f77
F77 = f77
ifeq ($(SOLCPU),i386)
F77LIBS = -lfui -lfsu -lmtsk -lsunmath
else
F77LIBS = -lf77compat -lfui -lfsu -lmtsk -lsunmath
endif
# Use this on Solaris 10 with F90 compiler
#F77LIBS := -lf77compat -lfui -lfsu -lmtsk -lsunperf -lsunmath
F77LDFLAGS = $(OPT) $(EXTRA_LDFLAGS)
endif
# Override default in Makefile.config
INSTALL := cp -pR
INSTALLDATA := cp -pR