Makefile revision 132754
1# $FreeBSD: head/gnu/usr.bin/binutils/as/Makefile 132754 2004-07-28 05:39:04Z kan $
2
3
4# BINDIR
5.include "${.CURDIR}/../../Makefile.inc"
6WARNS?=	2
7NO_WERROR= yes
8.include "${.CURDIR}/../Makefile.inc0"
9
10.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
11
12PROG=	as
13MAN=	doc/as.1
14SRCS+=	app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
15	cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
16	flonum-mult.c frags.c hash.c input-file.c \
17	input-scrub.c listing.c literal.c macro.c messages.c \
18	obj-elf.c output-file.c read.c sb.c stabs.c \
19	subsegs.c symbols.c write.c depend.c ehopt.c dw2gencfi.c
20# DEO: why not used?
21#SRCS+=	itbl-ops.c
22
23.if ${TARGET_ARCH} == "amd64"
24SRCS+=	tc-i386.c
25.elif ${TARGET_ARCH} == "powerpc"
26SRCS+=	tc-ppc.c
27.elif ${TARGET_ARCH} == "sparc64"
28SRCS+=	tc-sparc.c
29.else
30SRCS+=	tc-${TARGET_ARCH}.c
31.endif
32
33.if ${TARGET_ARCH} == "sparc64"
34CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
35.else
36CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
37.endif
38CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
39CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
40CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
41CFLAGS+= -DVERSION=\"${VERSION}\"
42CFLAGS+= -D_GNU_SOURCE
43CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR}
44CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_ARCH}-freebsd
45
46NOSHARED?=	yes
47
48DPADD=	${RELTOP}/libbfd/libbfd.a
49DPADD+=	${RELTOP}/libiberty/libiberty.a
50DPADD+=	${RELTOP}/libopcodes/libopcodes.a
51LDADD=	${DPADD}
52
53.include <bsd.prog.mk>
54