c9ea9e7af8
Change-Id: I5235984746178ee30b5db18e7def0016d9a0e36f
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2013/10/02 14:35:33 christos Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
TOP= ${NETBSDSRCDIR}/external/gpl3/binutils
|
|
|
|
.include "${.CURDIR}/../common/Makefile.inc"
|
|
.include "${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}/defs.mk"
|
|
|
|
PROG= as
|
|
SRCS= ${G_OBJS:Nitbl-[pl]*:Nm68k-parse.o:.o=.c} \
|
|
${G_OBJS:Mitbl-parse.o:.o=.y} \
|
|
${G_OBJS:Mitbl-lex-wrapper.o:S/-wrapper.o/.l/} \
|
|
${G_OBJS:Mm68k-parse.o:.o=.y}
|
|
|
|
COPTS.obj-elf.c = -Wno-stack-protector
|
|
COPTS.atof-generic.c = -Wno-stack-protector
|
|
COPTS.dwarf2dbg.c = -Wno-stack-protector
|
|
COPTS.symbols.c = -Wno-stack-protector
|
|
COPTS.stabs.c = -Wno-stack-protector
|
|
COPTS.macro.c = -Wno-stack-protector
|
|
|
|
CPPFLAGS+= -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}
|
|
CPPFLAGS+= -I${DIST}/gas -I${DIST}/gas/config
|
|
CPPFLAGS+= -I${DIST}
|
|
|
|
PROGDPLIBS+= opcodes ${TOP}/${BFDSUBDIR}/libopcodes
|
|
PROGDPLIBS+= bfd ${TOP}/${BFDSUBDIR}/libbfd
|
|
PROGDPLIBS+= iberty ${TOP}/${BFDSUBDIR}/libiberty
|
|
|
|
TEXINFO= as.texinfo
|
|
COMMONOBJDIR!= cd ${TOP}/usr.bin/common && ${PRINTOBJDIR}
|
|
INFOFLAGS= -I${DIST}/gas/doc -I${COMMONOBJDIR} -I${DIST}/libiberty
|
|
|
|
as.info: bfdver.texi
|
|
|
|
.PATH: ${COMMONOBJDIR} ${DIST}/gas ${DIST}/gas/config ${DIST}/gas/doc
|
|
|
|
.include <bsd.prog.mk>
|
|
.include <bsd.info.mk>
|
|
|
|
.if !defined(__MINIX)
|
|
LDADD+= -lintl -lz -lm
|
|
DPADD+= ${LIBINTL} ${LIBZ} ${LIBM}
|
|
.else
|
|
LDADD+= -lz -lm
|
|
DPADD+= ${LIBZ} ${LIBM}
|
|
.endif # !defined(__MINIX)
|