1 # $NetBSD: bsd.ioconf.mk,v 1.3 2010/03/25 20:37:36 pooka Exp $
6 # If IOCONF is defined, autocreate ioconf.[ch] and locators.h.
7 # This is useful mainly for devices.
10 # discourage direct inclusion. bsd.ioconf.mk will hopefully go away
11 # when the kernel build procedures are unified.
12 .if defined
(_BSD_IOCONF_MK_USER_
)
14 # XXX: ioconf.c doesn't need to depend on TOOL_CONFIG, but that helps
15 # keep builds working while hashing out some of the experimental
16 # features related to ioconf.
17 .if
${USETOOLS} == "yes"
18 CONFIGDEP
=${TOOL_CONFIG}
20 ioconf.c
: ${IOCONF} ${CONFIGDEP}
21 ${TOOL_CONFIG} -b
${.OBJDIR
} -s
${S} ${.CURDIR
}/${IOCONF}
22 # config doesn't change the files if they're unchanged. however,
23 # here we want to satisfy our make dependency, so force a
25 touch ioconf.c ioconf.h locators.h
27 .
else # _BSD_IOCONF_MK_USER_
30 @echo do not
include bsd.ioconf.mk directly
33 .
endif # _BSD_IOCONF_MK_USER_
38 CLEANFILES
+= ioconf.c ioconf.h locators.h
39 DPSRCS
+= ioconf.c ioconf.h locators.h