2013-07-19 02:14:10 +04:00
|
|
|
# $NetBSD: Makefile,v 1.26 2013/07/18 22:14:10 matt Exp $
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1993-09-19 22:52:40 +04:00
|
|
|
|
2002-03-30 09:24:34 +03:00
|
|
|
# These should always be a MACHINE_CPU value
|
2011-07-29 00:30:06 +04:00
|
|
|
ARCHDIRS= alpha arm i386 m68k sparc x86_64
|
1999-03-05 15:19:17 +03:00
|
|
|
|
1999-06-10 04:49:51 +04:00
|
|
|
.for arch in ${ARCHDIRS}
|
2002-03-30 09:24:34 +03:00
|
|
|
.include "${.CURDIR}/${arch}/Makefile.inc"
|
|
|
|
.PATH: ${.CURDIR}/${arch}
|
1999-06-10 04:49:51 +04:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
OBJS+= ${ASM}
|
|
|
|
POBJS+= ${ASM:.o=.po}
|
|
|
|
CLEANFILES+= ${ASM} ${POBJS}
|
1993-09-19 22:52:40 +04:00
|
|
|
|
1999-06-10 04:49:51 +04:00
|
|
|
# Build the library if SRCS is now defined ...
|
|
|
|
.if defined(SRCS)
|
2013-04-27 10:24:22 +04:00
|
|
|
.if defined(MLIBDIR) && ${MLIBDIR} != "none" && ${MACHINE_CPU} != "arm"
|
2009-12-13 11:25:20 +03:00
|
|
|
LIB= ${MLIBDIR}
|
2008-10-26 10:05:33 +03:00
|
|
|
.else
|
2002-03-30 09:24:34 +03:00
|
|
|
LIB= ${MACHINE_CPU}
|
2008-10-26 10:05:33 +03:00
|
|
|
.endif
|
2001-07-14 07:18:33 +04:00
|
|
|
SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version
|
1999-06-10 04:49:51 +04:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.else
|
|
|
|
# ... otherwise just build the manpages
|
|
|
|
.include <bsd.man.mk>
|
|
|
|
.endif
|
2002-11-26 17:30:53 +03:00
|
|
|
.include <bsd.subdir.mk>
|