Remove PC98 and Alpha support.
[dragonfly.git] / sys / boot / ficl / Makefile
... / ...
CommitLineData
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.5 2005/02/19 23:19:51 swildner Exp $
3#
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
13OBJS+= stack_protector.o
14
15stack_protector.o: ../../libkern/stack_protector.c
16
17CLEANFILES= softcore.c testmain testmain.o
18CFLAGS+= -ffreestanding
19.if ${MACHINE_ARCH} == "i386"
20CFLAGS+= -mpreferred-stack-boundary=2
21.endif
22.if HAVE_PNP
23CFLAGS+= -DHAVE_PNP
24.endif
25.ifmake testmain
26CFLAGS+= -DTESTMAIN -D_TESTMAIN
27SRCS+= testmain.c
28PROG= testmain
29.include <bsd.prog.mk>
30.else
31LIB= ficl
32INTERNALLIB= yes
33.include <bsd.lib.mk>
34.endif
35
36# Standard softwords
37.PATH: ${.CURDIR}/softwords
38SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
39 ifbrack.fr
40# Optional OO extension softwords
41#SOFTWORDS+= oo.fr classes.fr
42
43.if defined(REALLY_AMD64)
44CFLAGS+= -m32 -I.
45.endif
46
47CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common
48
49softcore.c: ${SOFTWORDS} softcore.awk
50 (cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
51 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
52
53.if defined(REALLY_AMD64)
54${SRCS:M*.c:R:S/$/.o/g}: machine
55
56beforedepend ${OBJS}: machine
57
58machine:
59 ln -sf ${.CURDIR}/../../i386/include machine
60
61CLEANFILES+= machine
62.endif