1 # $DragonFly: src/sys/conf/kern.fwd.mk,v 1.3 2006/11/20 06:00:40 y0netan1 Exp $
3 # Create forwarding headers for ${SYSDIR}/cpu/${MACHINE_ARCH}/*.h in
4 # ${_MACHINE_FWD}/include/machine and share the directory among module build
6 # Define _MACHINE_FWD before inclusion of this file.
7 .if !defined(_MACHINE_FWD)
8 .error you must define _MACHINE_FWD in which to generate forwarding headers.
11 _cpu_hdrs!= echo ${SYSDIR}/cpu/${MACHINE_ARCH}/include/*.h
13 .for _h in ${_cpu_hdrs}
14 _fwd:= ${_MACHINE_FWD}/include/machine/${_h:T}
15 _FWDHDRS:= ${_FWDHDRS} ${_fwd}
18 ${_MACHINE_FWD} ${_MACHINE_FWD}/include/machine:
21 forwarding-headers: ${_MACHINE_FWD}/include/machine ${_FWDHDRS}
22 @touch ${_MACHINE_FWD}/.done
25 @(echo "creating forwarding header ${.TARGET}" 1>&2; \
27 echo " * CONFIG-GENERATED FILE, DO NOT EDIT" ; \
30 echo "#ifndef _MACHINE_${.TARGET:T:S/./_/g:U}_" ; \
31 echo "#define _MACHINE_${.TARGET:T:S/./_/g:U}_" ; \
32 echo "#include <cpu/${.TARGET:T}>" ; \