Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / boot / ficl / Makefile
CommitLineData
984263bc
MD
1# $FreeBSD: src/sys/boot/ficl/Makefile,v 1.17.2.6 2002/07/19 18:46:28 ru Exp $
2#
3.PATH: ${.CURDIR}/${MACHINE_ARCH}
4BASE_SRCS= dict.c ficl.c math64.c stack.c vm.c words.c
5SRCS= ${BASE_SRCS} sysdep.c softcore.c
6CLEANFILES= softcore.c testmain testmain.o
7.if ${MACHINE_ARCH} == "alpha"
8CFLAGS+= -mno-fp-regs
9.endif
10.if ${MACHINE_ARCH} == "i386"
11CFLAGS+= -mpreferred-stack-boundary=2
12.endif
13.ifmake testmain
14CFLAGS+= -DTESTMAIN -D_TESTMAIN
15SRCS+= testmain.c
16PROG= testmain
17.include <bsd.prog.mk>
18.else
19LIB= ficl
20INTERNALLIB= yes
21SRCS+= loader.c
22.include <bsd.lib.mk>
23.endif
24
25# Standard softwords
26SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
27 ifbrack.fr
28# Optional OO extension softwords
29#SOFTWORDS+= oo.fr classes.fr
30
31.PATH: ${.CURDIR}/softwords
32CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common -DFICL_TRACE
33
34softcore.c: ${SOFTWORDS} softcore.awk
35 (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
36 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
37
38