Makefile.inc0 revision 34495
1#
2# $Id: Makefile.inc0,v 1.1.1.1 1998/03/01 23:40:48 jdp Exp $
3#
4
5#
6# This is included explicitly at the top of each sub-Makefile.  We can't
7# use the normal "Makefile.inc" mechanism, because we need some of these
8# definitions before the sub-Makefile is processed.
9#
10
11VERSION=	2.8.1
12
13# RELTOP is the relative path to this point in the source or object
14# tree, from any subdirectory of same.  It gets extra "../" prefixes
15# added to it as we descend into subdirectories.
16RELTOP:=	..
17
18RELSRC=		${RELTOP}/../../../contrib/binutils
19SRCDIR=		${.CURDIR}/${RELSRC}
20
21CFLAGS+=	-D_GNU_SOURCE
22
23# We use "-I-" because without it our yacc-generated parser tries to
24# use GNU's bison-generated header files.
25CFLAGS+=	-I- -I.
26.if exists(${.CURDIR}/${MACHINE_ARCH})
27CFLAGS+=	-I${.CURDIR}/${MACHINE_ARCH}
28.endif
29CFLAGS+=	-I${.CURDIR}
30CFLAGS+=	-I${.CURDIR}/${RELTOP}/libbfd
31CFLAGS+=	-I${SRCDIR}/include
32
33.if exists(${.CURDIR}/${MACHINE_ARCH})
34.PATH: ${.CURDIR}/${MACHINE_ARCH}
35.endif
36
37.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
38.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
39.endif
40