modified version of felker's init

This commit is contained in:
Bradford Morgan White
2026-02-08 12:01:20 -05:00
parent 45e80e1f07
commit 86ba125208
6 changed files with 115 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
SRCS = $(wildcard *.c)
OBJS = $(SRCS:%.c=%.o)
CFLAGS = -O2 -static
LDFLAGS = -s
all: init respawn
clean:
rm -f init respawn $(OBJS)
$(OBJS):
%: %.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<