From 50392995d6e7f3a10fb74bb2f9073a4790f8933c Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Mon, 11 Mar 2024 21:40:28 -0400 Subject: simple env with basic test init program --- initrd/programs/init/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 initrd/programs/init/Makefile (limited to 'initrd/programs/init/Makefile') diff --git a/initrd/programs/init/Makefile b/initrd/programs/init/Makefile new file mode 100644 index 0000000..3a283de --- /dev/null +++ b/initrd/programs/init/Makefile @@ -0,0 +1,8 @@ +CFILES := $(wildcard *.c) +OFILES := $(patsubst %.c,%.o,$(CFILES)) + +all: ${OFILES} + $(CC) $< -o $(OUT) -lc + +%.o : %.c + $(CC) -I$(ABIDIR) -g $(CFLAGS) -c $< -o $@ -- cgit v1.2.1