1999-08-27 23:37:10 +00:00
|
|
|
# $FreeBSD$
|
1998-05-05 08:53:27 +00:00
|
|
|
|
1998-05-11 09:26:39 +00:00
|
|
|
.include "${.CURDIR}/../../Makefile.inc0"
|
1998-05-05 08:53:27 +00:00
|
|
|
|
|
|
|
RELTOP:= ../${RELTOP}
|
|
|
|
|
|
|
|
.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config
|
|
|
|
|
|
|
|
MAN1= doc/as.1
|
|
|
|
SRCS+= app.c as.c atof-generic.c atof-ieee.c bignum-copy.c \
|
|
|
|
cond.c ecoff.c expr.c flonum-copy.c flonum-konst.c \
|
|
|
|
flonum-mult.c frags.c hash.c input-file.c \
|
|
|
|
input-scrub.c listing.c literal.c macro.c messages.c \
|
|
|
|
output-file.c read.c sb.c stabs.c \
|
1998-09-06 23:01:53 +00:00
|
|
|
subsegs.c symbols.c write.c depend.c ehopt.c
|
1998-05-05 08:53:27 +00:00
|
|
|
CFLAGS+= -I${SRCDIR}/gas
|
|
|
|
CFLAGS+= -I${SRCDIR}/gas/config
|
|
|
|
CFLAGS+= -I${SRCDIR}
|
2000-05-22 08:09:42 +00:00
|
|
|
CFLAGS+= -DVERSION=\"${VERSION}\" -DBFD_VERSION=\"${VERSION}\"
|
2001-02-28 10:46:50 +00:00
|
|
|
NOSHARED?= yes
|
2000-03-27 18:02:04 +00:00
|
|
|
DPADD= ${RELTOP}/libbfd/libbfd.a
|
1998-06-03 18:57:59 +00:00
|
|
|
DPADD+= ${RELTOP}/libiberty/libiberty.a
|
|
|
|
DPADD+= ${RELTOP}/libopcodes/libopcodes.a
|
2000-03-27 18:02:04 +00:00
|
|
|
LDADD= ${DPADD}
|
1999-11-06 21:55:33 +00:00
|
|
|
|
|
|
|
# If set, BINUTILSDISTDIR is the path to a directory containing the full GNU
|
|
|
|
# binutils release. FreeBSD only distributes the bits that are required to
|
|
|
|
# build native architectures. BINUTILSDISTDIR is needed to build cross tools.
|
|
|
|
.if defined(BINUTILSDISTDIR) && exists(${BINUTILSDISTDIR})
|
|
|
|
.PATH: ${BINUTILSDISTDIR}/gas ${BINUTILSDISTDIR}/gas/config
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/gas
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/gas/config
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/bfd
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}/include
|
|
|
|
CFLAGS+= -I${BINUTILSDISTDIR}
|
|
|
|
.endif
|