[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libarch

File: [cvs.NetBSD.org] / src / lib / libarch / Makefile (download)

Revision 1.28.2.1, Wed Jun 10 17:16:24 2015 UTC (4 years, 9 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.28: +2 -2 lines

Pull up following revision(s) (requested by martin in ticket #837):
	common/lib/libc/arch/arm/features.mk: revision 1.2
	lib/libarch/Makefile: revision 1.29
	lib/libarch/i386/Makefile.inc: revision 1.15
	lib/libarch/x86_64/Makefile.inc: revision 1.5
	share/mk/bsd.gcc.mk: revision 1.11
	share/mk/bsd.prog.mk: revision 1.292
Make LIBCRT* depend on the right files if MLIBDIR from MKCOMPAT is defined.
Use ${COPT} so it properly emits the right features doing MKCOMPAT
Avoid defining MLIBDIR.  Use ${MLIBDIR:Unone} instead.

#	$NetBSD: Makefile,v 1.28.2.1 2015/06/10 17:16:24 snj Exp $

.include <bsd.own.mk>

# These should always be a MACHINE_CPU value
ARCHDIRS= alpha arm i386 m68k sparc x86_64

.for arch in ${ARCHDIRS}
.include "${.CURDIR}/${arch}/Makefile.inc"
.PATH:	${.CURDIR}/${arch}
.endfor

OBJS+= ${ASM}
POBJS+=	${ASM:.o=.po}
CLEANFILES+= ${ASM} ${POBJS}

LIBC_MACHINE_CPU?=	${MACHINE_CPU}

# Build the library if SRCS is now defined ...
.if defined(SRCS)
.if defined(MLIBDIR) && ${LIBC_MACHINE_CPU} != "arm"
LIB=	${MLIBDIR}
.else
LIB=	${LIBC_MACHINE_CPU}
.endif
SHLIB_VERSION_FILE= ${.CURDIR}/${LIB}/shlib_version

.include <bsd.lib.mk>
.else
# ... otherwise just build the manpages
.include <bsd.man.mk>
.endif
.include <bsd.subdir.mk>