# 
#       SCCS:  @(#)makefile	1.4 (98/02/27) 
# 
#  (C) Copyright 1998 , The Open Group
# 
#  All rights reserved.  No part of this source code may be reproduced,
#  stored in a retrieval system, or transmitted, in any form or by any
#  means, electronic, mechanical, photocopying, recording or otherwise,
#  except as stated in the end-user licence agreement, without the prior
#  permission of the copyright owners.
#
#
# ***********************************************************************
#
# DESCRIPTION:
#	TETware demonstration makefile 
#
# MODIFICATIONS:
# ***********************************************************************

# include file and library locations - don't change
LIBDIR	= ../../../../../lib/tet3
INCDIR	= ../../../../../inc/tet3

# SGS definitions - customise as required for your system
# name of the C compiler
#CC	= cc
# GNU CC
#CC	= gcc
# the following is appropriate when using the defined build environment
# on a Windows NT system
CC = cl -nologo

# flags for the C compiler
CFLAGS	= -I$(INCDIR)

# system libraries:
# For Distributed TETware
# the socket version on SVR4 and Solaris usually needs -lsocket -lnsl
# the XTI version usually needs -lxti
# the Windows NT version needs wsock32.lib
SYSLIBS = 

# suffixes - customise as required for your system
# object file suffix - .o on UNIX, .obj on Windows NT
O = .obj
# archive library suffix - .a on UNIX, .lib on Windows NT
A = .lib
# executable file suffix - blank on UNIX, .exe on Windows NT
E = .exe

# name of the rm 
RM = rm -f

all:	tc1$E 

tc1$E:	tc1.c $(INCDIR)/tet_api.h
	$(CC) $(CFLAGS) -o tc1$E tc1.c $(LIBDIR)/tcm$O $(LIBDIR)/libapi$A \
		$(SYSLIBS)

clean:
	$(RM) tc1$E *$O 
