Switch the default binutils from 2.17 to 2.21.
[dragonfly.git] / gnu / usr.bin / binutils217 / as / Makefile.inc0
CommitLineData
a968ac75
SS
1.include "${.CURDIR}/../../Makefile.inc0"
2
3RELTOP:= ../${RELTOP}
4.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config ${.CURDIR}/..
5
6TARGET_VENDOR?= DragonFly
7TARGET_OS?= dragonfly1.9
8
9PROG= as
53bd31cd 10MAN= as217.1
a968ac75
SS
11SRCS+= app.c as.c atof-generic.c atof-ieee.c \
12 cond.c dwarf2dbg.c dw2gencfi.c ecoff.c expr.c flonum-copy.c \
13 flonum-konst.c flonum-mult.c frags.c hash.c input-file.c \
14 input-scrub.c listing.c literal.c macro.c messages.c \
15 output-file.c read.c sb.c stabs.c \
16 subsegs.c symbols.c write.c depend.c ehopt.c
17# DEO: why not used?
18#SRCS+= itbl-ops.c
19
beaee5af 20WARNS= 1
a968ac75
SS
21CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
22CFLAGS+= -DVERSION=\"${VERSION:C/[ ]?${VERSION_DATE}[ ]?//g}\"
23CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
24CFLAGS+= -DTARGET_ALIAS=\"${TARGET_ALIAS}\"
25CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_CANONICAL}\"
26CFLAGS+= -DTARGET_CPU=\"${TARGET_CPU}\"
27CFLAGS+= -DDEFAULT_ARCH=\"${DEFAULT_ARCH}\"
28CFLAGS+= -DTARGET_VENDOR=\"${TARGET_VENDOR}\"
29CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\"
30CFLAGS+= "-DEMULATIONS=${EMULATIONS}"
31CFLAGS+= -DDEFAULT_EMULATION=\"${DEFAULT_EMULATION}\"
32CFLAGS+= -DTE_DragonFly
33NOSHARED?= yes
34DPADD= ${RELTOP}/libbfd/libbfd.a
35DPADD+= ${RELTOP}/libiberty/libiberty.a
36DPADD+= ${RELTOP}/libopcodes/libopcodes.a
37LDADD= ${DPADD}
38
39# tc-i386.c has some stupid code in it which makes it impossible to
40# disable the use of '/' as a comment. We need to make it useable for
41# a divide operator so we have to munge tc-i386.c.
42#
43tc-i386-local.c: tc-i386.c
44 sed -e 's/TE_NetBSD/TE_DragonFly/g' \
45 ${.ALLSRC:M*tc-i386.c} >> ${.TARGET}.new
46 mv -f ${.TARGET}.new ${.TARGET}
47
48# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
49# binutils release. FreeBSD only distributes the bits that are required to
50# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
51.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
52.PATH: ${BINUTILSDISTDIR}/gas ${BINUTILSDISTDIR}/gas/config
53CFLAGS+= -I${BINUTILSDISTDIR}/gas
54CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
55CFLAGS+= -I${BINUTILSDISTDIR}/bfd
56CFLAGS+= -I${BINUTILSDISTDIR}/include
57CFLAGS+= -I${BINUTILSDISTDIR}
58.endif
53bd31cd
SW
59
60as217.1: ${SRCDIR}/gas/doc/as.1
61 cp ${.ALLSRC} ${.TARGET}
62
63CLEANFILES+= as217.1