/**/# Imakefile for contributed tcl-TCP
/**/# works with X11R6 and Solaris 2.3
#define DoSharedLib YES
#define DoNormalLib YES
#define DoDebugLib NO



#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'

SOTCPREV=2.1

LOCAL_LIB=/usr/local/lib/tcl




/**/#
/**/# C Compiler options
/**/#
/**/# 	CDEBUGFLAGS = -O -Bstatic
/**/#	         CC = gcc -Wall -fwritable-strings -static
/**/#
/**/#
/* assume posix system, for use with tcl/tclUnix.h */
DEFINES=-DHAVE_UNISTD_H
CDEBUGFLAGS = -g
/**/#
/**/# Indicate directories holding Tcl and Tk include files
/**/#
/**/# 	TCL_INCDIR = -I/usr/local/include/tcl
/**/#  	 TK_INCDIR = -I/usr/local/include/tk
/**/#

TCL_INCDIR = -I../../tcl
 TK_INCDIR = -I../../tk
/**/# where to find TCL and TK libraries to link with
TCLLIB=../tcl/libtcl.a
TKLIB = ../tk/libtk.a

/**/# -------- End of configurable options ------------ #

SHARED_SRCS =   clntStrmSock.c svrStrmSock.c hostGetByName.c  \
tcltcp_init.c readFullBuf.c tclTCP.c
SHARED_OBJS=   clntStrmSock.o svrStrmSock.o hostGetByName.o  \
tcltcp_init.o readFullBuf.o tclTCP.o


TCL_SRCS = simpleEvent.c 
TCL_OBJS = simpleEvent.o  $(SHARED_OBJS)
        

TK_SRCS = simpleEvent_Tk.c 
TK_OBJS = simpleEvent_Tk.o  $(SHARED_OBJS)

SRCS= $(TCL_SRCS) $(TK_SRCS) $(SHARED_SRCS)
OBJS = $(TCL_OBJS) $(TK_OBJS)
        




/**/# -------- End of configurable options ------------ #

INCLUDES = -I. $(TK_INCDIR) $(TCL_INCDIR)
LIBTCL = tclTCP
LIBTK = tkTCP



#include <Library.tmpl>
LibraryObjectRule()

simpleEvent_Tk.o: simpleEvent.c
simpleEvent_Xt.o: simpleEvent.c


#if DoSharedLib
SharedLibraryTarget($(LIBTCL),$(SOTCPREV),$(TCL_OBJS),.,.)
SharedLibraryTarget($(LIBTK),$(SOTCPREV),$(TK_OBJS),.,.)
InstallSharedLibrary($(LIBTCL),$(SOTCPREV),$(LOCAL_LIB))
InstallSharedLibrary($(LIBTK),$(SOTCPREV),$(LOCAL_LIB))

#endif

#if DoNormalLib
NormalLibraryTarget($(LIBTCL),$(TCL_OBJS))
NormalLibraryTarget($(LIBTK),$(TK_OBJS))
InstallLibrary($(LIBTCL),$(LOCAL_LIB))
InstallLibrary($(LIBTK),$(LOCAL_LIB))
#endif



DependTarget()
LintTarget()
