Nuke usb_ callout macros.
[dragonfly/vkernel-mp.git] / gnu / usr.bin / binutils217 / Makefile.inc0
blob7ef8753e9deab6cdcdcea57392e1c88acaed8fb0
1 # $DragonFly: src/gnu/usr.bin/binutils217/Makefile.inc0,v 1.1 2007/04/13 12:24:32 corecode Exp $
3 # This is included explicitly at the top of each sub-Makefile.  We can't
4 # use the normal "Makefile.inc" mechanism, because we need some of these
5 # definitions before the sub-Makefile is processed.
7 VERSION=        "2.17 [DragonFly] 2007-04-12"
8 VERSION_BFD=    217000000
9 VERSION_DATE=   20070412
11 TARGET_ARCH?=   ${MACHINE_ARCH}
12 BINUTIL_ARCH=   ${TARGET_ARCH}
14 # RELTOP is the relative path to this point in the source or object
15 # tree, from any subdirectory of same.  It gets extra "../" prefixes
16 # added to it as we descend into subdirectories.
17 RELTOP:= ..
19 RELSRC= ${RELTOP}/../../../contrib/binutils-2.17
20 SRCDIR= ${.CURDIR}/${RELSRC}
22 CFLAGS+= -D_GNU_SOURCE
23 CFLAGS+= -I.
24 .if exists(${.CURDIR}/${BINUTIL_ARCH})
25 CFLAGS+= -I${.CURDIR}/${BINUTIL_ARCH}
26 .endif
27 CFLAGS+= -I${.CURDIR}
28 CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${BINUTIL_ARCH}
29 CFLAGS+= -I${SRCDIR}/include
31 .if exists(${.CURDIR}/${BINUTIL_ARCH})
32 .PATH: ${.CURDIR}/${BINUTIL_ARCH}
33 .endif
35 ARCHS=  ${BINUTIL_ARCH}
37 .for _arch in ${CROSS_ARCH}
38 .if (${ARCHS:R:M${_arch:R}} == "")
39 ARCHS+= $(_arch)
40 .endif
41 .endfor
43 .for _arch in ${ARCHS}
44 .if exists(${.CURDIR}/Makefile.${_arch})
45 .include "${.CURDIR}/Makefile.${_arch}"
46 .endif
47 .endfor