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