summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6435ad7..cf97b28 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,14 @@ LDFLAGS = -no-pie -g
.PHONY: all clean
-all: gen_init_cpio
+all: gen_init_cpio mkmat
%.o: %.c
$(CC) -o $@ -c $<
+mkmat: mkmat.o
+ $(CC) -o $@ $^ $(LDFLAGS)
+
gen_init_cpio: gen_init_cpio.o
$(CC) -o $@ $^ $(LDFLAGS)