etc/protocols - sync with NetBSD-8
[minix.git] / external / gpl3 / binutils / lib / libopcodes / Makefile
blob63c5e561bfae00afe7f59d08486f7b2a3951773b
1 # $NetBSD: Makefile,v 1.7 2013/09/29 14:20:35 christos Exp $
3 NOLINKLIB= # defined
4 NOLINT= # defined
5 NOMAN= # defined
6 NOPROFILE= # defined
7 NOCLANGERROR= # defined
9 .include <bsd.own.mk>
11 LIB= opcodes
13 BFD_MACHINE_ARCH?= ${MACHINE_ARCH:C/armv[4-7]/arm/}
15 .if exists(${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk)
16 .include "${.CURDIR}/arch/${BFD_MACHINE_ARCH}/defs.mk"
18 DIST= ${NETBSDSRCDIR}/external/gpl3/binutils/dist
20 .if defined(__MINIX)
21 # MINIX: make sure sources are fetched, even when tools not built earlier
22 GNUHOSTDIST= ${DIST}
23 .include "${.CURDIR}/../../../../../minix/Makefile.fetchgnu"
24 .endif # defined(__MINIX)
26 SHLIB_MAJOR= 6
27 SHLIB_MINOR= 0
29 GCPPFLAGS= ${G_archdefs} ${G_DEFS} ${G_INCLUDES} ${G_TDEFAULTS}
30 CPPFLAGS+= -I${.CURDIR}/arch/${BFD_MACHINE_ARCH} \
31 -I${.CURDIR}/../libbfd/arch/${BFD_MACHINE_ARCH} \
32 -I${DIST}/include -I. \
33 -I${DIST}/bfd ${GCPPFLAGS:M-D*} \
34 ${GCPPFLAGS:M-I*:N-I.*}
36 GSRCS= ${G_BFD_MACHINES}
37 SRCS= ${GSRCS:.lo=.c} ${G_libopcodes_la_SOURCES}
39 .PATH: ${DIST}/opcodes
41 .include <bsd.lib.mk>
43 .if defined(__MINIX) #&& ${USETOOLS} != "yes"
44 # Trigger the fetch phase, even when not building tools
45 ${SRCS} realdepend realall realinstall: ${fetch_done}
46 .endif # defined(__MINIX)
48 .else
49 .include <bsd.prog.mk> # do nothing
50 .endif