2014-02-06 21:54:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2014-02-06 21:54:21 +00:00
|
|
|
|
2015-04-23 14:04:33 +00:00
|
|
|
LIBSTAND_SRC= ${.CURDIR}/../../../lib/libstand
|
2014-02-06 21:54:21 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2016-01-01 15:30:11 +00:00
|
|
|
LIBSTAND_CPUARCH=i386
|
2014-02-06 21:54:21 +00:00
|
|
|
.else
|
2016-01-01 15:30:11 +00:00
|
|
|
LIBSTAND_CPUARCH=${MACHINE_CPUARCH}
|
2014-02-06 21:54:21 +00:00
|
|
|
.endif
|
2016-01-01 15:30:11 +00:00
|
|
|
LIBC_SRC= ${LIBSTAND_SRC}/../libc
|
|
|
|
INTERNALLIB=
|
2016-01-07 19:19:23 +00:00
|
|
|
INCS=
|
2016-01-01 15:30:11 +00:00
|
|
|
MAN=
|
|
|
|
.PATH: ${LIBSTAND_SRC}
|
2014-02-06 21:54:21 +00:00
|
|
|
|
2016-01-01 15:30:11 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
|
|
|
|
CFLAGS+= -m32 -I.
|
2014-02-06 21:54:21 +00:00
|
|
|
.endif
|
|
|
|
|
2016-01-01 15:30:11 +00:00
|
|
|
.include "${LIBSTAND_SRC}/Makefile"
|
2014-02-06 21:54:21 +00:00
|
|
|
|
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2014-07-23 22:11:04 +00:00
|
|
|
CLEANFILES+= machine
|
2014-02-06 21:54:21 +00:00
|
|
|
beforedepend ${OBJS}: machine
|
2016-03-11 23:45:51 +00:00
|
|
|
machine: .NOMETA
|
2014-07-23 22:11:04 +00:00
|
|
|
ln -fs ${.CURDIR}/../../i386/include machine
|
2014-02-06 21:54:21 +00:00
|
|
|
.endif
|