2014-02-06 21:54:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2017-10-30 23:14:37 +00:00
|
|
|
.include <bsd.init.mk>
|
2017-10-09 22:12:32 +00:00
|
|
|
|
2017-10-12 14:56:48 +00:00
|
|
|
LIB=sa32
|
2014-02-06 21:54:21 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "amd64"
|
2017-11-04 06:15:20 +00:00
|
|
|
LIBSA_CPUARCH=i386
|
2014-02-06 21:54:21 +00:00
|
|
|
.else
|
2017-11-04 06:15:20 +00:00
|
|
|
LIBSA_CPUARCH=${MACHINE_CPUARCH}
|
2014-02-06 21:54:21 +00:00
|
|
|
.endif
|
|
|
|
|
2017-11-06 15:21:39 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64"
|
2016-01-01 15:30:11 +00:00
|
|
|
CFLAGS+= -m32 -I.
|
2014-02-06 21:54:21 +00:00
|
|
|
.endif
|
|
|
|
|
2017-10-12 14:56:48 +00:00
|
|
|
.PATH: ${SASRC}
|
2017-10-09 22:12:32 +00:00
|
|
|
.include "${SASRC}/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
|
2017-10-30 23:14:37 +00:00
|
|
|
ln -fs ${SYSDIR}/i386/include machine
|
2014-02-06 21:54:21 +00:00
|
|
|
.endif
|