freebsd-dev/sys/boot/ficl/Makefile

35 lines
1012 B
Makefile
Raw Normal View History

1999-08-28 01:08:13 +00:00
# $FreeBSD$
#
.PATH: ${.CURDIR}/${MACHINE_ARCH}
LIB= ficl
NOPROFILE= yes
INTERNALLIB= yes
INTERNALSTATICLIB= yes
BASE_SRCS= dict.c ficl.c math64.c stack.c vm.c words.c
SRCS= ${BASE_SRCS} sysdep.c softcore.c
CLEANFILES= softcore.c testmain
# Standard softwords
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
ifbrack.fr
# Optional OO extension softwords
#SOFTWORDS+= oo.fr classes.fr
.PATH: ${.CURDIR}/softwords
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -DFICL_TRACE
softcore.c: ${SOFTWORDS} softcore.awk
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET}
.include <bsd.lib.mk>
testmain: ${.CURDIR}/testmain.c ${SRCS}
@for i in ${BASE_SRCS}; do echo $${i}... ; \
${CC} -c ${CFLAGS} -DTESTMAIN ${.CURDIR}/$${i}; done
@echo softdep.c...
@${CC} -c ${CFLAGS} -D_TESTMAIN softcore.c
@echo sysdep.c
@${CC} -c ${CFLAGS} -DTESTMAIN ${.CURDIR}/${MACHINE_ARCH}/sysdep.c
${CC} -o ${.TARGET} ${CFLAGS} ${.CURDIR}/testmain.c ${OBJS}