summaryrefslogtreecommitdiffstats
path: root/sys/boot/ficl/Makefile
blob: ab107162070423c206839cbc67cbd8fb989f660b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: Makefile,v 1.9 1999/03/17 23:03:36 dcs Exp $
#
LIB=			ficl
NOPROFILE=		yes
INTERNALLIB=		yes
INTERNALSTATICLIB=	yes
BASE_SRCS=		dict.c ficl.c math64.c stack.c sysdep.c vm.c words.c
SRCS=			${BASE_SRCS} softcore.c
CLEANFILES=		softcore.c testmain

# Standard softwords
SOFTWORDS=	softcore.fr jhlocal.fr marker.fr freebsd.fr
# Optional OO extension softwords
#SOFTWORDS+=	oo.fr classes.fr

.PATH:		${.CURDIR}/softwords
CFLAGS+=	-I${.CURDIR} -DFICL_TRACE

softcore.c:	${SOFTWORDS} softcore.awk
	(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET}

.include <bsd.lib.mk>

testmain:      ${.CURDIR}/testmain.c ${SRCS}
	@for i in ${BASE_SRCS}; do echo $${i}... ; \
	  ${CC} -c ${CFLAGS} -DTESTMAIN ${.CURDIR}/$${i}; done
	@echo softdep.c...
	@${CC} -c ${CFLAGS} -D_TESTMAIN softcore.c
	cc -o ${.TARGET} ${.CURDIR}/testmain.c ${OBJS}

OpenPOWER on IntegriCloud