# $NetBSD: Makefile,v 1.26 2013/07/18 22:14:10 matt Exp $ .include # These should always be a MACHINE_CPU value ARCHDIRS= alpha arm i386 m68k sparc x86_64 .for arch in ${ARCHDIRS} .include "${.CURDIR}/${arch}/Makefile.inc" .PATH: ${.CURDIR}/${arch} .endfor OBJS+= ${ASM} POBJS+= ${ASM:.o=.po} CLEANFILES+= ${ASM} ${POBJS} # Build the library if SRCS is now defined ... .if defined(SRCS) .if defined(MLIBDIR) && ${MLIBDIR} != "none" && ${MACHINE_CPU} != "arm" LIB= ${MLIBDIR} .else LIB= ${MACHINE_CPU} .endif SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version .include .else # ... otherwise just build the manpages .include .endif .include