1999-08-27 21:08:13 -04:00
|
|
|
# $FreeBSD$
|
1998-11-03 01:11:35 -05:00
|
|
|
#
|
2012-12-21 00:22:14 -05:00
|
|
|
|
2016-10-25 13:31:57 -04:00
|
|
|
.include "${.CURDIR}/../Makefile.ficl"
|
2012-12-21 00:22:14 -05:00
|
|
|
|
2002-05-09 13:47:25 -04: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 13:45:28 -04:00
|
|
|
|
2002-05-09 13:47:25 -04:00
|
|
|
SRCS= ${BASE_SRCS} sysdep.c softcore.c
|
|
|
|
|
CLEANFILES= softcore.c testmain testmain.o
|
2014-04-03 17:18:03 -04:00
|
|
|
.if ${MACHINE_CPUARCH} == "i386" || \
|
|
|
|
|
(${MACHINE_CPUARCH} == "amd64" && defined(FICL32))
|
2012-10-20 12:57:23 -04:00
|
|
|
CFLAGS+= -march=i386
|
2014-02-23 17:10:25 -05:00
|
|
|
.endif
|
2000-09-10 08:15:30 -04:00
|
|
|
.if HAVE_PNP
|
2002-05-09 13:47:25 -04:00
|
|
|
CFLAGS+= -DHAVE_PNP
|
2000-09-10 08:15:30 -04:00
|
|
|
.endif
|
2015-08-27 19:46:42 -04:00
|
|
|
.include <bsd.stand.mk>
|
2000-09-10 13:11:27 -04:00
|
|
|
.ifmake testmain
|
2002-05-09 13:47:25 -04:00
|
|
|
CFLAGS+= -DTESTMAIN -D_TESTMAIN
|
|
|
|
|
SRCS+= testmain.c
|
|
|
|
|
PROG= testmain
|
2000-01-27 21:40:23 -05:00
|
|
|
.include <bsd.prog.mk>
|
|
|
|
|
.else
|
2002-05-09 13:47:25 -04:00
|
|
|
LIB= ficl
|
2004-10-24 11:33:08 -04:00
|
|
|
INTERNALLIB=
|
2000-01-27 21:40:23 -05:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
|
.endif
|
1998-11-03 01:11:35 -05:00
|
|
|
|
|
|
|
|
# Standard softwords
|
2012-12-21 00:22:14 -05:00
|
|
|
.PATH: ${FICLDIR}/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
|
|
|
|
|
|
2002-05-09 13:47:25 -04:00
|
|
|
softcore.c: ${SOFTWORDS} softcore.awk
|
2012-12-21 00:22:14 -05:00
|
|
|
(cd ${FICLDIR}/softwords; cat ${SOFTWORDS} \
|
2001-03-02 11:52:14 -05:00
|
|
|
| awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
|