1# $NetBSD: Makefile,v 1.22 2009/12/13 08:25:20 mrg Exp $ 2 3# These should always be a MACHINE_CPU value 4ARCHDIRS= alpha arm i386 m68k sparc x86_64 5 6.for arch in ${ARCHDIRS} 7.include "${.CURDIR}/${arch}/Makefile.inc" 8.PATH: ${.CURDIR}/${arch} 9.endfor 10 11OBJS+= ${ASM} 12POBJS+= ${ASM:.o=.po} 13CLEANFILES+= ${ASM} ${POBJS} 14 15# Build the library if SRCS is now defined ... 16.if defined(SRCS) 17.if defined(MLIBDIR) && ${MLIBDIR} != "none" 18LIB= ${MLIBDIR} 19.else 20LIB= ${MACHINE_CPU} 21.endif 22SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version 23 24.include <bsd.lib.mk> 25.else 26# ... otherwise just build the manpages 27.include <bsd.man.mk> 28.endif 29.include <bsd.subdir.mk> 30