Makefile revision 215082
1266077Sdes# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 215082 2010-11-10 06:39:49Z imp $ 2266077Sdes 3266077Sdes 4266077Sdes# BINDIR 5266077Sdes.include "${.CURDIR}/../../Makefile.inc" 6266077SdesWARNS?= 2 7266077SdesNO_WERROR= 8266077Sdes.include "${.CURDIR}/../Makefile.inc0" 9266077Sdes 10266077Sdes.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config 11266077Sdes 12266077SdesPROG= as 13266077SdesMAN= doc/as.1 14266077SdesSRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \ 15266077Sdes cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \ 16266077Sdes flonum-mult.c frags.c hash.c input-file.c \ 17266077Sdes input-scrub.c listing.c literal.c macro.c messages.c \ 18266077Sdes obj-elf.c output-file.c read.c sb.c stabs.c \ 19266077Sdes subsegs.c symbols.c write.c depend.c ehopt.c dw2gencfi.c 20266077Sdes# DEO: why not used? 21266077Sdes#SRCS+= itbl-ops.c 22266077Sdes 23266077Sdes.if ${TARGET_CPUARCH} == "mips" 24266077SdesSRCS+= itbl-ops.c itbl-parse.y itbl-lex.l 25266077Sdes.endif 26266077Sdes 27266077Sdes.if ${TARGET_ARCH} == "amd64" 28266077SdesSRCS+= tc-i386.c 29266077Sdes.elif ${TARGET_ARCH} == "powerpc" || ${TARGET_ARCH} == "powerpc64" 30266077SdesSRCS+= tc-ppc.c 31266077Sdes.elif ${TARGET_ARCH} == "sparc64" 32266077Sdes# change back to tc-sparc.c when new binutils is imported 33266077SdesSRCS+= tc-sparc-fixed.c 34266077Sdes.else 35266077SdesSRCS+= tc-${TARGET_CPUARCH}.c 36266077Sdes.endif 37266077Sdes 38266077Sdes.if ${TARGET_ARCH} == "sparc64" 39266077SdesCFLAGS+= -DDEFAULT_ARCH=\"v9-64\" 40266077Sdes.else 41266077SdesCFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\" 42266077Sdes.endif 43266077Sdes.if defined(TARGET_BIG_ENDIAN) 44266077SdesCFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1 45266077Sdes.endif 46266077SdesCFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\" 47266077SdesCFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\" 48266077SdesCFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\" 49266077SdesCFLAGS+= -DVERSION=\"${VERSION}\" 50266077SdesCFLAGS+= -D_GNU_SOURCE 51266077SdesCFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} 52266077SdesCFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_CPUARCH}-freebsd 53266077Sdes 54266077SdesNO_SHARED?= yes 55266077Sdes 56266077SdesDPADD= ${RELTOP}/libbfd/libbfd.a 57266077SdesDPADD+= ${RELTOP}/libiberty/libiberty.a 58266077SdesDPADD+= ${RELTOP}/libopcodes/libopcodes.a 59266077SdesLDADD= ${DPADD} 60266077Sdes 61266077Sdes.include <bsd.prog.mk> 62266077Sdes