1 1.16 christos # $NetBSD: Makefile,v 1.16 2026/02/11 20:15:05 christos Exp $ 2 1.1 skrll 3 1.13 christos CPPFLAGS+= -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH} 4 1.13 christos CPPFLAGS+= -I${DIST}/gas -I${DIST}/gas/config 5 1.13 christos CPPFLAGS+= -I${DIST} 6 1.1 skrll 7 1.1 skrll .include "${.CURDIR}/../common/Makefile.inc" 8 1.11 matt .include "${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH}/defs.mk" 9 1.1 skrll 10 1.1 skrll PROG= as 11 1.14 christos SRCS= ${G_OBJS:M*.o:Nitbl-[pl]*:Nm68k-parse.o:.o=.c} \ 12 1.14 christos ${G_OBJS:M*.o:Mitbl-parse.o:.o=.y} \ 13 1.14 christos ${G_OBJS:M*.o:Mitbl-lex-wrapper.o:S/-wrapper.o/.l/} \ 14 1.14 christos ${G_OBJS:M*.o:Mm68k-parse.o:.o=.y} 15 1.1 skrll 16 1.1 skrll COPTS.obj-elf.c = -Wno-stack-protector 17 1.1 skrll COPTS.atof-generic.c = -Wno-stack-protector 18 1.1 skrll COPTS.dwarf2dbg.c = -Wno-stack-protector 19 1.1 skrll COPTS.symbols.c = -Wno-stack-protector 20 1.1 skrll COPTS.stabs.c = -Wno-stack-protector 21 1.1 skrll COPTS.macro.c = -Wno-stack-protector 22 1.1 skrll 23 1.9 christos PROGDPLIBS+= opcodes ${TOP}/${BFDSUBDIR}/libopcodes 24 1.9 christos PROGDPLIBS+= bfd ${TOP}/${BFDSUBDIR}/libbfd 25 1.15 christos PROGDPLIBS+= sframe ${TOP}/${BFDSUBDIR}/libsframe 26 1.9 christos PROGDPLIBS+= iberty ${TOP}/${BFDSUBDIR}/libiberty 27 1.1 skrll 28 1.1 skrll TEXINFO= as.texinfo 29 1.3 blymn COMMONOBJDIR!= cd ${TOP}/usr.bin/common && ${PRINTOBJDIR} 30 1.16 christos INFOFLAGS+= -I${DIST}/gas/doc -I${DIST}/bfd/doc 31 1.16 christos INFOFLAGS+= -I${COMMONOBJDIR} -I${DIST}/libiberty 32 1.1 skrll 33 1.16 christos as.info: ${DIST}/bfd/doc/bfdver.texi 34 1.4 skrll 35 1.4 skrll .PATH: ${COMMONOBJDIR} ${DIST}/gas ${DIST}/gas/config ${DIST}/gas/doc 36 1.1 skrll 37 1.1 skrll .include <bsd.prog.mk> 38 1.1 skrll .include <bsd.info.mk> 39 1.9 christos 40 1.10 matt LDADD+= -lintl -lz -lm 41 1.10 matt DPADD+= ${LIBINTL} ${LIBZ} ${LIBM} 42