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