1# $FreeBSD$ 2# 3 4.include <bsd.init.mk> 5.include "${BOOTSRC}/ficl.mk" 6 7.PATH: ${FICLSRC} ${FICLSRC}/${FICL_CPUARCH} 8 9BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \ 10 prefix.c search.c stack.c tools.c vm.c words.c 11 12SRCS= ${BASE_SRCS} sysdep.c softcore.c 13CLEANFILES+= softcore.c testmain testmain.o 14 15CFLAGS.loader.c += -I${SRCTOP}/sys/teken 16CFLAGS.loader.c += -I${SRCTOP}/contrib/pnglite 17.ifmake testmain 18CFLAGS= -DTESTMAIN -D_TESTMAIN 19CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC} 20SRCS+= testmain.c 21PROG= testmain 22.include <bsd.prog.mk> 23.else 24LIB= ficl 25.include <bsd.lib.mk> 26.endif 27 28# Standard softwords 29.PATH: ${FICLSRC}/softwords 30SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \ 31 ifbrack.fr 32 33softcore.c: ${SOFTWORDS} softcore.awk 34 (cd ${FICLSRC}/softwords; cat ${SOFTWORDS} \ 35 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET} 36