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