#
# Makefile for the various example programs
#
# The files in here:
# - xpkmanx.c   :  The 'xpk' program for Manx compilation
# - xpksas.c    :  The 'xpk' program for SAS  compilation
# - xpkdice.c   :  The 'xpk' program for DICE compilation
#

msg:
	-Please specify your compiler, either 'make manx', 'make sas' or 'make dice'

all: manx dice sas

manx: xpkmanx
dice: xpkdice
sas : xpksas

#-----MANX
xpkmanx: xpkmanx.c
	cc xpkmanx.c
	ln xpkmanx.o -lc

#----DICE
xpkdice: xpkdice.c
	dcc xpkdice.c -lxpkmaster.lib -oxpkdice

#----SAS
xpksas: xpksas.c
	sc xpksas.c LINK TO xpksas LIB lib:sc.lib NOICONS

clean:
	-Delete "#?.o"
	-Delete "#?manx"
	-Delete "#?sas"
	-Delete "#?.lnk"
	-Delete "#?dice"
