# @(#) Makefile 1.2 91/05/20 13:28:06

## Begin configuration options

# If you want to enable host access control, define the HOST_ACCESS macro
# in the  CFLAGS line. For example,
#
# CFLAGS = -O -DHOSTS_ACCESS 
#
# Note: host access control requires the strtok() and strchr() routines.
#
# If your library supports NIS-style netgroups, compile with -DNETGROUP
#
# If your C library does not have memcmp(3), compile with -Dmemcmp=bcmp.
#
# Compile with -DPARANOID if you want to refuse connections from hosts
# with names that do not match their address.

CFLAGS	= -O -DHOSTS_ACCESS -DNETGROUP -DPARANOID

# Include the file strcasecmp.o if it is not provided by your C library.

AUX_OBJ	= # strcasecmp.o

# Some System-V versions require that you explicitly specify the networking
# libraries.

LIBS	=

## End configuration options

TCPD_OBJ= tcpd.o fromhost.o hosts_access.o
MISC_OBJ= miscd.o fromhost.o hosts_access.o

all:	tcpd miscd

tcpd:	$(TCPD_OBJ) $(AUX_OBJ)
	$(CC) $(CFLAGS) -o $@ $(TCPD_OBJ) $(AUX_OBJ) $(LIBS)

miscd:	$(MISC_OBJ) $(AUX_OBJ)
	$(CC) $(CFLAGS) -o $@ $(MISC_OBJ) $(AUX_OBJ) $(LIBS)

shar:	
	@shar README miscd.c tcpd.c fromhost.c hosts_access.c Makefile \
	hosts_access.5 strcasecmp.c BLURB

archive:
	$(ARCHIVE) README miscd.c tcpd.c fromhost.c hosts_access.c Makefile \
	hosts_access.5 strcasecmp.c BLURB

clean:
	rm -f *.o core

lint:
	lint -DHOSTS_ACCESS tcpd.c fromhost.c hosts_access.c
	lint -DHOSTS_ACCESS miscd.c fromhost.c hosts_access.c
