#
# Makefile for libsocket test programs
#
# libsocket Copyright 1997, 1998 by Indrek Mandre
# libsocket Copyright 1997, 1998 by Richard Dawe
#
# Originally written by Indrek Mandre, modified by Richard Dawe
#

include ../Makefile.cfg

CFLAGS  += -I../include
LDFLAGS += -L../lib
LIBS     = -lsocket


TARGETS = 	netserv.exe netproto.exe server.exe client.exe	\
		httpget.exe resit.exe select.exe diag.exe	\
		netnet.exe ioctl.exe httpgetn.exe		\
		servern.exe clientn.exe unixserv.exe		\
		unixcli.exe solist.exe

.PHONY:	all dep clean distclean

all: $(TARGETS)

%.exe:	%.c
	$(CC) -o $@ $(CFLAGS) $< $(LDFLAGS) $(LIBS)
ifeq ($(LSCK_STRIPALL),y)
	strip $@
endif

dep:
	$(CC) $(CFLAGS) -MM *.c > depend.dep

clean:

distclean: clean
	rm -f *.\$$\$$\$$
	rm -f *~
	rm -f $(TARGETS)

$(OBJS) $(LOBJS):
include depend.dep
