1# $FreeBSD: head/sys/boot/ficl/Makefile 279949 2015-03-13 09:38:16Z jhb $
| 1# $FreeBSD: head/sys/boot/ficl/Makefile 287227 2015-08-27 23:46:42Z imp $
|
2# 3 4FICLDIR?= ${.CURDIR} 5 6.if defined(FICL32) 7.PATH: ${FICLDIR}/${MACHINE_CPUARCH:S/amd64/i386/} 8.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" 9.PATH: ${FICLDIR}/mips64 10.else 11.PATH: ${FICLDIR}/${MACHINE_CPUARCH} 12.endif 13BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \ 14 prefix.c search.c stack.c tools.c vm.c words.c 15 16SRCS= ${BASE_SRCS} sysdep.c softcore.c 17CLEANFILES= softcore.c testmain testmain.o
| 2# 3 4FICLDIR?= ${.CURDIR} 5 6.if defined(FICL32) 7.PATH: ${FICLDIR}/${MACHINE_CPUARCH:S/amd64/i386/} 8.elif ${MACHINE_ARCH} == "mips64" || ${MACHINE_ARCH} == "mips64el" 9.PATH: ${FICLDIR}/mips64 10.else 11.PATH: ${FICLDIR}/${MACHINE_CPUARCH} 12.endif 13BASE_SRCS= dict.c ficl.c fileaccess.c float.c loader.c math64.c \ 14 prefix.c search.c stack.c tools.c vm.c words.c 15 16SRCS= ${BASE_SRCS} sysdep.c softcore.c 17CLEANFILES= softcore.c testmain testmain.o
|
18CFLAGS+= -ffreestanding
| |
19.if ${MACHINE_CPUARCH} == "i386" || \ 20 (${MACHINE_CPUARCH} == "amd64" && defined(FICL32)) 21CFLAGS+= -march=i386
| 18.if ${MACHINE_CPUARCH} == "i386" || \ 19 (${MACHINE_CPUARCH} == "amd64" && defined(FICL32)) 20CFLAGS+= -march=i386
|
22CFLAGS.gcc+= -mpreferred-stack-boundary=2
| |
23.endif
| 21.endif
|
24.if ${MACHINE_CPUARCH} == "amd64" 25CFLAGS+= -mno-red-zone 26.endif 27.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 28CFLAGS+= -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -msoft-float 29.endif 30.if ${MACHINE_CPUARCH} == "powerpc" || ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "mips" 31CFLAGS+= -msoft-float 32.endif 33.if ${MACHINE} == "pc98" 34CFLAGS+= -Os -DPC98 35.endif 36.if ${MACHINE_CPUARCH} == "mips" 37CFLAGS+= -G0 -fno-pic -mno-abicalls 38.endif
| |
39.if HAVE_PNP 40CFLAGS+= -DHAVE_PNP 41.endif
| 22.if HAVE_PNP 23CFLAGS+= -DHAVE_PNP 24.endif
|
| 25.include <bsd.stand.mk>
|
42.ifmake testmain 43CFLAGS+= -DTESTMAIN -D_TESTMAIN 44SRCS+= testmain.c 45PROG= testmain 46.include <bsd.prog.mk> 47.else 48LIB= ficl 49INTERNALLIB=
--- 47 unchanged lines hidden --- | 26.ifmake testmain 27CFLAGS+= -DTESTMAIN -D_TESTMAIN 28SRCS+= testmain.c 29PROG= testmain 30.include <bsd.prog.mk> 31.else 32LIB= ficl 33INTERNALLIB=
--- 47 unchanged lines hidden --- |