
#  Makefile macros.  See `Makefile' for explanations.

CPLUSPLUS = sunCC -m64
CC		  = suncc -m64

# Additional defines:
SYS_DEFS	+= -library=stlport4
# From user-defined options in Makefile:

ifeq ($(QUIET),yes)
  SYS_WARN	+= -w
else
  SYS_WARN  += #+w2
endif

ifeq ($(DEBUG),yes)
  SYS_DEBUG	+= -g
endif

ifeq ($(FAST),yes)
  # Force minor optimizations:
  OPTIM		= -O 
endif

ifeq ($(OPTIM),none)
  SYS_OPT	+=
else
  ifeq ($(OPTIM),)
    SYS_OPT	+= -fast
  else
    SYS_OPT	+= $(OPTIM)
  endif
endif

ifeq ($(PROFILE),yes)
  SYS_DEBUG	+= -pg
endif

ifeq ($(FORCE_DEBUG),yes)
  SYS_DEFS	+= -DFORCE_DEBUG
endif

ifeq ($(TRACK_MEMORY),yes)
  SYS_DEBUG     += -DTRACK_MEMORY
  SYS_MEMTRACK  += -include system/MemTracker.h
endif

ifeq ($(ASSERT),FAST)
  SYS_DEFS	+= -DFAST_ASSERT
endif

ifeq ($(OPEN_MP),yes)
  OMP_FLAGS	= -xopenmp -xvpara
  OMP_LINK	= -xopenmp
endif

ifeq ($(PTHREADS),yes)
  PTHREAD_DEFS	=
  PTHREAD_FLAGS =
  PTHREAD_LIBS	=
endif

ifeq ($(GCOV),yes)
  SYS_DEBUG	+= -xprofile=tcov
endif

SYS_INCS	+= -I.

SYS_LINK	+= -library=stlport4 $(SYS_OPT)

