Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids. Most
[dragonfly.git] / sys / boot / ficl / Makefile
1 # $FreeBSD: src/sys/boot/ficl/Makefile,v 1.17.2.6 2002/07/19 18:46:28 ru Exp $
2 # $DragonFly: src/sys/boot/ficl/Makefile,v 1.2 2003/06/17 04:28:17 dillon Exp $
3 #
4 .PATH:                  ${.CURDIR}/${MACHINE_ARCH}
5 BASE_SRCS=              dict.c ficl.c math64.c stack.c vm.c words.c
6 SRCS=                   ${BASE_SRCS} sysdep.c softcore.c
7 CLEANFILES=             softcore.c testmain testmain.o
8 .if ${MACHINE_ARCH} == "alpha"
9 CFLAGS+=                -mno-fp-regs
10 .endif
11 .if ${MACHINE_ARCH} == "i386"
12 CFLAGS+=                -mpreferred-stack-boundary=2
13 .endif
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=            yes
22 SRCS+=                  loader.c
23 .include <bsd.lib.mk>
24 .endif
25
26 # Standard softwords
27 SOFTWORDS=      softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
28                 ifbrack.fr
29 # Optional OO extension softwords
30 #SOFTWORDS+=    oo.fr classes.fr
31
32 .PATH:          ${.CURDIR}/softwords
33 CFLAGS+=        -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common -DFICL_TRACE
34
35 softcore.c:     ${SOFTWORDS} softcore.awk
36         (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
37             | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
38
39