1 # $NetBSD: Makefile.hooks,v 1.1 2014/03/01 10:00:31 mrg Exp $
4 # Makefile fragment to build genhooks and *target-hooks*.h
8 gen${f}.lo: ${HH} gen${f}.c
9 gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS}
11 ${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
15 # and now the outputs of genhooks
16 target-hooks-def.h: genhooks
17 ./genhooks "Target Hook" >${.TARGET}
18 c-family/c-target-hooks-def.h: genhooks
20 ./genhooks "C Target Hook" >${.TARGET}
21 common/common-target-hooks-def.h: genhooks
23 ./genhooks "Common Target Hook" >${.TARGET}
25 CLEANFILES+= target-hooks-def.h \
26 c-family/c-target-hooks-def.h \
27 common/common-target-hooks-def.h