Home | History | Annotate | Line # | Download | only in libarch
Makefile revision 1.26
      1  1.26      matt #	$NetBSD: Makefile,v 1.26 2013/07/18 22:14:10 matt 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.12    simonb 
     17  1.12    simonb # Build the library if SRCS is now defined ...
     18  1.12    simonb .if defined(SRCS)
     19  1.25      matt .if defined(MLIBDIR) && ${MLIBDIR} != "none" && ${MACHINE_CPU} != "arm"
     20  1.22       mrg LIB=	${MLIBDIR}
     21  1.21       mrg .else
     22  1.18   thorpej LIB=	${MACHINE_CPU}
     23  1.21       mrg .endif
     24  1.15      matt SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version
     25  1.12    simonb 
     26  1.12    simonb .include <bsd.lib.mk>
     27  1.12    simonb .else
     28  1.12    simonb # ... otherwise just build the manpages
     29  1.12    simonb .include <bsd.man.mk>
     30   1.1    brezak .endif
     31  1.20        pk .include <bsd.subdir.mk>
     32