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