Makefile.inc0 revision 34495
1259698Sdim#
2259698Sdim# $Id: Makefile.inc0,v 1.1.1.1 1998/03/01 23:40:48 jdp Exp $
3259698Sdim#
4259698Sdim
5259698Sdim#
6259698Sdim# This is included explicitly at the top of each sub-Makefile.  We can't
7259698Sdim# use the normal "Makefile.inc" mechanism, because we need some of these
8259698Sdim# definitions before the sub-Makefile is processed.
9259698Sdim#
10259698Sdim
11259698SdimVERSION=	2.8.1
12259698Sdim
13259698Sdim# RELTOP is the relative path to this point in the source or object
14259698Sdim# tree, from any subdirectory of same.  It gets extra "../" prefixes
15259698Sdim# added to it as we descend into subdirectories.
16259698SdimRELTOP:=	..
17259698Sdim
18259698SdimRELSRC=		${RELTOP}/../../../contrib/binutils
19259698SdimSRCDIR=		${.CURDIR}/${RELSRC}
20259698Sdim
21259698SdimCFLAGS+=	-D_GNU_SOURCE
22259698Sdim
23259698Sdim# We use "-I-" because without it our yacc-generated parser tries to
24259698Sdim# use GNU's bison-generated header files.
25259698SdimCFLAGS+=	-I- -I.
26259698Sdim.if exists(${.CURDIR}/${MACHINE_ARCH})
27259698SdimCFLAGS+=	-I${.CURDIR}/${MACHINE_ARCH}
28259698Sdim.endif
29259698SdimCFLAGS+=	-I${.CURDIR}
30259698SdimCFLAGS+=	-I${.CURDIR}/${RELTOP}/libbfd
31259698SdimCFLAGS+=	-I${SRCDIR}/include
32259698Sdim
33259698Sdim.if exists(${.CURDIR}/${MACHINE_ARCH})
34259698Sdim.PATH: ${.CURDIR}/${MACHINE_ARCH}
35259698Sdim.endif
36259698Sdim
37259698Sdim.if exists(${.CURDIR}/Makefile.${MACHINE_ARCH})
38259698Sdim.include "${.CURDIR}/Makefile.${MACHINE_ARCH}"
39259698Sdim.endif
40259698Sdim