1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-11-03 06:11:35 +00:00
|
|
|
#
|
1999-11-23 16:28:39 +00: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-28 03:07:25 +00:00
|
|
|
CLEANFILES= softcore.c testmain testmain.o
|
2000-05-12 21:51:20 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
CFLAGS+= -mno-fp-regs
|
|
|
|
.endif
|
2000-01-28 02:40:23 +00:00
|
|
|
.ifmake testmain
|
|
|
|
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 22:07:01 +00:00
|
|
|
SRCS+= loader.c
|
2000-01-28 02:40:23 +00:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.endif
|
1998-11-03 06:11:35 +00:00
|
|
|
|
|
|
|
# Standard 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
|
|
|
# Optional OO extension softwords
|
|
|
|
#SOFTWORDS+= oo.fr classes.fr
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/softwords
|
2000-06-07 22:07:01 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common -DFICL_TRACE
|
1998-11-03 06:11:35 +00:00
|
|
|
|
1999-01-18 19:05:27 +00:00
|
|
|
softcore.c: ${SOFTWORDS} softcore.awk
|
|
|
|
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET}
|
1998-11-03 06:11:35 +00:00
|
|
|
|
1998-11-04 03:42:16 +00:00
|
|
|
|