##   -*-Makefile-*-
## 
##  IMS Open Corpus Workbench (CWB)
##  Copyright (C) 1993-2006 by IMS, University of Stuttgart
##  Copyright (C) 2007-     by the respective contributers (see file AUTHORS)
## 
##  This program is free software; you can redistribute it and/or modify it
##  under the terms of the GNU General Public License as published by the
##  Free Software Foundation; either version 2, or (at your option) any later
##  version.
## 
##  This program is distributed in the hope that it will be useful, but
##  WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
##  Public License for more details (in the file "COPYING", or available via
##  WWW at http://www.gnu.org/copyleft/gpl.html).

##
##  PLATFORM CONFIGURATION FILE: Solaris 8 (SunOS 2.8) on UltraSPARC CPU
##

## Inherits from generic Unix configuration
include $(TOP)/config/platform/unix

## Standard Solaris doesn't include ncurses library, but has compatible termcap
TERMCAP_LIBS = -ltermcap

## Optimisation for UltraSPARC, but remain compatible with SuperSPARC architecture
CFLAGS = -Wall -O3 -fPIC
## Solaris doesn't have setenv() for manipulating environment variables, so we need to emulate it with putenv()
CFLAGS += -DEMULATE_SETENV

## Solaris requires additional libraries for socket/network support
## (Documentation suggests -lxnet, but there is no statically linkable version of this library)
NETWORK_LIBS = -lsocket -lnsl 

## CPU architecture and operating system used to name binary releases
RELEASE_ARCH = x86
RELEASE_OS = solaris
