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