summaryrefslogtreecommitdiffstats
path: root/sys/boot/libstand32/Makefile
blob: 66798d75e44fe1f6ed329a1391614c99d59c59ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $FreeBSD$

.include <src.opts.mk>

LIBSTAND_SRC=	${.CURDIR}/../../../lib/libstand
.if ${MACHINE_CPUARCH} == "amd64"
LIBSTAND_CPUARCH=i386
.else
LIBSTAND_CPUARCH=${MACHINE_CPUARCH}
.endif
LIBC_SRC=	${LIBSTAND_SRC}/../libc
INTERNALLIB=
INCS=
MAN=
.PATH:	${LIBSTAND_SRC}

.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
CFLAGS+=	-m32 -I.
.endif

.include "${LIBSTAND_SRC}/Makefile"

.if ${MACHINE_CPUARCH} == "amd64"
CLEANFILES+= machine
beforedepend ${OBJS}: machine
machine:
	ln -fs ${.CURDIR}/../../i386/include machine
.endif
OpenPOWER on IntegriCloud