Makefile.sgicc
# -*- mode: makefile -*-
#
# Makefile of ROOT for SGI IRIX 6.x with CC compiler
PLATFORM = sgi
DEBUGFLAGS = -g
OPTFLAGS = -O
ifeq (debug,$(findstring debug,$(ROOTBUILD)))
OPT = $(DEBUGFLAGS)
NOOPT =
else
OPT = $(OPTFLAGS)
NOOPT =
endif
# Compiler:
CXX = CC
CC = cc
CXXFLAGS = -n32 -ptused -LANG:std -signed -DIRIX64 -DSGI_REL=62 $(EXTRA_CXXFLAGS) -I/usr/include/CC.sgi -woff 1107,3505
CFLAGS = -n32 -signed -DIRIX64 $(EXTRA_CFLAGS)
CINTCXXFLAGS = -n32 -ptused -LANG:std -signed -w -DIRIX64 -DG__REGEXP1 -DG__UNIX -DG__OSFDLL \
-DG__SHAREDLIB -DG__SIGNEDCHAR -DG__ROOT -DG__REDIRECTIO $(EXTRA_CXXFLAGS) -I/usr/include/CC.sgi
CINTCFLAGS = -n32 -signed -w -DIRIX64 -DG__REGEXP1 -DG__UNIX -DG__OSFDLL \
-DG__SHAREDLIB -DG__SIGNEDCHAR -DG__ROOT -DG__REDIRECTIO $(EXTRA_CFLAGS)
# Linker:
LD = CC
LDFLAGS = -ptused -LANG:std -FE:template_in_elf_section $(OPT) $(EXTRA_LDFLAGS)
SOFLAGS = -n32 -shared
SOEXT = so
# System libraries:
SYSLIBS = -lm -lPW -ldl $(OSTHREADLIBDIR) $(OSTHREADLIB) \
$(ALLOCLIBDIR) $(ALLOCLIB)
XLIBS = $(XPMLIBDIR) $(XPMLIB) $(X11LIBDIR) -lXext -lX11
CILIBS = -lm -ltermcap -lbsd -lgen -ldl
# Fortran:
F77 = f77
F77FLAGS = $(ABI)
ifeq ($(O32),)
F77LIBS = -lftn
else
F77LIBS = -lI77 -lU77 -lF77 -lisam
endif
# Override default in Makefile.config
INSTALL := cp -pR
INSTALLDATA := cp -pR
# Extras