# Last updated : Thu Jun 22 17:34:24 1995
# V0.44

PROG=bootpc
CFLAGS=-O6 -ansi -Wall -pedantic -m486

# list the Cfiles here
CFILES=bootpc.c

# List the header files here
CHEADS=bootp.h

# the delete command
RM=/bin/rm

# we generate this from the list of C files above
OBJS=$(CFILES:.c=.o)

%.o:	%.c $(CHEADS)
	$(CC) $(CFLAGS) -c $(*).c

all:	$(PROG)

clean:
	${RM} -f ${OBJS} ${PROG}

${PROG}: ${OBJS}
	${CC} -o ${PROG} ${CFLAGS} ${OBJS}
	strip ${PROG}

install: all
	install -o root -g root -m 0755 bootpc ${DEBDIR}/sbin
	install -o root -g root -m 0644 COPYRIGHT ${DEBDIR}/usr/doc/copyright/bootpc
	install -o root -g root -m 0755 -d ${DEBDIR}/usr/doc/examples/bootpc
	install -o root -g root -m 0644 rc.bootp ${DEBDIR}/usr/doc/examples/bootpc
	install -o root -g root -m 0644 WHEN-IT-FAILS ${DEBDIR}/usr/doc/examples/bootpc

