etc/services - sync with NetBSD-8
[minix.git] / external / gpl3 / gcc / Makefile.hooks
bloba9ac91681241c8d58882b4dd5bede807a0410de3
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
7 .for f in hooks
8 gen${f}.lo: ${HH} gen${f}.c
9 gen${f}: gen${f}.lo ${GENPROG_ERROR_DEPENDS} 
10         ${_MKTARGET_LINK}
11         ${HOST_LINK.cc} -o ${.TARGET} ${.ALLSRC} ${NBCOMPATLIB} ${HOSTLIBIBERTY} ${LDFLAGS.${.TARGET}}
12 CLEANFILES+=    genhooks
13 .endfor
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
19         mkdir -p c-family
20         ./genhooks "C Target Hook" >${.TARGET}
21 common/common-target-hooks-def.h: genhooks
22         mkdir -p common
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