First commit

This commit is contained in:
PedroEdiaz
2025-10-01 12:41:12 -06:00
commit 5139653429
11 changed files with 319 additions and 0 deletions

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
OBJ = init.o libexec/boot.o libexec/shut.o libexec/common.o
BIN = init
all: $(BIN) poweroff
$(BIN): $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LDLIBS)
fmt:
clang-format -i *.c libexec/*.c
clean:
rm -f $(BIN) $(OBJ)