c9ea9e7af8
Change-Id: I5235984746178ee30b5db18e7def0016d9a0e36f
39 lines
881 B
Makefile
39 lines
881 B
Makefile
# $NetBSD: Makefile,v 1.7 2013/09/29 14:20:35 christos Exp $
|
|
|
|
NOLINKLIB= # defined
|
|
NOLINT= # defined
|
|
NOMAN= # defined
|
|
NOPROFILE= # defined
|
|
NOCLANGERROR= # defined
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= opcodes
|
|
|
|
BFD_MACHINE_ARCH?= ${MACHINE_ARCH:C/armv[4-7]/arm/}
|
|
|
|
.if exists(${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk)
|
|
.include "${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk"
|
|
|
|
DIST= ${NETBSDSRCDIR}/external/gpl3/binutils/dist
|
|
|
|
SHLIB_MAJOR= 6
|
|
SHLIB_MINOR= 0
|
|
|
|
GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} \
|
|
-I${.CURDIR}/../libbfd/arch/${BFD_MACHINE_ARCH} \
|
|
-I${DIST}/include -I. \
|
|
-I${DIST}/bfd ${GCPPFLAGS:M-D*} \
|
|
${GCPPFLAGS:M-I*:N-I.*}
|
|
|
|
GSRCS= ${G_BFD_MACHINES}
|
|
SRCS= ${GSRCS:.lo=.c} ${G_libopcodes_la_SOURCES}
|
|
|
|
.PATH: ${DIST}/opcodes
|
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.else
|
|
.include <bsd.prog.mk> # do nothing
|
|
.endif
|