NetBSD/usr.bin/crunch/crunchgen/Makefile

32 lines
627 B
Makefile
Raw Normal View History

2006-08-29 16:50:49 +04:00
# $NetBSD: Makefile,v 1.15 2006/08/29 12:50:49 christos Exp $
1994-08-29 18:47:29 +04:00
PROG= crunchgen
SRCS= crunchgen.c crunched_skel.c
CLEANFILES+= crunched_skel.c
1994-08-29 18:47:29 +04:00
crunched_skel.c: mkskel.sh crunched_main.c
${_MKTARGET_CREATE}
2003-10-19 08:05:01 +04:00
${HOST_SH} ${.ALLSRC} >${.TARGET}
1994-08-29 18:47:29 +04:00
2006-08-26 22:17:41 +04:00
1994-08-29 18:47:29 +04:00
.include <bsd.prog.mk>
.ifndef HOSTPROG
2006-08-29 16:50:49 +04:00
LDADD+=-lutil
DPADD+=${LIBUTIL}
# Native tool -- key only off TOOLCHAIN_MISSING
.if ${TOOLCHAIN_MISSING} == "no"
CPPFLAGS+= -DNEW_TOOLCHAIN
.endif
2006-08-29 16:50:49 +04:00
.else
2006-08-29 16:50:49 +04:00
# Host tool -- We can also pay attention to EXTERNAL_TOOLCHAIN.
.if ${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)
CPPFLAGS+= -DNEW_TOOLCHAIN
.endif
2006-08-29 16:50:49 +04:00
.endif # ! HOSTPROG