Switch the default binutils from 2.17 to 2.21.
[dragonfly.git] / gnu / usr.bin / binutils217 / as / Makefile.inc0
1 .include "${.CURDIR}/../../Makefile.inc0"
2
3 RELTOP:= ../${RELTOP}
4 .PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config ${.CURDIR}/..
5
6 TARGET_VENDOR?= DragonFly
7 TARGET_OS?=     dragonfly1.9
8
9 PROG=   as
10 MAN=    as217.1
11 SRCS+=  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
20 WARNS=  1
21 CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
22 CFLAGS+= -DVERSION=\"${VERSION:C/[ ]?${VERSION_DATE}[ ]?//g}\" 
23 CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
24 CFLAGS+= -DTARGET_ALIAS=\"${TARGET_ALIAS}\"
25 CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_CANONICAL}\"
26 CFLAGS+= -DTARGET_CPU=\"${TARGET_CPU}\"
27 CFLAGS+= -DDEFAULT_ARCH=\"${DEFAULT_ARCH}\"
28 CFLAGS+= -DTARGET_VENDOR=\"${TARGET_VENDOR}\"
29 CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\"
30 CFLAGS+= "-DEMULATIONS=${EMULATIONS}"
31 CFLAGS+= -DDEFAULT_EMULATION=\"${DEFAULT_EMULATION}\"
32 CFLAGS+= -DTE_DragonFly
33 NOSHARED?=      yes
34 DPADD=  ${RELTOP}/libbfd/libbfd.a
35 DPADD+= ${RELTOP}/libiberty/libiberty.a
36 DPADD+= ${RELTOP}/libopcodes/libopcodes.a
37 LDADD=  ${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 #
43 tc-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
53 CFLAGS+= -I${BINUTILSDISTDIR}/gas
54 CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
55 CFLAGS+= -I${BINUTILSDISTDIR}/bfd
56 CFLAGS+= -I${BINUTILSDISTDIR}/include
57 CFLAGS+= -I${BINUTILSDISTDIR}
58 .endif
59
60 as217.1: ${SRCDIR}/gas/doc/as.1
61         cp ${.ALLSRC} ${.TARGET}
62
63 CLEANFILES+=    as217.1