## Copyright (C) 1993 by the author(s).
# 
# 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 -- standard variants
#
# Authors: Andreas Lampen (Andreas.Lampen@cs.tu-berlin.de)
#          Axel Mahler (Axel.Mahler@cs.tu-berlin.de)
#
# Modified by: Karl-Heinz Koester (Karl-Heinz.Koester@sietec.de)
#
# $__Header$
#

#
# variants for development environments. ATTENTION subvariants must 
# be included.
# 
vclass machine ::= (mx, rm)

mx:+
	LOCAL = $(BASE)/MX

rm:+
	LOCAL = $(BASE)/RM

#
# vclass hostsystem
#
vclass hostsystem ::= (s_svr_4, s_win_nt) # s_win_31, s_solaris

s_svr_4:+
	HOSTSYSTEM = s_svr_4
	SYSLIBS    = -lnsl -lgen
	VARCFLAGS  = -DM_UNIX

s_win_nt:+
	HOSTSYSTEM = s_win_nt
	SYSLIBS    = 

#
# vlass  hosttype
#
vclass hosttype ::= (t_i386, t_mips) # t_sparc

t_i386:+
	MACHINE    = t_i386

t_mips:+
	MACHINE    = t_mips
	VARCFLAGS  = -DALIGNMENT

#
# vlass ofilefmt
#
vclass ofilefmt ::= (o_coff, o_elf)

o_coff:+
	OFILEFMT = o_coff

o_elf:+
	OFILEFMT = o_elf
	SYSLIBS  = -lelf

#
# vclass ccomp
#
vclass ccomp ::= (c_att, c_gnu, c_ms)

c_att:+
	CCOMP     = c_att
	CC        = /usr/ccs/bin/cc

c_gnu:+
	CCOMP     = c_gnu
	CC        = /usr/local/bin/gcc
	VARCFLAGS = -fno-builtin

c_ms:+
	CCOMP     = c_ms
	CC        = cl

#
# vclass quality
#
vclass quality ::= (debug, normal, optimize)

debug:+
	QUALITY      = debug
	VARCOOLFLAGS = -g
	VARCFLAGS    = -g
	VARLDFLAGS   = -g
	MAKECOOLFLAGS=
	MAKECFLAGS   =
	MAKELDFLAGS  =

normal:+
	QUALITY      = normal
	VARCOOLFLAGS =
	VARCFLAGS    =
	VARLDFLAGS   =
	MAKECOOLFLAGS=
	MAKECFLAGS   =
	MAKELDFLAGS  =

optimize:+
	QUALITY      = optimize
	VARCOOLFLAGS =
	VARCFLAGS    = -O
	VARLDFLAGS   = -s
	MAKECOOLFLAGS=
	MAKECFLAGS   =
	MAKELDFLAGS  =

