1# $FreeBSD: stable/10/sys/boot/libstand32/Makefile 312403 2017-01-19 07:29:52Z delphij $
2
3.include <bsd.own.mk>
4
5LIBSTAND_SRC=	${.CURDIR}/../../../lib/libstand
6
7.if ${MACHINE_CPUARCH} == "amd64"
8LIBSTAND_CPUARCH=i386
9.else
10LIBSTAND_CPUARCH=${MACHINE_CPUARCH}
11.endif
12LIBC_SRC=	${LIBSTAND_SRC}/../libc
13INTERNALLIB=
14INCS=
15MAN=
16.PATH:	${LIBSTAND_SRC}
17
18.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
19CFLAGS+=        -m32 -I.
20.endif
21
22WARNS?=		0
23
24.include "${LIBSTAND_SRC}/Makefile"
25
26.if ${MACHINE_CPUARCH} == "amd64"
27CLEANFILES+= machine
28beforedepend ${OBJS}: machine
29machine:
30	ln -fs ${.CURDIR}/../../i386/include machine
31.endif
32