We only need libutil in native mode.
This commit is contained in:
parent
f7fbb8d998
commit
4623faa261
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.14 2006/08/26 18:17:42 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.15 2006/08/29 12:50:49 christos Exp $
|
||||
|
||||
PROG= crunchgen
|
||||
SRCS= crunchgen.c crunched_skel.c
|
||||
@ -9,19 +9,23 @@ crunched_skel.c: mkskel.sh crunched_main.c
|
||||
${HOST_SH} ${.ALLSRC} >${.TARGET}
|
||||
|
||||
|
||||
LDADD+=-lutil
|
||||
DPADD+=${LIBUTIL}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
.ifndef HOSTPROG
|
||||
|
||||
LDADD+=-lutil
|
||||
DPADD+=${LIBUTIL}
|
||||
|
||||
# Native tool -- key only off TOOLCHAIN_MISSING
|
||||
.if ${TOOLCHAIN_MISSING} == "no"
|
||||
CPPFLAGS+= -DNEW_TOOLCHAIN
|
||||
.endif
|
||||
|
||||
.else
|
||||
|
||||
# Host tool -- We can also pay attention to EXTERNAL_TOOLCHAIN.
|
||||
.if ${TOOLCHAIN_MISSING} == "no" || defined(EXTERNAL_TOOLCHAIN)
|
||||
CPPFLAGS+= -DNEW_TOOLCHAIN
|
||||
.endif
|
||||
|
||||
.endif # ! HOSTPROG
|
||||
|
Loading…
Reference in New Issue
Block a user