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