PROG=bootpc
CFLAGS=-O2 -ansi -Wall -pedantic

# 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}
