]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/boot/ficl/Makefile
Move MEM_USR a page upwards to make space for larger UFS1 boot2.
[FreeBSD/FreeBSD.git] / sys / boot / ficl / Makefile
1 # $FreeBSD$
2 #
3 .PATH: ${.CURDIR}/${MACHINE_ARCH}
4 BASE_SRCS=      dict.c ficl.c fileaccess.c float.c loader.c math64.c \
5                 prefix.c search.c stack.c tools.c vm.c words.c
6
7 SRCS=           ${BASE_SRCS} sysdep.c softcore.c
8 CLEANFILES=     softcore.c testmain testmain.o
9 CFLAGS+=        -ffreestanding
10 .if ${MACHINE_ARCH} == "alpha"
11 CFLAGS+=        -mno-fp-regs
12 .endif
13 .if ${MACHINE_ARCH} == "i386"
14 CFLAGS+=        -mpreferred-stack-boundary=2
15 .endif
16 .if HAVE_PNP
17 CFLAGS+=        -DHAVE_PNP
18 .endif
19 .ifmake testmain
20 CFLAGS+=        -DTESTMAIN -D_TESTMAIN
21 SRCS+=          testmain.c
22 PROG=           testmain
23 .include <bsd.prog.mk>
24 .else
25 LIB=            ficl
26 INTERNALLIB=    yes
27 .include <bsd.lib.mk>
28 .endif
29
30 # Standard softwords
31 .PATH: ${.CURDIR}/softwords
32 SOFTWORDS=      softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
33                 ifbrack.fr
34 # Optional OO extension softwords
35 #SOFTWORDS+=    oo.fr classes.fr
36
37 CFLAGS+=        -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common
38
39 softcore.c: ${SOFTWORDS} softcore.awk
40         (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
41             | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}