bootadm: remove C code for hsfs boot archive generation
[unleashed.git] / Makefile
blob59521fca69e795efce3b518ce786133a81fc3e55
1 SUBDIR = bin \
2 include \
3 kernel \
4 lib \
5 share
7 .-include "Makefile.cfgparam"
9 .ifdef CONFIG_MACH64
10 build:
11 ${.MAKE} -C lib obj
12 ${.MAKE} -C lib MACHINE=${CONFIG_MACH64} obj
13 ${.MAKE}
14 ${.MAKE} -C lib MACHINE=${CONFIG_MACH64}
15 ${.MAKE} install
16 ${.MAKE} -C lib MACHINE=${CONFIG_MACH64} install
18 .include <unleashed.mk>
19 .endif
21 .include <subdir.mk>
24 # Config related support
27 .if !empty(BUILD_ARCH)
28 CFGARCH=${BUILD_ARCH}
29 .elif ${MACHINE} == "i86pc" || ${MACHINE} == "i386" || ${MACHINE} == "amd64"
30 CFGARCH=x86
31 .elif ${MACHINE} == "sparc"
32 CFGARCH=sparc
33 .else
34 .error "Unknown machine architecture ${MACHINE}; override it via BUILD_ARCH"
35 .endif
37 CFGFILE=arch/${CFGARCH}/Sconfig
39 gen-config:
40 ${.MAKE} -C tools
41 ${.CURDIR}/tools/mkconfig/mkconfig -I _SYS_CFGPARAM_H -H -o include/sys/cfgparam.h ${CFGFILE}
42 ${.CURDIR}/tools/mkconfig/mkconfig -m -o usr/src/Makefile.cfgparam ${CFGFILE}
43 ${.CURDIR}/tools/mkconfig/mkconfig -M -o Makefile.cfgparam ${CFGFILE}
45 .PHONY: gen-config build