Mercurial > unleashed > wips
view kernel/mk/genunix-subsys.mk @ 20712:47811baf5bcf draft
fix-genuinx-unix-bitness-build
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Fri, 12 Jan 2018 18:55:03 -0500 |
parents | 111ccb776e79 |
children | 19a497eb10bf |
line wrap: on
line source
.if empty(_GENUNIX_BUILD) .if empty(SRCTOP) .error "You must define SRCTOP to point to the top-level of the repository" .endif # process all subdirs only once # TODO: given this, we will still visit subtrees multiple times if the same # subdir appears in more than one list # TODO: if we are building both 32 and 64 bit binaries, we'll visit every # UNIX_SUBDIR and GENUNIX_SUBDIR twice, but we shouldn't GENUNIX_SUBDIR := ${GENUNIX_SUBDIR:O:u} UNIX_SUBDIR := ${UNIX_SUBDIR:O:u} SUBDIR += ${GENUNIX_SUBDIR} ${UNIX_SUBDIR} SUBDIR := ${SUBDIR:O:u} .include <${SRCTOP}/Makefile.cfgparam> .include <bsd.subdir.mk> all: genunix unix genunix: ${GENUNIX_SUBDIR} @mkdir -p obj${CONFIG_KERNEL_BITS} @${MAKE} -f ${SRCTOP}/kernel/mk/genunix-build-subsys.mk genunix \ BITS=${CONFIG_KERNEL_BITS} SRCTOP=${SRCTOP} BUILD_GENUNIX=yes unix: ${UNIX_SUBDIR} @mkdir -p obj${CONFIG_KERNEL_BITS} @${MAKE} -f ${SRCTOP}/kernel/mk/genunix-build-subsys.mk unix \ BITS=${CONFIG_KERNEL_BITS} SRCTOP=${SRCTOP} BUILD_GENUNIX=no clean cleandir: @rm -rf obj32 obj64 install: .PHONY: all clean cleandir install .PHONY: genunix unix .endif