Include all arch-dependant Makefile.inc's. In each arch-dependent

Makefile.inc, always add the man pages for that directory, and only
specify a SRCS= line (at whatever else is needed for that arch) inside
a ${MACHINE_ARCH} .ifdef.  The top-level Makefile includes <bsd.lib.mk>
only if SRCS is defined, and otherwise just includes <bsd.man.mk>.
This commit is contained in:
simonb 1999-06-10 00:49:51 +00:00
parent 3a3605e823
commit bf3e29891c
7 changed files with 31 additions and 43 deletions

View File

@ -1,9 +1,22 @@
# $NetBSD: Makefile,v 1.11 1999/03/05 12:19:17 drochner Exp $
# $NetBSD: Makefile,v 1.12 1999/06/10 00:49:51 simonb Exp $
ARCHSUBDIR= ${MACHINE_ARCH:C/mipse[bl]/mips/}
ARCHDIRS= arm32 i386 m68k
.if exists(${ARCHSUBDIR})
SUBDIR+= ${ARCHSUBDIR}
.for arch in ${ARCHDIRS}
.include "${.CURDIR}/${arch:C/mipse[bl]/mips/}/Makefile.inc"
.PATH: ${.CURDIR}/${arch:C/mipse[bl]/mips/}
.endfor
OBJS+= ${ASM}
POBJS+= ${ASM:.o=.po}
CLEANFILES+= ${ASM} ${POBJS}
# Build the library if SRCS is now defined ...
.if defined(SRCS)
LIB= ${MACHINE_ARCH:C/mipse[bl]/mips/}
.include <bsd.lib.mk>
.else
# ... otherwise just build the manpages
.include <bsd.man.mk>
.endif
.include <bsd.subdir.mk>

View File

@ -1,9 +0,0 @@
# $NetBSD: Makefile.inc,v 1.4 1999/03/05 12:19:17 drochner Exp $
#
# This Makefile includes boiler-plate stuff included by each subdir's Makefile.
OBJS+= ${ASM}
POBJS+= ${ASM:.o=.po}
CLEANFILES+= ${ASM} ${POBJS}
LIB= ${MACHINE_ARCH:C/mipse[bl]/mips/}

View File

@ -1,10 +0,0 @@
# $NetBSD: Makefile,v 1.2 1997/10/05 23:48:40 mark Exp $
.PATH: ${LIBC}/arm32
SRCS+= arm32_sync_icache.c arm32_drain_writebuf.c
MAN+= arm32_sync_icache.2 arm32_drain_writebuf.2
.include <bsd.lib.mk>

View File

@ -1,10 +1,9 @@
# $NetBSD: Makefile.inc,v 1.3 1999/06/09 05:43:10 simonb Exp $
# $NetBSD: Makefile.inc,v 1.4 1999/06/10 00:49:51 simonb Exp $
.if (${MACHINE_ARCH} == "arm32")
.PATH: ${LIBC}/arm32
SRCS+= arm32_sync_icache.c arm32_drain_writebuf.c
.endif
MAN+= arm32_sync_icache.2 arm32_drain_writebuf.2
.include <bsd.lib.mk>

View File

@ -1,17 +1,18 @@
# $NetBSD: Makefile,v 1.1 1996/02/21 02:45:47 jtk Exp $
# $NetBSD: Makefile.inc,v 1.7 1999/06/10 00:49:52 simonb Exp $
.if (${MACHINE_ARCH} == "i386")
.PATH: ${LIBC}/i386
SRCS+= i386_get_ldt.c i386_set_ldt.c \
i386_iopl.c i386_get_ioperm.c i386_set_ioperm.c \
i386_vm86.c
SHLIB_VERSION_FILE= ${.CURDIR}/i386/shlib_version
.endif
MAN+= i386_get_ldt.2 \
i386_iopl.2 i386_get_ioperm.2 \
i386_vm86.2
MLINKS+=i386_get_ldt.2 i386_set_ldt.2 \
i386_get_ioperm.2 i386_set_ioperm.2
.include <bsd.lib.mk>

View File

@ -1,7 +0,0 @@
# $NetBSD: Makefile,v 1.3 1999/02/17 08:24:53 itohy Exp $
SRCS= m68k_sync_icache.S
MAN= m68k_sync_icache.2
MKLINT=no
.include <bsd.lib.mk>

View File

@ -1,7 +1,8 @@
# $NetBSD: Makefile.inc,v 1.4 1999/06/09 05:43:48 simonb Exp $
# $NetBSD: Makefile.inc,v 1.5 1999/06/10 00:49:52 simonb Exp $
.if (${MACHINE_ARCH} == "m68k")
SRCS= m68k_sync_icache.S
MAN= m68k_sync_icache.2
MKLINT=no
.endif
.include <bsd.lib.mk>
MAN+= m68k_sync_icache.2