freebsd-dev/gnu/usr.bin/binutils/Makefile.inc0

51 lines
1.2 KiB
Makefile
Raw Normal View History

1999-08-27 23:37:10 +00:00
# $FreeBSD$
#
# This is included explicitly at the top of each sub-Makefile. We can't
# use the normal "Makefile.inc" mechanism, because we need some of these
# definitions before the sub-Makefile is processed.
VERSION= "2.13.2 [FreeBSD] 2002-11-27"
VERSION_DATE= 20021127
2001-10-15 01:18:51 +00:00
TARGET_ARCH?= ${MACHINE_ARCH}
# RELTOP is the relative path to this point in the source or object
# tree, from any subdirectory of same. It gets extra "../" prefixes
# added to it as we descend into subdirectories.
2001-10-14 00:58:59 +00:00
RELTOP:= ..
2001-10-14 00:58:59 +00:00
RELSRC= ${RELTOP}/../../../contrib/binutils
SRCDIR= ${.CURDIR}/${RELSRC}
2002-03-14 02:24:25 +00:00
.if (${TARGET_ARCH} == "alpha")
WARNS= 2
.else
WARNS= 3
2002-03-14 02:24:25 +00:00
.endif
2001-10-14 00:58:59 +00:00
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I.
.if exists(${.CURDIR}/${TARGET_ARCH})
CFLAGS+= -I${.CURDIR}/${TARGET_ARCH}
.endif
2001-10-14 00:58:59 +00:00
CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${TARGET_ARCH}
2001-10-14 00:58:59 +00:00
CFLAGS+= -I${SRCDIR}/include
.if exists(${.CURDIR}/${TARGET_ARCH})
.PATH: ${.CURDIR}/${TARGET_ARCH}
.endif
ARCHS= ${TARGET_ARCH}
.for _arch in ${CROSS_ARCH}
.if (${ARCHS:R:M${_arch:R}} == "")
2001-10-14 00:58:59 +00:00
ARCHS+= $(_arch)
.endif
.endfor
.for _arch in ${ARCHS}
.if exists(${.CURDIR}/Makefile.${_arch})
.include "${.CURDIR}/Makefile.${_arch}"
.endif
.endfor