-# $OpenBSD: Makefile.inc,v 1.2 2013/10/30 20:39:05 miod Exp $
+# $OpenBSD: Makefile.inc,v 1.3 2023/02/24 23:36:10 aoyama Exp $
# $NetBSD: Makefile.inc,v 1.1 2013/01/06 07:04:49 tsutsui Exp $
NOPIE=
-MDEC_DIR?= /usr/mdec
+BINDIR= /usr/mdec
CFLAGS+= -Wall -Werror -fno-stack-protector
CFLAGS+= -mmemcpy
CFLAGS+= -fno-builtin-printf -fno-builtin-putchar -fno-builtin-vprintf
-# $OpenBSD: Makefile,v 1.16 2023/02/15 12:43:32 aoyama Exp $
+# $OpenBSD: Makefile,v 1.17 2023/02/24 23:36:11 aoyama Exp $
# $NetBSD: Makefile,v 1.9 2013/01/22 15:48:40 tsutsui Exp $
# @(#)Makefile 8.2 (Berkeley) 8/15/93
.if ${MACHINE} == "luna88k"
PROG= boot
+INSTALL_STRIP=
S= ${.CURDIR}/../../../..
${LD} ${LINKFORMAT} -x -o ${PROG}.elf ${OBJS} ${LIBS}
${OBJCOPY} -S -O a.out-m88k-openbsd --impure ${PROG}.elf ${PROG}
-install: ${PROG}
- install -m 555 -g bin -o bin ${PROG} ${DESTDIR}${MDEC_DIR}
-
CLEANFILES+= ${PROG}.elf
.if !make(clean) && !make(cleandir) && !make(includes) && !make(obj)