1 # $DragonFly: src/gnu/usr.bin/binutils217/as/Makefile.inc0,v 1.1 2007/04/13 12:24:32 corecode Exp $
3 .include "${.CURDIR}/../../Makefile.inc0"
6 .PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config ${.CURDIR}/..
8 TARGET_VENDOR?= DragonFly
9 TARGET_OS?= dragonfly1.9
13 SRCS+= app.c as.c atof-generic.c atof-ieee.c \
14 cond.c dwarf2dbg.c dw2gencfi.c ecoff.c expr.c flonum-copy.c \
15 flonum-konst.c flonum-mult.c frags.c hash.c input-file.c \
16 input-scrub.c listing.c literal.c macro.c messages.c \
17 output-file.c read.c sb.c stabs.c \
18 subsegs.c symbols.c write.c depend.c ehopt.c
23 CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
24 CFLAGS+= -DVERSION=\"${VERSION:C/[ ]?${VERSION_DATE}[ ]?//g}\"
25 CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
26 CFLAGS+= -DTARGET_ALIAS=\"${TARGET_ALIAS}\"
27 CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_CANONICAL}\"
28 CFLAGS+= -DTARGET_CPU=\"${TARGET_CPU}\"
29 CFLAGS+= -DDEFAULT_ARCH=\"${DEFAULT_ARCH}\"
30 CFLAGS+= -DTARGET_VENDOR=\"${TARGET_VENDOR}\"
31 CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\"
32 CFLAGS+= "-DEMULATIONS=${EMULATIONS}"
33 CFLAGS+= -DDEFAULT_EMULATION=\"${DEFAULT_EMULATION}\"
34 CFLAGS+= -DTE_DragonFly
36 DPADD= ${RELTOP}/libbfd/libbfd.a
37 DPADD+= ${RELTOP}/libiberty/libiberty.a
38 DPADD+= ${RELTOP}/libopcodes/libopcodes.a
41 # tc-i386.c has some stupid code in it which makes it impossible to
42 # disable the use of '/' as a comment. We need to make it useable for
43 # a divide operator so we have to munge tc-i386.c.
45 tc-i386-local.c: tc-i386.c
46 sed -e 's/TE_NetBSD/TE_DragonFly/g' \
47 ${.ALLSRC:M*tc-i386.c} >> ${.TARGET}.new
48 mv -f ${.TARGET}.new ${.TARGET}
50 # If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
51 # binutils release. FreeBSD only distributes the bits that are required to
52 # build native architectures. BINUTILSDISTDIR is needed to build cross tools.
53 .if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
54 .PATH: ${BINUTILSDISTDIR}/gas ${BINUTILSDISTDIR}/gas/config
55 CFLAGS+= -I${BINUTILSDISTDIR}/gas
56 CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
57 CFLAGS+= -I${BINUTILSDISTDIR}/bfd
58 CFLAGS+= -I${BINUTILSDISTDIR}/include
59 CFLAGS+= -I${BINUTILSDISTDIR}