Fix archive issues in cli

This commit is contained in:
nub31
2025-08-18 21:25:03 +02:00
parent 0b4bad6772
commit 6e2a99a6f4
8 changed files with 51 additions and 34 deletions

View File

@@ -3,14 +3,12 @@ TARGET ?= x64
CFLAGS = -Wall -Werror -Wextra -g
libruntime: bin-int/runtime.o
$(CC) $(CFLAGS) -c targets/$(TARGET).s -o bin-int/$(TARGET).o
mkdir -p bin
ar rcs bin/libruntime_$(TARGET).a bin-int/runtime.o bin-int/$(TARGET).o
libruntime: build/runtime.o
$(CC) $(CFLAGS) -c targets/$(TARGET).s -o build/$(TARGET).o
bin-int/runtime.o: runtime/runtime.c
mkdir -p bin-int
$(CC) $(CFLAGS) -c runtime/runtime.c -o bin-int/runtime.o
build/runtime.o: runtime/runtime.c
mkdir -p build
$(CC) $(CFLAGS) -c runtime/runtime.c -o build/runtime.o
clean:
rm -r bin bin-int
rm -r build