1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1998-11-03 01:11:35 -05:00
|
|
|
#
|
1999-11-23 11:28:39 -05:00
|
|
|
.PATH: ${.CURDIR}/${MACHINE_ARCH}
|
|
|
|
|
BASE_SRCS= dict.c ficl.c math64.c stack.c vm.c words.c
|
|
|
|
|
SRCS= ${BASE_SRCS} sysdep.c softcore.c
|
2000-01-27 22:07:25 -05:00
|
|
|
CLEANFILES= softcore.c testmain testmain.o
|
2000-05-12 17:51:20 -04:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
|
CFLAGS+= -mno-fp-regs
|
|
|
|
|
.endif
|
2000-08-11 19:23:20 -04:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
|
CFLAGS+= -mpreferred-stack-boundary=2
|
|
|
|
|
.endif
|
2000-09-10 08:15:30 -04:00
|
|
|
.if HAVE_PNP
|
2000-09-10 13:11:27 -04:00
|
|
|
CFLAGS+= -DHAVE_PNP
|
2000-09-10 08:15:30 -04:00
|
|
|
.endif
|
2000-09-10 13:11:27 -04:00
|
|
|
.ifmake testmain
|
2000-01-27 21:40:23 -05:00
|
|
|
CFLAGS+= -DTESTMAIN -D_TESTMAIN
|
|
|
|
|
SRCS+= testmain.c
|
|
|
|
|
PROG= testmain
|
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
.else
|
|
|
|
|
LIB= ficl
|
|
|
|
|
INTERNALLIB= yes
|
|
|
|
|
INTERNALSTATICLIB= yes
|
|
|
|
|
NOPROFILE= yes
|
2000-06-07 18:07:01 -04:00
|
|
|
SRCS+= loader.c
|
2000-01-27 21:40:23 -05:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
.endif
|
1998-11-03 01:11:35 -05:00
|
|
|
|
|
|
|
|
# Standard softwords
|
1999-09-29 00:43:16 -04:00
|
|
|
SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
|
|
|
|
|
ifbrack.fr
|
1998-11-03 01:11:35 -05:00
|
|
|
# Optional OO extension softwords
|
|
|
|
|
#SOFTWORDS+= oo.fr classes.fr
|
|
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/softwords
|
2000-06-07 18:07:01 -04:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common -DFICL_TRACE
|
1998-11-03 01:11:35 -05:00
|
|
|
|
1999-01-18 14:05:27 -05:00
|
|
|
softcore.c: ${SOFTWORDS} softcore.awk
|
2000-11-14 16:02:49 -05:00
|
|
|
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
|
2000-11-30 20:58:48 -05:00
|
|
|
| awk -f softcore.awk -v datestamp="`LC_TIME=C date`") > ${.TARGET}
|
1998-11-03 01:11:35 -05:00
|
|
|
|
1998-11-03 22:42:16 -05:00
|
|
|
|