aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/libstand32/Makefile
blob: ace4189ee29b95d126f0787f7247502fe0945f76 (plain) (blame)
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
29
30
# $FreeBSD$

.include <src.opts.mk>

.include "../Makefile.inc"

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

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

.include "${SASRC}/Makefile"

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