
MAKE=make
FILES=README Makefile nettest.h nettest.c nettestd.c nettest.8

all:
		echo You must specify what platform you are on,;\
		echo e.g. \"make linux\", \"make hpux\", \"make netbsd\";\
		echo; \

#Cray UNICOS definitions
unicos70 unicos71 unicos80:
	$(MAKE) objs \
		INCLUDE="-I." \
		DEFINES=" -DHAS_PARSETOS" \
		LIBS="" OPT=""

unicos60 unicos61:
	$(MAKE) objs \
		INCLUDE="-I." \
		DEFINES=" -DNO_ISO" \
		LIBS="" OPT=""

#BSD definitions
NetBSD netbsd FreeBSD freebsd FREEBSD:
	$(MAKE) objs \
		INCLUDE="-I." \
		DEFINES="-DWAIT3CODE -DBSD44 -DNAMEDPIPES -DNO_ISO" \
		OPT="-O" LIBS="-lcompat"

4.3bsd 4.3taho:
	$(MAKE) objs \
		INCLUDE="-I." \
		DEFINES=" -DNO_ISO" \
		LIBS="" OPT="-O"

4.4alpha:
	$(MAKE) objs \
		INCLUDE="" \
		DEFINES=" -DBSD44  -DNO_ISO" \
		OPT="-O" LIBS="-lcompat"

4.3reno:
	$(MAKE) objs \
		INCLUDE="" \
		DEFINES=" -DBSD44  \
				-DNO_ISO -Dsetpgid=setpgrp" \
		OPT="-O" LIBS="-lcompat"

#Linux defintions
Linux linux:
	$(MAKE) objs \
		INCLUDE="-I." \
		DEFINES="-DLINUX   -DNO_ISO" \
		LIBS="" OPT="-O"

#ULTRIX definitions
ultrix4.0 ultrix4.1 ultrix4.2 ultrix4.3:
	$(MAKE) objs \
		INCLUDE="-I." \
		DEFINES=" -DNO_ISO " \
		LIBS="" OPT="-O"

motorola:
	$(MAKE) objs \
		DEFINES="-DSYSV -DSIGCHLD=SIGCLD" \
		INCLUDE="" OPT="-O" LIBS="-linet"

CFLAGS=${OPT} ${INCLUDE} ${DEFINES}

objs: nettestd nettest

nettestd: nettestd.c nettest.h
	${CC} ${CFLAGS} nettestd.c -o nettestd ${LIBS}

nettest: nettest.c nettest.h
	${CC} ${CFLAGS} nettest.c -o nettest ${LIBS}

clean:
	rm -f core *.o a.out nettest nettestd

devclean: clean
	rm -f configure Makefile config.log config.status

