#
## Copyright (C) 1989,1990,1991,1992 by
#	Wilfried Koch, Andreas Lampen, Axel Mahler, Juergen Nickelsen,
#	Wolfgang Obst and Ulrich Pralle 
# 
# This file is part of shapeTools.
#
# This software is published in the hope that it will be useful, but
# WITHOUT ANY WARRANTY for any part of this software to work correctly
# or as described in the manuals. See the ShapeTools Public License
# for details.
#
# Permission is granted to use, copy, modify, or distribute any part of
# this software but only under the conditions described in the ShapeTools 
# Public License. A copy of this license is supposed to have been given
# to you along with shapeTools in a file named LICENSE. Among other
# things, this copyright notice and the Public License must be
# preserved on all copies.

#
# shape_CM environment -- stdvar
#
# $Header: stdvar[1.2] Tue Aug 20 16:09:31 1991 shape@cs.tu-berlin.de frozen $
#
# The standard variant raster. Varianta get activated by setting the
# macros "SYSTEM", "COMPILER, and "QUALITY"
#

#% VARIANT-SECTION

vclass system ::= (s-bsd_4_3, \
		   s-sunos_4, \
		   s-svr_3, \
		   s-hpux_6_2, \
		   s-ultrix_2, \
		   s-ultrix_4)

vclass compiler ::= (pcc, \
		     gnu, \
		     gnu_ansi)

vclass quality ::= (debug, \
		    debug_static, \
		    profiling, \
		    profiling_static, \
		    optimize, \
		    maxoptimize)

#
# vclass system
#
s-bsd_4_3:
	CFLAGS = $(SWITCHES) -I$(INCLUDEPATH)

s-sunos_4:
	CFLAGS = $(SWITCHES) -I$(INCLUDEPATH)

s-svr_3:
	CFLAGS = $(SWITCHES) -I$(INCLUDEPATH)
	SYSLIBS = -lPW

s-hpux_6_2:
	CFLAGS = $(SWITCHES) -I$(INCLUDEPATH)
	SYSLIBS = -lPW

s-ultrix_2:
	CFLAGS = $(SWITCHES) -I$(INCLUDEPATH)

s-ultrix_4:
	CFLAGS = $(SWITCHES) -I$(INCLUDEPATH)

#
# vclass compiler
#
pcc:
	CC=cc
gnu:
	CC=gcc -traditional -W

gnu_ansi:
	CC=gcc -ansi -Wall

#
# vclass quality
#
debug:
	CFLAGS=-g
	LDFLAGS=-g

debug_static:
	CFLAGS=-g -Bstatic
	LDFLAGS=-g -Bstatic

profiling:
	CFLAGS=-pg -g
	LDFLAGS=-pg -g

profiling_static:
	CFLAGS=-pg -g -Bstatic
	LDFLAGS=-pg -g -Bstatic

optimize:
	CFLAGS=-O
	LDFLAGS=-s

maxoptimize:
	CFLAGS=-O -fcombine-regs -fstrength-reduce
	LDFLAGS=-s

#% END-VARIANT-SECTION
#
