#
# Makefile for STklos image creation
#
# Copyright (C) 1993, 1994 Erick Gallesio - I3S - CNRS / UNSA <eg@unice.fr>
# 
# Permission to use, copy, and/or distribute this software and its
# documentation for any purpose and without fee is hereby granted, provided
# that both the above copyright notice and this permission notice appear in
# all copies and derived works.  Fees for distribution or use of this
# software or derived works may only be charged with express written
# permission of the copyright holder.  
# This software is provided ``as is'' without express or implied warranty.
#
# This software is a derivative work of other copyrighted softwares; the
# copyright notices of these softwares are placed in the file COPYRIGHTS
#
#           Author: Erick Gallesio [eg@unice.fr]
#    Creation date: 29-Jun-1993 13:58
# Last file update: 16-Dec-1993 23:22
#

include ../config.make

SRC=describe.stk stklos.stk support.stk tiny-clos.stk

TK=Tk/Button.stk Tk/Frame.stk Tk/Misc.stk Tk/Object.stk Tk/Scale.stk\
   Tk/Utils.stk

stklos: ../Src/stk $(SRC) $(TK)
	rm -f ./stklos
	echo '(begin(load "./stklos.stk")(load-tk)(gc)(dump "./stklos"))' |\
	STK_LIBRARY="../Lib" ../Src/stk -no-tk

stklos-only: ../Src/stk $(SRC) 
	rm -f ./stklos
	echo '(begin(load "./stklos.stk")(gc)(dump "./stklos"))' | \
	STK_LIBRARY="../Lib" ../Src/stk -no-tk

stk:
	ln -s ../Src/stk .

install: stklos
	if test -x stklos ; then install -s stklos $(BIN_DIR); fi

clean:
	rm -f stklos *~ core
