summaryrefslogtreecommitdiffstats
path: root/initrd/programs/init/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'initrd/programs/init/Makefile')
-rw-r--r--initrd/programs/init/Makefile8
1 files changed, 8 insertions, 0 deletions
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 $@