Home | History | Annotate | Line # | Download | only in libarch
Makefile revision 1.29
      1 #	$NetBSD: Makefile,v 1.29 2015/06/08 04:08:30 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 LIBC_MACHINE_CPU?=	${MACHINE_CPU}
     18 
     19 # Build the library if SRCS is now defined ...
     20 .if defined(SRCS)
     21 .if defined(MLIBDIR) && ${LIBC_MACHINE_CPU} != "arm"
     22 LIB=	${MLIBDIR}
     23 .else
     24 LIB=	${LIBC_MACHINE_CPU}
     25 .endif
     26 SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version
     27 
     28 .include <bsd.lib.mk>
     29 .else
     30 # ... otherwise just build the manpages
     31 .include <bsd.man.mk>
     32 .endif
     33 .include <bsd.subdir.mk>
     34