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