build: convert build system to CMake

This commit is contained in:
2024-09-17 17:50:15 +01:00
parent 8497962af6
commit 065fdeec65
7 changed files with 96 additions and 0 deletions

View File

@@ -41,6 +41,13 @@ LIBC_SRC_DIRS := stdio string ctype
LIBC_C_FILES := $(foreach dir,$(LIBC_SRC_DIRS),$(shell find libc/$(dir) -type f -name *.c))
LIBC_OBJ := $(addprefix $(BUILD_DIR)/,$(LIBC_C_FILES:.c=.o))
####################################
# Userboot source files
####################################
USERBOOT_C_FILES := $(shell find userboot -type f -name *.c)
USERBOOT_OBJ := $(addprefix $(BUILD_DIR)/,$(USERBOOT_C_FILES:.c=.o))
BUILD_ID := $(shell tools/socks.buildid --arch $(SOCKS_ARCH))
CWARNINGS := -Wall -Werror -pedantic -Wno-language-extension-token -Wno-unused-function -Wno-gnu-statement-expression