1 1.31 riastrad # $NetBSD: Makefile,v 1.31 2024/11/24 04:24:17 riastradh Exp $ 2 1.26 matt 3 1.26 matt .include <bsd.own.mk> 4 1.1 brezak 5 1.18 thorpej # These should always be a MACHINE_CPU value 6 1.24 dyoung ARCHDIRS= alpha arm i386 m68k sparc x86_64 7 1.11 drochner 8 1.12 simonb .for arch in ${ARCHDIRS} 9 1.18 thorpej .include "${.CURDIR}/${arch}/Makefile.inc" 10 1.18 thorpej .PATH: ${.CURDIR}/${arch} 11 1.12 simonb .endfor 12 1.12 simonb 13 1.12 simonb OBJS+= ${ASM} 14 1.12 simonb POBJS+= ${ASM:.o=.po} 15 1.12 simonb CLEANFILES+= ${ASM} ${POBJS} 16 1.30 christos CPPFLAGS+= -D_KERNTYPES 17 1.12 simonb 18 1.28 matt LIBC_MACHINE_CPU?= ${MACHINE_CPU} 19 1.28 matt 20 1.12 simonb # Build the library if SRCS is now defined ... 21 1.12 simonb .if defined(SRCS) 22 1.29 matt .if defined(MLIBDIR) && ${LIBC_MACHINE_CPU} != "arm" 23 1.22 mrg LIB= ${MLIBDIR} 24 1.21 mrg .else 25 1.28 matt LIB= ${LIBC_MACHINE_CPU} 26 1.21 mrg .endif 27 1.15 matt SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version 28 1.31 riastrad LIB_EXPSYM= ${LIB}.expsym # resolved in .PATH 29 1.12 simonb 30 1.12 simonb .include <bsd.lib.mk> 31 1.12 simonb .else 32 1.12 simonb # ... otherwise just build the manpages 33 1.12 simonb .include <bsd.man.mk> 34 1.1 brezak .endif 35 1.20 pk .include <bsd.subdir.mk> 36