#
# $Id: Makefile,v 1.1 1998/03/12 02:54:57 jdp Exp $
#

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/gas ${SRCDIR}/gas/config

PROG=		as
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 \
		obj-elf.c output-file.c read.c sb.c stabs.c \
		subsegs.c symbols.c write.c
CFLAGS+=	-I${SRCDIR}/gas
CFLAGS+=	-I${SRCDIR}/gas/config
CFLAGS+=	-I${SRCDIR}
LDADD+=		-L${RELTOP}/libbfd -lbfd
LDADD+=		-L${RELTOP}/libiberty -liberty

.include <bsd.prog.mk>

#
# $Id$
#

GASES=		${MACHINE_ARCH} ${CROSS_TOOLS}
.for _g in ${GASES}
SUBDIR+=	as_${_g}
.endfor

.include <bsd.subdir.mk>

Add support for cross-architecture gases. Since the GNU code doesn't support more than one architecture at a time, build as from the default for the host and if CROSS_TOOLS defines other architectures, build them as as_${arch}
Add support for cross-architecture gases. Since the GNU code doesn't
support more than one architecture at a time, build as from the
default for the host and if CROSS_TOOLS defines other architectures,
build them as as_${arch}
