]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - gnu/usr.bin/binutils/as/Makefile
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / gnu / usr.bin / binutils / as / Makefile
1 # $FreeBSD$
2
3
4 # BINDIR
5 .include "${.CURDIR}/../../Makefile.inc"
6 WARNS?= 2
7 NO_WERROR=
8 .include "${.CURDIR}/../Makefile.inc0"
9
10 .PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
11
12 PROG=   as
13 MAN=    doc/as.1
14 SRCS+=  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} == "mips"
24 SRCS+=  itbl-ops.c itbl-parse.y itbl-lex.l
25 .endif
26
27 .if ${TARGET_ARCH} == "amd64"
28 SRCS+=  tc-i386.c
29 .elif ${TARGET_ARCH} == "powerpc"
30 SRCS+=  tc-ppc.c
31 .elif ${TARGET_ARCH} == "sparc64"
32 # change back to tc-sparc.c when new binutils is imported
33 SRCS+=  tc-sparc-fixed.c
34 .else
35 SRCS+=  tc-${TARGET_ARCH}.c
36 .endif
37
38 .if ${TARGET_ARCH} == "sparc64"
39 CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
40 .else
41 CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
42 .endif
43 .if defined(TARGET_BIG_ENDIAN)
44 CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1
45 .endif
46 CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
47 CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
48 CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
49 CFLAGS+= -DVERSION=\"${VERSION}\"
50 CFLAGS+= -D_GNU_SOURCE
51 CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR}
52 CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_ARCH}-freebsd
53
54 NO_SHARED?=     yes
55
56 DPADD=  ${RELTOP}/libbfd/libbfd.a
57 DPADD+= ${RELTOP}/libiberty/libiberty.a
58 DPADD+= ${RELTOP}/libopcodes/libopcodes.a
59 LDADD=  ${DPADD}
60
61 .include <bsd.prog.mk>