diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/Makefile | 7 | ||||
| -rw-r--r-- | include/i386/Makefile | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/Makefile b/include/Makefile index 42590b900442..8d847a3a8dd2 100644 --- a/include/Makefile +++ b/include/Makefile @@ -8,6 +8,9 @@ PACKAGE=runtime CLEANFILES= osreldate.h version SUBDIR= arpa protocols rpcsvc rpc xlocale +.if ${MACHINE_CPUARCH} == "amd64" +SUBDIR+= i386 +.endif SUBDIR_PARALLEL= INCS= a.out.h ar.h assert.h bitstring.h complex.h cpio.h _ctype.h ctype.h \ db.h \ @@ -338,6 +341,10 @@ compat: mtree -deU ${NO_ROOT:D-W} ${MTREE_FOLLOWS_SYMLINKS} \ -f ${SRCTOP}/etc/mtree/BSD.include.dist \ -p ${SDESTDIR}${INCLUDEDIR} > /dev/null +.if ${MACHINE_CPUARCH} == "amd64" + ${INSTALL} -d ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m 755 \ + ${SDESTDIR}${INCLUDEDIR}/i386 +.endif copies: .PHONY .META cd ${SDESTDIR}${INCLUDEDIR}; find ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto \ diff --git a/include/i386/Makefile b/include/i386/Makefile new file mode 100644 index 000000000000..60f70d4756b2 --- /dev/null +++ b/include/i386/Makefile @@ -0,0 +1,7 @@ +# i386 headers installed on amd64 + +.PATH: ${SRCTOP}/sys/i386/include +INCS= +INCSDIR= ${INCLUDEDIR}/i386 + +.include <bsd.prog.mk> |
