# $Id: Makefile,v 2.4 90/07/11 13:11:01 mbp Exp Locker: mbp $

#################################
#  Begin configuration section  #
#################################

# The following must be hard-coded if not using csh; if not using csh,
# remove the comment char (#) from the beginning of the next line and
# replace the path with the complete pathname of the dir that this
# makefile is in:
#PWD=/u/yourlogin/src/bothpipe

# compiler options
OPTIONS=-g

# The next four macros should give the pathnames of the system header
# files
#		<sys/types.h>
#		<sys/socket.h>
#		<netinet/in.h>
#		<netdb.h>
# We do this via macros because on some systems these files have
# pathnames other than these.  (For example, on the IRIS they are
# <bsd/sys/types.h>, <bsd/sys/socket.h>, <bsd/netinet/in.h>, and
# <bsd/netdb.h>).
SYS_TYPES_H=<sys/types.h>
SYS_SOCKET_H=<sys/socket.h>
NETINET_IN_H=<netinet/in.h>
NETDB_H=<netdb.h>

####################################
#    End configuration section     #
# don't change anything below here #
####################################

SHELL=/bin/sh

all:	bothpipe.o

bothpipe.o:	bothpipe.c bothpipe.h
	cc -c $(OPTIONS)			\
	  -DSYS_TYPES_H='$(SYS_TYPES_H)'	\
	  -DSYS_SOCKET_H='$(SYS_SOCKET_H)'	\
	  -DNETINET_IN_H='$(NETINET_IN_H)'	\
	  -DNETDB_H='$(NETDB_H)'		\
	  -o bothpipe.o bothpipe.c

install:
	# (nothing to install)

clean:
	/bin/rm -f *~ ;

veryclean:	clean
	/bin/rm -f bothpipe.o ;
