NetBSD/sys/arch/x68k/usr.bin/loadkmap/Makefile
minoura 9f9181afde Use objcopy instead of dd. This will work after we'll switch to ELF.
Using command directly breaks cross compilation.  Use macro instead.
2000-11-25 05:27:19 +00:00

26 lines
589 B
Makefile

# $NetBSD: Makefile,v 1.7 2000/11/25 05:27:19 minoura Exp $
# Makefile for loadkmap
PROG= loadkmap
MKMAN= no
FILES= ascii_kmap jis_kmap
FILESDIR= /usr/share/keymaps/x68k
CLEANFILES+= ascii_kmap jis_kmap
realall: loadkmap ascii_kmap jis_kmap
OBJCOPY?= /usr/bin/objcopy
ascii_kmap: ascii_kmap.c
$(CC) -c -o ${.TARGET}.aout ${.CURDIR}/ascii_kmap.c
${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET}
rm ${.TARGET}.aout
jis_kmap: jis_kmap.c
$(CC) -c -o ${.TARGET}.aout ${.CURDIR}/jis_kmap.c
${OBJCOPY} -O binary ${.TARGET}.aout ${.TARGET}
rm ${.TARGET}.aout
.include <bsd.prog.mk>