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