
## OS        : Solaris
## ARCH      : Spaarc
## Compiler  : Sun Workshop (v4.2+)
## 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)
##
WORKSHOP = -dalign -fns -fsimple=2 -ftrap=%none -xtarget=generic
##
## 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_32BIT -DCPU_WORD_SIZES=442 \
	-DCPU_TYPE=CPU_SPARC -DOS_TYPE=OS_SOLARIS

