recipes related to mlibc and a hello world init

This commit is contained in:
Matheus
2023-05-07 22:33:25 -03:00
parent 8a45b183b0
commit 41f3283715
12 changed files with 180 additions and 513 deletions
+13
View File
@@ -0,0 +1,13 @@
.phony: all install
CC=x86_64-astral-gcc
LD=x86_64-astral-gcc
all: init
install:
cp init "$(DESTDIR)/init"
init: main.o
$(LD) $(LDFLAGS) -o $@ $^
main.o: main.c
$(CC) -c $(CFLAGS) -o $@ $<