NetBSD/usr.bin/crunch/crunchgen/Makefile
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00

24 lines
588 B
Makefile

# $NetBSD: Makefile,v 1.12 2003/10/21 10:01:22 lukem Exp $
PROG= crunchgen
SRCS= crunchgen.c crunched_skel.c
CLEANFILES+= crunched_skel.c
crunched_skel.c: mkskel.sh crunched_main.c
${_MKTARGET_CREATE}
${HOST_SH} ${.ALLSRC} >${.TARGET}
.include <bsd.prog.mk>
.ifndef HOSTPROG
# Native tool -- key only off TOOLCHAIN_MISSING
.if ${TOOLCHAIN_MISSING} != "yes"
CPPFLAGS+= -DNEW_TOOLCHAIN
.endif
.else
# Host tool -- We can also pay attention to EXTERNAL_TOOLCHAIN.
.if ${TOOLCHAIN_MISSING} != "yes" || defined(EXTERNAL_TOOLCHAIN)
CPPFLAGS+= -DNEW_TOOLCHAIN
.endif
.endif # ! HOSTPROG