NetBSD/gnu/usr.bin/gas.new/Makefile

53 lines
1.4 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.19 2001/08/06 15:56:07 tv Exp $
#
1999-01-11 14:49:20 +03:00
.include <bsd.own.mk>
.if !defined(USE_NEW_TOOLCHAIN)
# Override to make a cross assembler.
.if exists(${.CURDIR}/arch/${MACHINE_ARCH})
TARGET_ARCH= ${MACHINE_ARCH}
.elif exists(${.CURDIR}/arch/${MACHINE_CPU})
TARGET_ARCH= ${MACHINE_CPU}
.else
.BEGIN:
@echo no arch/${MACHINE_ARCH} nor arch/${MACHINE_CPU} exists
@false
.endif
.if ${MACHINE_ARCH} != "sparc64" && \
((${MACHINE_ARCH} != "m68k" && ${MACHINE_ARCH} != "ns32k") || \
${OBJECT_FMT} == "ELF" || \
defined(BOOTSTRAP_ELF))
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}
.else
NOPROG=
.endif
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
2000-05-11 04:56:48 +04:00
TEXINFO= as.texi
INFOFLAGS= -I${DIST}/gas/doc
DIST= ${.CURDIR}/../../dist
BFDOBJ!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
.PATH: ${DIST}/gas/config ${DIST}/gas ${DIST}/gas/doc
.include "${.CURDIR}/arch/${TARGET_ARCH}/Makefile.inc"
2000-05-11 04:56:48 +04:00
.include <bsd.info.mk>
.endif
.include <bsd.prog.mk>