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