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