1998-03-01 23:41:17 +00:00
|
|
|
#
|
1998-03-12 05:59:22 +00:00
|
|
|
# $Id: Makefile.inc0,v 1.2 1998/03/12 02:54:39 jdp Exp $
|
1998-03-01 23:41:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.8.1
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
RELTOP:= ..
|
|
|
|
|
|
|
|
RELSRC= ${RELTOP}/../../../contrib/binutils
|
|
|
|
SRCDIR= ${.CURDIR}/${RELSRC}
|
|
|
|
|
|
|
|
CFLAGS+= -D_GNU_SOURCE
|
|
|
|
|
|
|
|
# We use "-I-" because without it our yacc-generated parser tries to
|
|
|
|
# use GNU's bison-generated header files.
|
1998-03-12 02:55:43 +00:00
|
|
|
CFLAGS+= -I- -I.
|
|
|
|
.if exists(${.CURDIR}/${MACHINE_ARCH})
|
|
|
|
CFLAGS+= -I${.CURDIR}/${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
CFLAGS+= -I${.CURDIR}
|
1998-03-12 05:59:22 +00:00
|
|
|
CFLAGS+= -I${.CURDIR}/${RELTOP}/libbfd/${MACHINE_ARCH}
|
1998-03-01 23:41:17 +00:00
|
|
|
CFLAGS+= -I${SRCDIR}/include
|
1998-03-12 02:55:43 +00:00
|
|
|
|
|
|
|
.if exists(${.CURDIR}/${MACHINE_ARCH})
|
|
|
|
.PATH: ${.CURDIR}/${MACHINE_ARCH}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
|
|
|
|
.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
|
|
|
|
.endif
|