1 1.15 christos # $NetBSD: Makefile,v 1.15 2006/08/29 12:50:49 christos Exp $ 2 1.1 cgd 3 1.7 tv PROG= crunchgen 4 1.7 tv SRCS= crunchgen.c crunched_skel.c 5 1.7 tv CLEANFILES+= crunched_skel.c 6 1.1 cgd 7 1.7 tv crunched_skel.c: mkskel.sh crunched_main.c 8 1.12 lukem ${_MKTARGET_CREATE} 9 1.11 lukem ${HOST_SH} ${.ALLSRC} >${.TARGET} 10 1.1 cgd 11 1.14 christos 12 1.15 christos .include <bsd.prog.mk> 13 1.15 christos 14 1.15 christos .ifndef HOSTPROG 15 1.15 christos 16 1.14 christos LDADD+=-lutil 17 1.14 christos DPADD+=${LIBUTIL} 18 1.14 christos 19 1.9 thorpej # Native tool -- key only off TOOLCHAIN_MISSING 20 1.13 lukem .if ${TOOLCHAIN_MISSING} == "no" 21 1.9 thorpej CPPFLAGS+= -DNEW_TOOLCHAIN 22 1.8 tv .endif 23 1.15 christos 24 1.9 thorpej .else 25 1.15 christos 26 1.9 thorpej # Host tool -- We can also pay attention to EXTERNAL_TOOLCHAIN. 27 1.13 lukem .if ${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN) 28 1.8 tv CPPFLAGS+= -DNEW_TOOLCHAIN 29 1.5 jmc .endif 30 1.15 christos 31 1.9 thorpej .endif # ! HOSTPROG 32