This commit is contained in:
2025-12-06 14:29:30 -06:00
parent f43acb06fe
commit e71c742863
4 changed files with 257 additions and 21 deletions

View File

@@ -14,13 +14,13 @@ LFLAGS = -Ttext=C475000 -static -nostdlib -no-pie
all: $(BINS)
%.elf: %.o start.o | %.c lib.h $(MUSLOBJS)
%.elf: %.o start.o | %.c $(MUSLOBJS)
ld -o $@ $(LFLAGS) start.o $< $(MUSLOBJS)
start.o: start.s
nasm -f elf64 -o $@ $<
%.o: %.c
%.o: %.c | lib.h
gcc-tree -o $@ $(CFLAGS) $<
clean: