summaryrefslogtreecommitdiff
path: root/sys/boot/libsa32/Makefile
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2017-10-12 14:56:48 +0000
committerWarner Losh <imp@FreeBSD.org>2017-10-12 14:56:48 +0000
commit917587f435942c4515652096d0f3d202580d51b0 (patch)
tree17275914d0b7dbeaade1bb5b2cd7992b86e008ee /sys/boot/libsa32/Makefile
parent3006b7c8a97ec2d017b15f0f33ee1d4d6a9d9eee (diff)
downloadsrc-test2-917587f435942c4515652096d0f3d202580d51b0.tar.gz
src-test2-917587f435942c4515652096d0f3d202580d51b0.zip
Notes
Diffstat (limited to 'sys/boot/libsa32/Makefile')
-rw-r--r--sys/boot/libsa32/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/boot/libsa32/Makefile b/sys/boot/libsa32/Makefile
new file mode 100644
index 000000000000..69c0374fdb37
--- /dev/null
+++ b/sys/boot/libsa32/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+.include <src.opts.mk>
+
+.include "../Makefile.inc"
+
+LIB=sa32
+.if ${MACHINE_CPUARCH} == "amd64"
+LIBSTAND_CPUARCH=i386
+.else
+LIBSTAND_CPUARCH=${MACHINE_CPUARCH}
+.endif
+
+.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
+CFLAGS+= -m32 -I.
+.endif
+
+.PATH: ${SASRC}
+.include "${SASRC}/Makefile"
+
+.if ${MACHINE_CPUARCH} == "amd64"
+CLEANFILES+= machine
+beforedepend ${OBJS}: machine
+machine: .NOMETA
+ ln -fs ${.CURDIR}/../../i386/include machine
+.endif