2001-08-06 19:56:07 +04:00
|
|
|
# $NetBSD: Makefile,v 1.19 2001/08/06 15:56:07 tv Exp $
|
1998-05-19 23:09:31 +04:00
|
|
|
#
|
|
|
|
|
1999-01-11 14:49:20 +03:00
|
|
|
.include <bsd.own.mk>
|
1998-05-19 23:09:31 +04:00
|
|
|
|
2001-08-06 19:56:07 +04:00
|
|
|
.if !defined(USE_NEW_TOOLCHAIN)
|
1999-02-09 20:50:35 +03:00
|
|
|
# Override to make a cross assembler.
|
2001-01-08 11:29:59 +03:00
|
|
|
.if exists(${.CURDIR}/arch/${MACHINE_ARCH})
|
|
|
|
TARGET_ARCH= ${MACHINE_ARCH}
|
|
|
|
.elif exists(${.CURDIR}/arch/${MACHINE_CPU})
|
|
|
|
TARGET_ARCH= ${MACHINE_CPU}
|
1999-02-24 20:48:42 +03:00
|
|
|
.else
|
2001-01-08 11:29:59 +03:00
|
|
|
.BEGIN:
|
|
|
|
@echo no arch/${MACHINE_ARCH} nor arch/${MACHINE_CPU} exists
|
|
|
|
@false
|
1999-02-24 20:48:42 +03:00
|
|
|
.endif
|
1998-05-19 23:09:31 +04:00
|
|
|
|
2001-05-04 01:47:28 +04:00
|
|
|
.if ${MACHINE_ARCH} != "sparc64" && \
|
|
|
|
((${MACHINE_ARCH} != "m68k" && ${MACHINE_ARCH} != "ns32k") || \
|
|
|
|
${OBJECT_FMT} == "ELF" || \
|
|
|
|
defined(BOOTSTRAP_ELF))
|
1999-02-09 20:50:35 +03:00
|
|
|
PROG= as
|
|
|
|
MAN= as.1
|
|
|
|
SRCS= app.c as.c atof-generic.c bignum-copy.c cond.c depend.c \
|
|
|
|
ecoff.c ehopt.c expr.c flonum-konst.c flonum-copy.c \
|
|
|
|
flonum-mult.c frags.c hash.c input-file.c input-scrub.c \
|
|
|
|
literal.c messages.c output-file.c read.c subsegs.c symbols.c \
|
|
|
|
write.c listing.c stabs.c sb.c macro.c
|
|
|
|
SRCS+= ${TARG_CPU_C} ${OBJ_FORMAT_C} ${ATOF_TARG_C}
|
2000-06-17 21:59:28 +04:00
|
|
|
.else
|
|
|
|
NOPROG=
|
|
|
|
.endif
|
1998-05-19 23:09:31 +04:00
|
|
|
|
1999-02-09 20:50:35 +03:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${TARGET_ARCH} \
|
|
|
|
-I${DIST}/gas -I${DIST}/gas/config -I${BFDOBJ} \
|
|
|
|
-I${DIST}/bfd -I${DIST}/include -I${DIST} \
|
|
|
|
-D_GNU_SOURCE
|
1999-07-30 08:07:23 +04:00
|
|
|
LDADD+= -L${BFDOBJ} -lbfd
|
|
|
|
DPADD+= ${BFDOBJ}/libbfd_pic.a
|
1998-05-19 23:09:31 +04:00
|
|
|
|
2000-05-11 04:56:48 +04:00
|
|
|
TEXINFO= as.texi
|
|
|
|
INFOFLAGS= -I${DIST}/gas/doc
|
|
|
|
|
1999-02-09 20:50:35 +03:00
|
|
|
DIST= ${.CURDIR}/../../dist
|
2001-01-09 11:52:56 +03:00
|
|
|
BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
|
1998-08-23 01:22:16 +04:00
|
|
|
|
1999-02-09 20:50:35 +03:00
|
|
|
.PATH: ${DIST}/gas/config ${DIST}/gas ${DIST}/gas/doc
|
1998-05-19 23:09:31 +04:00
|
|
|
|
1999-02-09 20:50:35 +03:00
|
|
|
.include "${.CURDIR}/arch/${TARGET_ARCH}/Makefile.inc"
|
2000-05-11 04:56:48 +04:00
|
|
|
.include <bsd.info.mk>
|
2001-08-06 19:56:07 +04:00
|
|
|
.endif
|
1998-05-19 23:09:31 +04:00
|
|
|
.include <bsd.prog.mk>
|