# -*-makefile-*----------------------------------------------------------------
# $Id: pkg_tk.in,v 1.10 1996/10/25 18:54:49 furnish Exp $
#
# Maurice LeBrun
# IFS, University of Texas at Austin
# 14-Jul-1994
#
# Make assignments for PLplot/TK support.
# -----------------------------------------------------------------------------

TK_C		= tk.c tkshell.c tcpip.c plframe.c tkMain.c plr.c
TK_C		= tk.c Pltk_Init.c tcpip.c plframe.c tkMain.c plr.c
TK_OBJ		= tk$O tkshell$O tcpip$O plframe$O plr$O
TK_OBJ		= tk$O Pltk_Init$O tcpip$O plframe$O plr$O
TK_OBJ_SA	= tkMain$O 
TK_EXE		= plserver$E
TK_INSTALL	= install_tk

install_tk:
	-if test ! -d $(TCL_DIR); then mkdir -p $(TCL_DIR); fi
	-if test $(SHARED) = 1; then \
	 $(LDC) $(LDC_FLAGS) plserver$O $(LIB_INSTALL) \
		-o plserver$E $(LDC_LIBS); \
	 fi
	-strip plserver$E
	-cp plserver$E $(BIN_DIR)
	-cd $(top_srcdir)/bindings/tk; \
	 cp pltk.h $(INCLUDE_DIR); \
	 cp *.itk *.tcl *.pal $(TCL_DIR)
	-if test ! -d $(DEMOS_DIR)/tk; then mkdir -p $(DEMOS_DIR)/tk; fi
	-$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/tk
	-cd $(top_srcdir)/examples/tk; cp * $(DEMOS_DIR)/tk
# Modified by Rafael Laboissiere <rafael@icp.oinpg.fr>
# on Fri Nov 13 03:37:04 CET 1998
#	-$(LN) $(DEMOS_DIR)/tcl/x??.tcl $(DEMOS_DIR)/tk
	( cd $(DEMOS_DIR)/tk ; $(LN) ../tcl/x??.tcl $(DEMOS_DIR)/tk )


