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.gfx_loader.c += -I${SRCTOP}/sys/teken 15CFLAGS.gfx_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 24BASE_SRCS+= gfx_loader.c # Not TESTMAINable 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