1 # $NetBSD: Makefile,v 1.7 2013/09/29 14:20:35 christos Exp $
7 NOCLANGERROR
= # defined
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
21 # MINIX: make sure sources are fetched, even when tools not built earlier
23 .
include "${.CURDIR}/../../../../../minix/Makefile.fetchgnu"
24 .
endif # defined(__MINIX)
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
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)
49 .
include <bsd.prog.mk
> # do nothing