1# $FreeBSD$ 2 3 4# BINDIR 5.include "${.CURDIR}/../../Makefile.inc" 6.include "${.CURDIR}/../Makefile.inc0" 7 8.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config 9 10PROG= as 11SRCS+= app.c \ 12 as.c \ 13 atof-generic.c \ 14 atof-ieee.c \ 15 cond.c \ 16 depend.c \ 17 dw2gencfi.c \ 18 dwarf2dbg.c \ 19 ecoff.c \ 20 ehopt.c \ 21 expr.c \ 22 flonum-copy.c \ 23 flonum-konst.c \ 24 flonum-mult.c \ 25 frags.c \ 26 hash.c \ 27 input-file.c \ 28 input-scrub.c \ 29 listing.c \ 30 literal.c \ 31 macro.c \ 32 messages.c \ 33 obj-elf.c \ 34 output-file.c \ 35 read.c \ 36 sb.c \ 37 stabs.c \ 38 subsegs.c \ 39 symbols.c \ 40 write.c 41# DEO: why not used? 42#SRCS+= itbl-ops.c 43 44.if ${TARGET_ARCH} == "mips" 45SRCS+= itbl-ops.c itbl-parse.y itbl-lex.l 46.endif 47 48.if ${TARGET_ARCH} == "amd64" 49SRCS+= tc-i386.c 50.elif ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "powerpc64" 51SRCS+= tc-ppc.c 52.elif ${TARGET_ARCH} == "sparc64" 53SRCS+= tc-sparc.c 54.else 55SRCS+= tc-${TARGET_ARCH}.c 56.endif 57 58.if ${TARGET_ARCH} == "sparc64" 59CFLAGS+= -DDEFAULT_ARCH=\"v9-64\" 60.else 61CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\" 62.endif 63.if defined(TARGET_BIG_ENDIAN) 64CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1 65.endif 66CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\" 67CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\" 68CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\" 69CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\" 70CFLAGS+= -DVERSION=\"${VERSION}\" 71CFLAGS+= -D_GNU_SOURCE 72CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/bfd -I${SRCDIR}/gas/config -I${SRCDIR} 73CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_ARCH}-freebsd 74 75NO_SHARED?= yes 76 77DPADD= ${RELTOP}/libbfd/libbfd.a 78DPADD+= ${RELTOP}/libiberty/libiberty.a 79DPADD+= ${RELTOP}/libopcodes/libopcodes.a 80LDADD= ${DPADD} 81 82.include <bsd.prog.mk> 83