From 479d5a0d194edadb21b7321a0c4ca12ea1d23ccd Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Tue, 6 Jan 2009 02:07:53 +0100 Subject: [PATCH] Compile libstand for amd64 with i386 headers. --- lib/libstand/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lib/libstand/Makefile b/lib/libstand/Makefile index 7687978659..f9f10566c3 100644 --- a/lib/libstand/Makefile +++ b/lib/libstand/Makefile @@ -90,3 +90,19 @@ SRCS+= splitfs.c SRCS+= hammerread.c .include + +.if ${MACHINE_ARCH} == "amd64" +CFLAGS+= -I${.OBJDIR} + +beforedepend ${OBJS}: machine cpu + +machine:: + mkdir -p machine + ${LN} -fs ${.CURDIR}/../../sys/cpu/i386/include/* machine + ${LN} -fs ${.CURDIR}/../../sys/platform/pc32/include/* machine + +cpu:: + ${LN} -fs ${.CURDIR}/../../sys/cpu/i386/include cpu + +CLEANDIRS+= machine cpu +.endif -- 2.41.0