9 .
-include "cfgparam.mk"
11 .
ifdef CONFIG_MACH64
&& DESTDIR
17 .
include <unleashed.mk
>
23 # Config related support
26 .if
!empty
(BUILD_ARCH
)
28 .elif
${MACHINE} == "i86pc" ||
${MACHINE} == "i386" ||
${MACHINE} == "amd64"
30 .elif
${MACHINE} == "sparc"
33 .error
"Unknown machine architecture ${MACHINE}; override it via BUILD_ARCH"
36 CFGFILE
=arch
/${CFGARCH}/Sconfig
41 ${.CURDIR
}/tools
/mkconfig
/obj
/mkconfig
-I _SYS_CFGPARAM_H
-H
-o
include/sys
/cfgparam.h
${CFGFILE}
42 ${.CURDIR
}/tools
/mkconfig
/obj
/mkconfig
-m
-o usr
/src
/Makefile.cfgparam
${CFGFILE}
43 ${.CURDIR
}/tools
/mkconfig
/obj
/mkconfig
-M
-o cfgparam.mk
${CFGFILE}
45 .PHONY
: gen-config build