Verify code assumption on number of processors with a kernel assertion.
[dragonfly.git] / sys / boot / ficl / Makefile
CommitLineData
5ee58eed
MD
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.3 2003/11/10 06:08:33 dillon Exp $
984263bc 3#
5ee58eed
MD
4.if ${MACHINE_ARCH} == "amd64"
5.MAKEFLAGS: MACHINE_ARCH=i386 MACHINE=i386 REALLY_AMD64=true
6.endif
7
8.PATH: ${.CURDIR}/${MACHINE_ARCH}
9BASE_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
11
12SRCS= ${BASE_SRCS} sysdep.c softcore.c
13CLEANFILES= softcore.c testmain testmain.o
14CFLAGS+= -ffreestanding
984263bc 15.if ${MACHINE_ARCH} == "alpha"
5ee58eed 16CFLAGS+= -mno-fp-regs
984263bc
MD
17.endif
18.if ${MACHINE_ARCH} == "i386"
5ee58eed
MD
19CFLAGS+= -mpreferred-stack-boundary=2
20.endif
21.if ${MACHINE} == "pc98"
22CFLAGS+= -DPC98
23.endif
24.if HAVE_PNP
25CFLAGS+= -DHAVE_PNP
984263bc
MD
26.endif
27.ifmake testmain
5ee58eed
MD
28CFLAGS+= -DTESTMAIN -D_TESTMAIN
29SRCS+= testmain.c
30PROG= testmain
984263bc
MD
31.include <bsd.prog.mk>
32.else
5ee58eed
MD
33LIB= ficl
34INTERNALLIB= yes
984263bc
MD
35.include <bsd.lib.mk>
36.endif
37
38# Standard softwords
5ee58eed 39.PATH: ${.CURDIR}/softwords
984263bc
MD
40SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
41 ifbrack.fr
42# Optional OO extension softwords
43#SOFTWORDS+= oo.fr classes.fr
44
5ee58eed
MD
45.if defined(REALLY_AMD64)
46CFLAGS+= -m32 -I.
47.endif
48
49CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common
984263bc 50
5ee58eed 51softcore.c: ${SOFTWORDS} softcore.awk
984263bc
MD
52 (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
53 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
54
5ee58eed
MD
55.if defined(REALLY_AMD64)
56${SRCS:M*.c:R:S/$/.o/g}: machine
57
58beforedepend ${OBJS}: machine
984263bc 59
5ee58eed
MD
60machine:
61 ln -sf ${.CURDIR}/../../i386/include machine
62
63CLEANFILES+= machine
64.endif