#
# bootpd   - BOOTP server daemon
#
# $Header: Makefile,v 1.15 89/01/10 14:58:43 ww0n Exp $
#

# The next few lines may be uncommented and changed to alter the default
# filenames bootpd uses for its configuration and dump files.
#CONFFILE=-DCONFIG_FILE=\"/etc/bootptab\"
DUMPFILE=-DDUMP_FILE=\"/tmp/bootp.dump\"
FILESPECS=${CONFFILE} ${DUMPFILE}

# Users of SunOS 4.0 may have to add -DSUNOS40 to BOOTPDOPT below.
# Remove the -DVEND_CMU if you don't wish to support the "CMU vendor format"
# in addition to the RFC1048 format.

BOOTPDOPT=-DSYSLOG -DDEBUG -DPRIVATE=static ${FILESPECS} -DVEND_CMU

INSTALL=/usr/bin/install
DESTDIR=
ETCDIR=/etc
MANDIR=/usr/man/man8
OBJS=bootpd.o readfile.o hash.o
CFLAGS=-DLINUX ${BOOTPDOPT}

all: bootpd

bootpd:	${OBJS}
	sh newvers.sh
	${CC} ${CFLAGS} -o bootpd version.c ${OBJS}

bootpd.o: bootpd.c bootpd.h bootp.h
readfile.o: readfile.c bootpd.h bootp.h
hash.o: hash.c hash.h

system: install

install: all
	${INSTALL} -c -s bootpd ${DESTDIR}${ETCDIR}/bootpd
	${INSTALL} -c -m 444 bootpd.8 ${DESTDIR}${MANDIR}/bootpd.8

clean:
	@rm -f core bootpd *.BAK *.CKP *~ .emacs* *.o version.c
