-# $OpenBSD: Makefile.inc,v 1.15 2014/04/13 08:35:27 brad Exp $
+# $OpenBSD: Makefile.inc,v 1.16 2023/03/11 20:49:33 miod Exp $
# $NetBSD: Makefile.inc,v 1.8 1997/04/06 08:39:38 cgd Exp $
BINDIR= /usr/mdec
CFLAGS+= -fno-stack-protector -fno-builtin-printf \
-fno-builtin-vprintf -fno-builtin-putchar \
-fno-builtin-puts -fno-builtin-exit
+
+OBJCOPY?= objcopy
+STRIP?= strip
-# $OpenBSD: Makefile,v 1.25 2020/03/11 09:59:31 otto Exp $
+# $OpenBSD: Makefile,v 1.26 2023/03/11 20:49:33 miod Exp $
# $NetBSD: Makefile,v 1.17 1997/04/17 07:27:46 thorpej Exp $
S= ${.CURDIR}/../../../..
DEFNS= -DCOMPAT_UFS
AFLAGS += -DASSEMBLER ${DEFNS} -fno-pie
-CPPFLAGS += -I${.CURDIR}/../../../../lib/libsa -I${.CURDIR}/../.. -I${S} ${DEFNS}
+CPPFLAGS += -I${.CURDIR}/../.. -I${S} ${DEFNS}
CFLAGS = -Oz -Werror -mno-fp-regs -fno-pie \
-msmall-data -msmall-text
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
- strip ${PROG}.nosym
+ ${STRIP} ${PROG}.nosym
${PROG}: ${PROG}.nosym
- objcopy --output-target=binary ${PROG}.nosym ${PROG}
+ ${OBJCOPY} --output-target=binary ${PROG}.nosym ${PROG}
.include <bsd.prog.mk>
-# $OpenBSD: Makefile,v 1.18 2023/02/07 12:06:53 miod Exp $
+# $OpenBSD: Makefile,v 1.19 2023/03/11 20:49:33 miod Exp $
# $NetBSD: Makefile,v 1.12 1997/04/17 07:27:49 thorpej Exp $
S= ${.CURDIR}/../../../..
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
- strip ${PROG}.nosym
+ ${STRIP} ${PROG}.nosym
${PROG}: ${PROG}.nosym
- objcopy --output-target=binary ${PROG}.nosym ${PROG}.trunc
+ ${OBJCOPY} --output-target=binary ${PROG}.nosym ${PROG}.trunc
dd if=${PROG}.trunc of=${PROG} obs=`expr 15 \* 512` conv=osync
.include <bsd.prog.mk>
-# $OpenBSD: Makefile,v 1.18 2021/07/02 03:10:19 deraadt Exp $
+# $OpenBSD: Makefile,v 1.19 2023/03/11 20:49:33 miod Exp $
# $NetBSD: Makefile,v 1.11 1997/04/17 07:27:50 thorpej Exp $
S= ${.CURDIR}/../../../..
BOOT_RELOC = ${PRIMARY_LOAD_ADDRESS}
-CLEANFILES+= vers.c vers.o ${PROG}.sym ${PROG}.nosym
+CLEANFILES+= vers.c vers.o ${PROG}.sym ${PROG}.nosym ${PROG}.mop
.PATH: ${S}/lib/libkern/arch/alpha ${S}/lib/libkern
SRCS+= bzero.c __divqu.S strlen.c __remqu.S __remq.S __remlu.S
${PROG}.nosym: ${PROG}.sym
cp ${PROG}.sym ${PROG}.nosym
- strip ${PROG}.nosym
+ ${STRIP} ${PROG}.nosym
${PROG} ${PROG}.mop: ${PROG}.nosym
- objcopy --output-target=binary ${PROG}.nosym ${PROG}
+ ${OBJCOPY} --output-target=binary ${PROG}.nosym ${PROG}
mopa.out ${PROG}.nosym ${PROG}.mop
realinstall: