diff options
| author | mrg <mrg@NetBSD.org> | 2003-03-01 13:18:28 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2003-03-01 13:18:28 +0000 |
| commit | 1fdd6e4cdee5d505f80aa1752b41fcdec4764d52 (patch) | |
| tree | a242c84c4c50710a5ff66aefbf3c1cbc007dc932 /gnu/lib/libopcodes/Makefile | |
| parent | 1c50b08c03bc798b8c13ea30d52fa9aaeec5e5f7 (diff) | |
build libopcodes separately from libbfd as in binutils 2.13 they have
separate CFLAGS name spaces, and the old combined method no longer works.
Diffstat (limited to 'gnu/lib/libopcodes/Makefile')
| -rw-r--r-- | gnu/lib/libopcodes/Makefile | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/lib/libopcodes/Makefile b/gnu/lib/libopcodes/Makefile new file mode 100644 index 00000000000..62637bf1390 --- /dev/null +++ b/gnu/lib/libopcodes/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1 2003/03/01 13:18:28 mrg Exp $ + +NOLINKLIB= # defined +NOLINT= # defined +NOMAN= # defined +NOPROFILE= # defined + +.include <bsd.own.mk> + +LIB= opcodes + +.if exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk) +.include "${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk" + +SHLIB_MAJOR= 0 +SHLIB_MINOR= 0 + +DIST= ${NETBSDSRCDIR}/gnu/dist/toolchain + +GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS} +CPPFLAGS+= -I${.CURDIR}/arch/${MACHINE_ARCH} \ + -I${.CURDIR}/../libbfd/arch/${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 |
