
## OS        : Solaris
## ARCH      : UltraSparc
## Compiler  : Sun Workshop (v5.0+)
## Maintainer: Cramer

##  (Note: CC could be used, but it's a C++ compiler.)
CC      = cc
LD      = cc
RM      = rm -f
AR      = ar rc
RNLIB   = ranlib
STRIP   = strip
INSTALL = install

##   To turn off the math optimization:
##     -fsimple=0 (and optionally remove -fns)
##
##   "-xarch=" can be 'v9' or 'v9a'.  (v9a includes VIS support.)
##   "-xtarget=" can be set to native, ultra, ultra1, ultra2, or ultra2i.
##
WORKSHOP = -dalign -fns -fsimple=2 -ftrap=%none -xtarget=generic -xarch=v9a
##
## full optimization cannot be done with '-g'
# OPT = -g -xO0 -xlibmil
OPT = -xO5 -xlibmil
##
## -mt implies -D_REENTRANT -- DO NOT FORGET THIS
##
CFLAGS  = -mt $(WORKSHOP) -v -Xa -xildoff $(OPT) $(EXTRA_FLAGS)
LDFLAGS = -mt $(WORKSHOP) -v -Xa -xildoff $(OPT) $(NULL)
LDLIBS  = -lm -lsocket -lnsl -lposix4 -lpthread $(EXTRA_LIBS)

# Cosm Defines
CDEFS = -DCPU_64BIT -DCPU_WORD_SIZES=842 \
	-DCPU_TYPE=CPU_SPARC -DOS_TYPE=OS_SOLARIS

