# FreeBSD installer prototype — milestone 1
#
# On FreeBSD (the real thing):      make
# On any host (render test only):   make test && ./test_bmp

PROG=	fbproto
CFLAGS+=	-O2 -Wall -Wextra

all: ${PROG}

${PROG}: main_freebsd.c render.c render.h font8.h font32.h
	${CC} ${CFLAGS} -o ${PROG} main_freebsd.c render.c

test: test_bmp

test_bmp: test_bmp.c render.c render.h font8.h font32.h
	${CC} ${CFLAGS} -o test_bmp test_bmp.c render.c

clean:
	rm -f ${PROG} test_bmp welcome.bmp

.PHONY: all test clean
