]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - gnu/usr.bin/binutils/as/Makefile
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / gnu / usr.bin / binutils / as / Makefile
1 # $FreeBSD$
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
11 PROG=   as
12 SRCS+=  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"
46 SRCS+=  itbl-ops.c itbl-parse.y itbl-lex.l
47 .endif
48
49 .if ${TARGET_ARCH} == "amd64"
50 SRCS+=  tc-i386.c
51 .elif ${TARGET_CPUARCH} == "powerpc"
52 SRCS+=  tc-ppc.c
53 .elif ${TARGET_ARCH} == "sparc64"
54 SRCS+=  tc-sparc.c
55 .else
56 SRCS+=  tc-${TARGET_CPUARCH}.c
57 .endif
58
59 .if ${TARGET_ARCH} == "sparc64"
60 CFLAGS+= -DDEFAULT_ARCH=\"v9-64\"
61 .else
62 CFLAGS+= -DDEFAULT_ARCH=\"${BINUTILS_ARCH}\"
63 .endif
64 .if defined(TARGET_BIG_ENDIAN)
65 CFLAGS+= -DTARGET_BYTES_BIG_ENDIAN=1
66 .endif
67 CFLAGS+= -DTARGET_CPU=\"${BINUTILS_ARCH}\"
68 CFLAGS+= -DTARGET_OS=\"${TARGET_OS}\"
69 CFLAGS+= -DTARGET_CANONICAL=\"${TARGET_TUPLE}\"
70 CFLAGS+= -DTARGET_ALIAS=\"${TARGET_TUPLE}\"
71 CFLAGS+= -DVERSION=\"${VERSION}\"
72 CFLAGS+= -D_GNU_SOURCE
73 CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/bfd -I${SRCDIR}/gas/config -I${SRCDIR}
74 CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${TARGET_CPUARCH}-freebsd
75
76 .if ${MK_SHARED_TOOLCHAIN} == "no"
77 NO_SHARED?=     yes
78 .endif
79
80 DPADD=  ${RELTOP}/libbfd/libbfd.a
81 DPADD+= ${RELTOP}/libiberty/libiberty.a
82 DPADD+= ${RELTOP}/libopcodes/libopcodes.a
83 LDADD=  ${DPADD}
84
85 .include <bsd.prog.mk>