Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / lib / libarch / Makefile
blobc6a339eb77c63d93ad4a0bc7206f09a438a3620b
1 # $NetBSD: Makefile,v 1.21 2008/10/26 07:05:33 mrg Exp $
3 # These should always be a MACHINE_CPU value
4 ARCHDIRS= alpha arm i386 m68k sparc x86_64
6 .for arch in ${ARCHDIRS}
7 .include "${.CURDIR}/${arch}/Makefile.inc"
8 .PATH: ${.CURDIR}/${arch}
9 .endfor
11 OBJS+= ${ASM}
12 POBJS+= ${ASM:.o=.po}
13 CLEANFILES+= ${ASM} ${POBJS}
15 # Build the library if SRCS is now defined ...
16 .if defined(SRCS)
17 .if defined(MLIBDIR) && ${MLIBDIR} != "none"
18 LIB= ${MLIBDIR}
19 .else
20 LIB= ${MACHINE_CPU}
21 .endif
22 SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version
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>