binutils214 stage 1/4. Bring in the build infrastructure (left untied from
[dragonfly.git] / gnu / usr.bin / binutils214 / 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/binutils214/as/Attic/Makefile.inc0,v 1.1 2004/02/01 08:53:03 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 CFLAGS+= -DTE_DragonFly
28 NOSHARED?=      yes
29 DPADD=  ${RELTOP}/libbfd/libbfd.a
30 DPADD+= ${RELTOP}/libiberty/libiberty.a
31 DPADD+= ${RELTOP}/libopcodes/libopcodes.a
32 LDADD=  ${DPADD}
33
34 # tc-i386.c has some stupid code in it which makes it impossible to
35 # disable the use of '/' as a comment.  We need to make it useable for
36 # a divide operator so we have to munge tc-i386.c.
37 #
38 tc-i386-local.c: tc-i386.c
39         sed -e 's/TE_NetBSD/TE_DragonFly/g' \
40                 ${.ALLSRC:M*tc-i386.c} >> ${.TARGET}.new
41         mv -f ${.TARGET}.new ${.TARGET}
42
43 # If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
44 # binutils release. FreeBSD only distributes the bits that are required to
45 # build native architectures. BINUTILSDISTDIR is needed to build cross tools.
46 .if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
47 .PATH: ${BINUTILSDISTDIR}/gas ${BINUTILSDISTDIR}/gas/config
48 CFLAGS+= -I${BINUTILSDISTDIR}/gas
49 CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
50 CFLAGS+= -I${BINUTILSDISTDIR}/bfd
51 CFLAGS+= -I${BINUTILSDISTDIR}/include
52 CFLAGS+= -I${BINUTILSDISTDIR}
53 .endif