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.10 2008/03/30 18:11:58 swildner Exp $
4 .if exists
(..
/${MACHINE_PLATFORM}/Makefile.inc
)
5 .
include "../${MACHINE_PLATFORM}/Makefile.inc"
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
14 CLEANFILES
= softcore.c testmain testmain.o
15 CFLAGS
+= -ffreestanding
20 CFLAGS
+= -DTESTMAIN
-D_TESTMAIN
25 rel_open.o
: ..
/common
/rel_open.c
27 .
include <bsd.prog.mk
>
29 OBJS
+= stack_protector.o
33 stack_protector.o
: ..
/..
/libkern
/stack_protector.c
39 .PATH
: ${.CURDIR
}/softwords
40 SOFTWORDS
= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
42 # Optional OO extension softwords
43 #SOFTWORDS+= oo.fr classes.fr
45 .if defined
(REALLY_AMD64
)
49 CFLAGS
+= -I
${.CURDIR
} -I
${.CURDIR
}/${MACHINE_ARCH} -I
${.CURDIR
}/..
/common
51 softcore.c
: ${SOFTWORDS} softcore.awk
52 (cd
${.CURDIR
}/softwords
; cat
${SOFTWORDS} \
53 | awk
-f softcore.awk
-v datestamp
="`LC_ALL=C date`") > ${.TARGET
}
55 .if defined
(REALLY_AMD64
)
56 ${SRCS
:M
*.c
:R
:S
/$/.o
/g
}: machine
58 beforedepend
${OBJS}: machine
61 ${LN} -sf
${.CURDIR
}/..
/..
/i386
/include machine