init: initial implementation

This commit is contained in:
Matheus
2022-09-20 20:28:58 -03:00
parent 0b7a55361d
commit 4b939dcaab
7 changed files with 196 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
XCC=x86_64-astral-gcc
all: init
init: main.o
$(XCC) $(LDFLAGS) -o $@ $<
%.o: %.c
$(XCC) -c $(CFLAGS) -o $@ $<
install:
mkdir -p $(DESTDIR)/sbin/
mv init $(DESTDIR)/sbin/init