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