#
# Makefile for STklos 
#
# 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.
#
#           Author: Erick Gallesio [eg@unice.fr]
#    Creation date: 29-Jun-1993 13:58
# Last file update: 11-Jun-1994 21:44
#

include ../config.make

LIB_STKLOS = $(libdir)

all:
	@echo "What do you want to make?"
	@echo "Possibles values are 'stklos' 'dynamic' 'install' 'clean'"

stklos: 
	@echo "**** make STklos completed"
dynamic:
	@echo "**** make dynamic version of STklos"		
	@(cd C-code; make all)

install: 
	-if [ ! -d $(LIB_STKLOS) ] ; then mkdir -p $(LIB_STKLOS); fi
	$(INSTALL) stklos.stk describe.stk $(LIB_STKLOS)
	(cd C-code; make install)
	$(INSTALL) Tk/*.stk Tk/Composite/*.stk $(LIB_STKLOS)
	
clean:
	@/bin/rm -f *~ core
	@(cd C-code; make clean)
