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}
|
2001-04-29 02:36:36 +00:00
|
|
|
BASE_SRCS= dict.c ficl.c math64.c search.c stack.c tools.c \
|
|
|
|
prefix.c loader.c vm.c words.c
|
1999-11-23 16:28:39 +00:00
|
|
|
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-08-11 23:23:20 +00:00
|
|
|
.if ${MACHINE_ARCH} == "i386"
|
|
|
|
CFLAGS+= -mpreferred-stack-boundary=2
|
|
|
|
.endif
|
2000-09-10 12:15:30 +00:00
|
|
|
.if HAVE_PNP
|
2000-09-10 17:11:27 +00:00
|
|
|
CFLAGS+= -DHAVE_PNP
|
2000-09-10 12:15:30 +00:00
|
|
|
.endif
|
2000-09-10 17:11:27 +00:00
|
|
|
.ifmake testmain
|
2000-01-28 02:40:23 +00:00
|
|
|
CFLAGS+= -DTESTMAIN -D_TESTMAIN
|
|
|
|
SRCS+= testmain.c
|
|
|
|
PROG= testmain
|
|
|
|
.include <bsd.prog.mk>
|
|
|
|
.else
|
|
|
|
LIB= ficl
|
|
|
|
INTERNALLIB= yes
|
|
|
|
INTERNALSTATICLIB= yes
|
|
|
|
NOPROFILE= yes
|
|
|
|
.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
|
2001-04-29 02:36:36 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common
|
1998-11-03 06:11:35 +00:00
|
|
|
|
1999-01-18 19:05:27 +00:00
|
|
|
softcore.c: ${SOFTWORDS} softcore.awk
|
2000-11-14 21:02:49 +00:00
|
|
|
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
|
2001-03-02 16:52:14 +00:00
|
|
|
| awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
|
1998-11-03 06:11:35 +00:00
|
|
|
|
1998-11-04 03:42:16 +00:00
|
|
|
|