This commit is contained in:
Niklas Gollenstede
2025-10-31 22:37:36 +01:00
commit 174fe17e89
197 changed files with 79558 additions and 0 deletions

23
libsys/Makefile Normal file
View File

@@ -0,0 +1,23 @@
# --------------------------------------------------------------------------
# Files to be compiled (important: defined prior to importing common.mk!)
CC_SOURCES = $(shell find * -name "*.cc")
ASM_SOURCES = $(shell find * -name "*.asm")
# -----------------------------------------------------------------------------
# Include global variables and default targets
include ../tools/common.mk
# --------------------------------------------------------------------------
# Default target
.DEFAULT_GOAL = all
all: $(BUILDDIR)/libsys.a
# --------------------------------------------------------------------------
# Package libsys.a
$(BUILDDIR)/libsys.a: $(ASM_OBJECTS) $(CC_OBJECTS) $(MAKEFILE_LIST)
@echo "AR $@"
@mkdir -p $(@D)
$(VERBOSE) $(AR) rcs $@ $(ASM_OBJECTS) $(CC_OBJECTS)