Hello user process

This commit is contained in:
2025-09-01 23:22:47 +02:00
parent 13ab117b1b
commit 2015e0e0aa
28 changed files with 744 additions and 65 deletions

21
user/hello/Makefile Normal file
View File

@ -0,0 +1,21 @@
include ../Makefile.inc
.PHONY: all clean
TARGET := hello
SRCFILES := $(wildcard *.s)
ASFILES := $(filter %.s,$(SRCFILES))
OBJ := $(patsubst %.s,%.o,$(ASFILES))
%.o: %.s
$(CC) $(CFLAGS) -c $< -o $@
all: $(TARGET)
hello: $(OBJ)
$(LD) $^ $(LDFLAGS) -o $@
echo "$(realpath $@)" >> $(FILES)
clean:
rm -f $(OBJ) $(TARGET)