Initial Commit, project structure and build system.

This commit is contained in:
2025-10-18 23:52:08 +02:00
commit 6f587de022
9 changed files with 121 additions and 0 deletions

19
make/loader.mk Normal file
View File

@@ -0,0 +1,19 @@
.PHONY: all
include make/include/defaults.mk
CFLAGS += -I$(BUILD_DIR)/stub
LDFLAGS +=
TARGET = $(BUILD_DIR)/loader.exe
OBJECTS = $(OBJECTS_COMMON) $(OBJECTS_LOADER)
DEPS = $(DEPS_COMMON) $(DEPS_LOADER)
STUB = $(BUILD_DIR)/stub/stub.bin
all: $(STUB) $(TARGET)
$(STUB): $(SRC_DIR)/stub/stub.asm
@mkdir -p $(dir $@)
nasm -f bin $< -o $@
include make/include/shared.mk
$(OBJECTS_LOADER): $(STUB)