# Check that the definitions below are correct for your system
# for Windows NT, we need to use .exe, .obj, .lib as appropriate

LIBDIR	= $(TET_ROOT)/lib/tet3
INCDIR	= $(TET_ROOT)/inc/tet3
CC	= cc
# GNU CC
#CC	= gcc

CFLAGS	= -I$(INCDIR)
# for SunOS4.1
#CFLAGS =  -I$(INCDIR) -D_POSIX_SOURCE -DNSIG=32 -DEXIT_SUCCESS=0 -DEXIT_FAILURE=1 -DNULL=0

# when using Distributed TETware on systems such as SVR4 and Solaris
# SYSLIBS = -lsocket -lnsl
SYSLIBS =

all:	tc1.exe
	chmod a+x tc1.exe tc2.exe tc3.exe

tc1:	tc1.c $(INCDIR)/tet_api.h
	$(CC) $(CFLAGS) -o tc1.exe tc1.c $(LIBDIR)/tcm.obj $(LIBDIR)/libapi.lib $(SYSLIBS)


