#
progs=tcpserver tcpclient udpclient udpserver

# please note the following:
#
# 1. how to do sockets on solaris
# 2. how to do sockets on the rest of the planet.
#	(well not the microsoft part)
#
# for SunOS, linux, BSD, comment SOLARISLIBS out
# for Solaris comment SOLARISLIBS in
#
# local PSU solaris systems:
#	1. SOLARISLIBS must be on
#	2. use gcc, not cc
#	3. ignore warnings ... 
#
# If you do this on linux, use cc/no funky solaris libs
#
SOLARISLIBS= -lsocket -lnsl 
#CC=cc
CC=gcc

all: $(progs)

tcpserver: tcpserver.c
	$(CC) -g -o tcpserver tcpserver.c $(SOLARISLIBS)

tcpclient: tcpclient.c
	$(CC) -g -o tcpclient tcpclient.c $(SOLARISLIBS)

udpclient: udpclient.c
	$(CC) -g -o udpclient udpclient.c $(SOLARISLIBS)

udpserver: udpserver.c
	$(CC) -g -o udpserver udpserver.c $(SOLARISLIBS)

clean:
	rm $(progs)
