]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - stand/ficl/Makefile
MFC r325834,r325997,326502: Move sys/boot to stand/
[FreeBSD/FreeBSD.git] / stand / ficl / Makefile
1 # $FreeBSD$
2 #
3
4 .include <bsd.init.mk>
5 .include "${BOOTSRC}/ficl.mk"
6
7 BASE_SRCS=      dict.c ficl.c fileaccess.c float.c loader.c math64.c \
8                 prefix.c search.c stack.c tools.c vm.c words.c
9
10 SRCS=           ${BASE_SRCS} sysdep.c softcore.c
11 CLEANFILES+=    softcore.c testmain testmain.o
12
13 .include <bsd.stand.mk>
14 .ifmake testmain
15 CFLAGS+=        -DTESTMAIN -D_TESTMAIN
16 SRCS+=          testmain.c
17 PROG=           testmain
18 .include <bsd.prog.mk>
19 .else
20 LIB=            ficl
21 INTERNALLIB=
22 .include <bsd.lib.mk>
23 .endif
24
25 # Standard softwords
26 .PATH: ${FICLSRC}/softwords
27 SOFTWORDS=      softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
28                 ifbrack.fr
29
30 softcore.c: ${SOFTWORDS} softcore.awk
31         (cd ${FICLSRC}/softwords; cat ${SOFTWORDS} \
32             | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}