1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-11-03 06:11:35 +00:00
|
|
|
#
|
2012-12-21 05:22:14 +00:00
|
|
|
|
2017-10-29 05:27:22 +00:00
|
|
|
.include <bsd.init.mk>
|
|
|
|
.include "${BOOTSRC}/ficl.mk"
|
2012-12-21 05:22:14 +00:00
|
|
|
|
2017-12-08 22:19:41 +00:00
|
|
|
.PATH: ${FICLSRC} ${FICLSRC}/${FICL_CPUARCH}
|
|
|
|
|
2002-05-09 17:47:25 +00:00
|
|
|
BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \
|
|
|
|
prefix.c search.c stack.c tools.c vm.c words.c
|
2002-04-09 17:45:28 +00:00
|
|
|
|
2002-05-09 17:47:25 +00:00
|
|
|
SRCS= ${BASE_SRCS} sysdep.c softcore.c
|
2017-11-10 23:54:58 +00:00
|
|
|
CLEANFILES+= softcore.c testmain testmain.o
|
2017-11-06 15:21:51 +00:00
|
|
|
|
2020-12-21 05:31:16 +00:00
|
|
|
CFLAGS.loader.c += -I${SRCTOP}/sys/teken
|
|
|
|
CFLAGS.loader.c += -I${SRCTOP}/contrib/pnglite
|
2000-09-10 17:11:27 +00:00
|
|
|
.ifmake testmain
|
2018-03-07 17:18:46 +00:00
|
|
|
CFLAGS= -DTESTMAIN -D_TESTMAIN
|
|
|
|
CFLAGS+= -I${FICLSRC} -I${FICLSRC}/${FICL_CPUARCH} -I${LDRSRC}
|
2002-05-09 17:47:25 +00:00
|
|
|
SRCS+= testmain.c
|
|
|
|
PROG= testmain
|
2000-01-28 02:40:23 +00:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.else
|
2002-05-09 17:47:25 +00:00
|
|
|
LIB= ficl
|
2000-01-28 02:40:23 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.endif
|
1998-11-03 06:11:35 +00:00
|
|
|
|
|
|
|
# Standard softwords
|
2017-10-22 22:50:08 +00:00
|
|
|
.PATH: ${FICLSRC}/softwords
|
1999-09-29 04:43:16 +00:00
|
|
|
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
|
|
|
|
ifbrack.fr
|
1998-11-03 06:11:35 +00:00
|
|
|
|
2002-05-09 17:47:25 +00:00
|
|
|
softcore.c: ${SOFTWORDS} softcore.awk
|
2017-10-22 22:50:08 +00:00
|
|
|
(cd ${FICLSRC}/softwords; cat ${SOFTWORDS} \
|
2001-03-02 16:52:14 +00:00
|
|
|
| awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
|