1 # $FreeBSD: src/sys/boot/ficl/Makefile,v 1.35 2003/06/30 19:08:49 ru Exp $
2 # $DragonFly: src/sys/boot/ficl/Makefile,v 1.7 2005/04/20 20:27:04 joerg Exp $
4 .if ${MACHINE_ARCH} == "amd64"
5 .MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
8 .PATH: ${.CURDIR}/${MACHINE_ARCH}
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
12 SRCS= ${BASE_SRCS} sysdep.c softcore.c
13 OBJS+= stack_protector.o
15 stack_protector.o: ../../libkern/stack_protector.c
17 CLEANFILES= softcore.c testmain testmain.o
18 CFLAGS+= -ffreestanding
19 .if ${MACHINE_ARCH} == "i386"
20 CFLAGS+= -mpreferred-stack-boundary=2
26 CFLAGS+= -DTESTMAIN -D_TESTMAIN
29 .include <bsd.prog.mk>
37 .PATH: ${.CURDIR}/softwords
38 SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
40 # Optional OO extension softwords
41 #SOFTWORDS+= oo.fr classes.fr
43 .if defined(REALLY_AMD64)
47 CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common
49 softcore.c: ${SOFTWORDS} softcore.awk
50 (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
51 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
53 .if defined(REALLY_AMD64)
54 ${SRCS:M*.c:R:S/$/.o/g}: machine
56 beforedepend ${OBJS}: machine
59 ln -sf ${.CURDIR}/../../i386/include machine