beadm: implicit list
[unleashed.git] / Makefile
blobd582c1fbe4309ee9ca1cca074a6cdc27155608e7
1 SUBDIR = bin \
2 boot \
3 etc \
4 include \
5 kernel \
6 lib \
7 share
9 .-include "cfgparam.mk"
11 .ifdef CONFIG_MACH64 && DESTDIR
12 build:
13 ${.MAKE} obj
14 ${.MAKE}
15 ${.MAKE} install
17 .include <unleashed.mk>
18 .endif
20 .include <subdir.mk>
23 # Config related support
26 .if !empty(BUILD_ARCH)
27 CFGARCH=${BUILD_ARCH}
28 .elif ${MACHINE} == "i86pc" || ${MACHINE} == "i386" || ${MACHINE} == "amd64"
29 CFGARCH=x86
30 .elif ${MACHINE} == "sparc"
31 CFGARCH=sparc
32 .else
33 .error "Unknown machine architecture ${MACHINE}; override it via BUILD_ARCH"
34 .endif
36 CFGFILE=arch/${CFGARCH}/Sconfig
38 gen-config:
39 ${.MAKE} -C tools obj
40 ${.MAKE} -C tools
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