#
# Copyright (C) 1993,1994,1995 Erick Gallesio - I3S-CNRS/ESSI <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@kaolin.unice.fr]
#    Creation date:  6-Mar-1994 15:49
# Last file update:  5-Jun-1995 20:40

include ../config.make

EXAMPLES = time.$(SH_SUFFIX) \
	   when.$(SH_SUFFIX)

CFLAGS= $(SH_CCFLAGS) $(STKCFLAGS) $(DFLGS) @DEFS@ \
        -I../Tk -I../Tcl -I../Src -I../Mp $(XINCLUDES) 

##############################################################################
.SUFFIXES: .$(SH_SUFFIX) .o .c

.o.$(SH_SUFFIX): 
	-$(SH_LOADER) $(SH_LDFLAGS) $*.$(SH_SUFFIX) $<
	if test -f a.out  ;then mv a.out $*.$(SH_SUFFIX); fi


##############################################################################
all: $(EXTRA_OBJ)

stklos.$(SH_SUFFIX): stklos.o gf.o
	$(SH_LOADER) $(SH_LDFLAGS) stklos.$(SH_SUFFIX) stklos.o gf.o
	if test -f a.out ;then mv a.out $*.$(SH_SUFFIX); fi
	if test ! -f stklos.$(SH_SUFFIX) ; then \
	  ln stklos.$(SH_SUFFIX) ../STklos/stklos.$(SH_SUFFIX); \
	fi

# Following lines are needed for weird make commands. Use Gnu make....
hash.$(SH_SUFFIX): 	hash.o 
sregexp.$(SH_SUFFIX): 	sregexp.o 
process.$(SH_SUFFIX): 	process.o 
socket.$(SH_SUFFIX): 	socket.o 
posix.$(SH_SUFFIX):	posix.o

exemples: $(EXEMPLES)

install:
	if test "$(EXTRA_OBJ)" != "" ; then $(CP) $(EXTRA_OBJ) $(execdir); fi

install.libs:


clean:
	@/bin/rm -f *.o *.$(SH_SUFFIX) core *~ Makefile config.status config.log
