Deleted Added
full compact
Makefile (225736) Makefile (243219)
1# $FreeBSD: stable/9/sys/boot/userboot/ficl/Makefile 223695 2011-06-30 16:08:56Z dfr $
1# $FreeBSD: stable/9/sys/boot/userboot/ficl/Makefile 243219 2012-11-18 12:28:29Z avg $
2#
3.include <bsd.own.mk>
4MK_SSP= no
5
6.PATH: ${.CURDIR}/../../ficl
7.PATH: ${.CURDIR}/../../ficl/${MACHINE_CPUARCH}
8BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \
9 prefix.c search.c stack.c tools.c vm.c words.c
10
11SRCS= ${BASE_SRCS} sysdep.c softcore.c
12CLEANFILES= softcore.c testmain testmain.o
13CFLAGS+= -ffreestanding -fPIC
14.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
2#
3.include <bsd.own.mk>
4MK_SSP= no
5
6.PATH: ${.CURDIR}/../../ficl
7.PATH: ${.CURDIR}/../../ficl/${MACHINE_CPUARCH}
8BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \
9 prefix.c search.c stack.c tools.c vm.c words.c
10
11SRCS= ${BASE_SRCS} sysdep.c softcore.c
12CLEANFILES= softcore.c testmain testmain.o
13CFLAGS+= -ffreestanding -fPIC
14.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
15#CFLAGS+= -march=i386
15CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
16.endif
17.if ${MACHINE_CPUARCH} == "i386"
18CFLAGS+= -mpreferred-stack-boundary=2
19CFLAGS+= -mno-sse3
20.endif
21.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
22CFLAGS+= -msoft-float
23.endif
24.if ${MACHINE} == "pc98"
25CFLAGS+= -Os -DPC98
26.endif
27.if HAVE_PNP
28CFLAGS+= -DHAVE_PNP
29.endif
30.ifmake testmain
31CFLAGS+= -DTESTMAIN -D_TESTMAIN
32SRCS+= testmain.c
33PROG= testmain
34.include <bsd.prog.mk>
35.else
36LIB= ficl
37INTERNALLIB=
38.include <bsd.lib.mk>
39.endif
40
41# Standard softwords
42.PATH: ${.CURDIR}/../../ficl/softwords
43SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
44 ifbrack.fr
45# Optional OO extension softwords
46#SOFTWORDS+= oo.fr classes.fr
47
48#.if ${MACHINE_CPUARCH} == "amd64"
16CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2
17.endif
18.if ${MACHINE_CPUARCH} == "i386"
19CFLAGS+= -mpreferred-stack-boundary=2
20CFLAGS+= -mno-sse3
21.endif
22.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm"
23CFLAGS+= -msoft-float
24.endif
25.if ${MACHINE} == "pc98"
26CFLAGS+= -Os -DPC98
27.endif
28.if HAVE_PNP
29CFLAGS+= -DHAVE_PNP
30.endif
31.ifmake testmain
32CFLAGS+= -DTESTMAIN -D_TESTMAIN
33SRCS+= testmain.c
34PROG= testmain
35.include <bsd.prog.mk>
36.else
37LIB= ficl
38INTERNALLIB=
39.include <bsd.lib.mk>
40.endif
41
42# Standard softwords
43.PATH: ${.CURDIR}/../../ficl/softwords
44SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
45 ifbrack.fr
46# Optional OO extension softwords
47#SOFTWORDS+= oo.fr classes.fr
48
49#.if ${MACHINE_CPUARCH} == "amd64"
49#CFLAGS+= -m32 -march=i386 -I.
50#CFLAGS+= -m32 -I.
50#.endif
51
52.if ${MACHINE_ARCH} == "powerpc64"
53CFLAGS+= -m32 -mcpu=powerpc -I.
54.endif
55
56CFLAGS+= -I${.CURDIR}/../../ficl
57CFLAGS+= -I${.CURDIR}/../../ficl/${MACHINE_CPUARCH}
58CFLAGS+= -I${.CURDIR}/../../common
59
60softcore.c: ${SOFTWORDS} softcore.awk
61 (cd ${.CURDIR}/../../ficl/softwords; cat ${SOFTWORDS} \
62 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
63
64#.if ${MACHINE_CPUARCH} == "amd64"
65#${SRCS:M*.c:R:S/$/.o/g}: machine
66#
67#beforedepend ${OBJS}: machine
68#
69#machine:
70# ln -sf ${.CURDIR}/../../i386/include machine
71#
72#CLEANFILES+= machine
73#.endif
51#.endif
52
53.if ${MACHINE_ARCH} == "powerpc64"
54CFLAGS+= -m32 -mcpu=powerpc -I.
55.endif
56
57CFLAGS+= -I${.CURDIR}/../../ficl
58CFLAGS+= -I${.CURDIR}/../../ficl/${MACHINE_CPUARCH}
59CFLAGS+= -I${.CURDIR}/../../common
60
61softcore.c: ${SOFTWORDS} softcore.awk
62 (cd ${.CURDIR}/../../ficl/softwords; cat ${SOFTWORDS} \
63 | awk -f softcore.awk -v datestamp="`LC_ALL=C date`") > ${.TARGET}
64
65#.if ${MACHINE_CPUARCH} == "amd64"
66#${SRCS:M*.c:R:S/$/.o/g}: machine
67#
68#beforedepend ${OBJS}: machine
69#
70#machine:
71# ln -sf ${.CURDIR}/../../i386/include machine
72#
73#CLEANFILES+= machine
74#.endif