Initial import from FreeBSD RELENG_4:
[dragonfly.git] / gnu / usr.bin / binutils / as / Makefile.inc0
1 # $FreeBSD: src/gnu/usr.bin/binutils/as/Makefile.inc0,v 1.6.2.4 2002/09/01 23:39:13 obrien Exp $
2
3 .include "${.CURDIR}/../../Makefile.inc0"
4
5 RELTOP:= ../${RELTOP}
6 .PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
7
8 PROG=   as
9 MAN=    doc/as.1
10 SRCS+=  app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
11         cond.c dwarf2dbg.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
12         flonum-mult.c frags.c hash.c input-file.c \
13         input-scrub.c listing.c literal.c macro.c messages.c \
14         output-file.c read.c sb.c stabs.c \
15         subsegs.c symbols.c write.c depend.c ehopt.c
16 # DEO: why not used?
17 #SRCS+= itbl-ops.c
18 .if (${TARGET_ARCH} == "alpha")
19 WARNS=  0
20 .else
21 WARNS=  2
22 .endif
23 CFLAGS+= -I${SRCDIR}/gas -I${SRCDIR}/gas/config -I${SRCDIR} -I${.CURDIR}/..
24 CFLAGS+= -DVERSION=\"${VERSION:C/[ ]?${VERSION_DATE}[ ]?//g}\" 
25 CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
26 NOSHARED?=      yes
27 DPADD=  ${RELTOP}/libbfd/libbfd.a
28 DPADD+= ${RELTOP}/libiberty/libiberty.a
29 DPADD+= ${RELTOP}/libopcodes/libopcodes.a
30 LDADD=  ${DPADD}
31
32 # If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
33 # binutils release. FreeBSD only distributes the bits that are required to
34 # build native architectures. BINUTILSDISTDIR is needed to build cross tools.
35 .if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
36 .PATH: ${BINUTILSDISTDIR}/gas ${BINUTILSDISTDIR}/gas/config
37 CFLAGS+= -I${BINUTILSDISTDIR}/gas
38 CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
39 CFLAGS+= -I${BINUTILSDISTDIR}/bfd
40 CFLAGS+= -I${BINUTILSDISTDIR}/include
41 CFLAGS+= -I${BINUTILSDISTDIR}
42 .endif