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

35 lines
928 B
Makefile

# $NetBSD: Makefile,v 1.1 1998/05/19 19:09:31 tv Exp $
#
DIST= ${.CURDIR}/../../dist
TARGET_ARCH ?= ${MACHINE_ARCH}
PROG= as
SRCS= app.c as.c atof-generic.c bignum-copy.c cond.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 ecoff.c stabs.c \
sb.c macro.c
.PATH: ${DIST}/gas/config ${DIST}/gas ${DIST}/gas/doc
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${TARGET_ARCH} \
-I${.CURDIR}/../../lib/bfd -I${DIST}/gas -I${DIST}/gas/config \
-I${DIST}/bfd -I${DIST}/include -I${DIST} \
-D_GNU_SOURCE
.include "${.CURDIR}/arch/${MACHINE_ARCH}/Makefile.inc"
# May be overridden in the Makefile.inc above:
TARGET_CPU ?= ${TARGET_ARCH}
SRCS+= ${TARG_CPU_C} ${OBJ_FORMAT_C} ${ATOF_TARG_C}
CPPFLAGS+= -D__TARGET_CPU=${TARGET_CPU}
LDADD+= -lbfd
DPADD+= ${LIBBFD}
MAN= as.1
.include <bsd.prog.mk>