9f9181afde
Using command directly breaks cross compilation. Use macro instead.
26 lines
589 B
Makefile
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>
|