NetBSD/lib/libarch/Makefile
simonb 343d06b5f6 Makefile: define SHLIB_VERSION_FILE if SRCS defined.
arm32/Makefile.inc: don't need to set .PATH
i386/Makefile.inc: don't need to set .PATH, SHLIB_VERSION_FILE

Fixes PR lib/8298 from Richard Earnshaw in a more general way.
1999-08-31 13:50:47 +00:00

24 lines
577 B
Makefile

# $NetBSD: Makefile,v 1.13 1999/08/31 13:50:47 simonb Exp $
ARCHDIRS= arm32 i386 m68k
.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/}
SHLIB_VERSION_FILE= ${.CURDIR}/${MACHINE_ARCH:C/mipse[bl]/mips/}/shlib_version
.include <bsd.lib.mk>
.else
# ... otherwise just build the manpages
.include <bsd.man.mk>
.endif