aboutsummaryrefslogtreecommitdiff
path: root/mkfs.md/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mkfs.md/Makefile')
-rw-r--r--mkfs.md/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/mkfs.md/Makefile b/mkfs.md/Makefile
new file mode 100644
index 0000000..e91a5e5
--- /dev/null
+++ b/mkfs.md/Makefile
@@ -0,0 +1,14 @@
+FILES=mkfs.c
+TARGET=mkfs.md
+CFLAGS=-Wall -Werror -Wextra -g
+
+all: $(FILES)
+ clang $(CFLAGS) -o $(TARGET) $(FILES)
+
+with-inode: $(FILES)
+ clang $(CFLAGS) -D_HAS_TRACKED_INODE -o $(TARGET) $(FILES)
+
+clean:
+ rm -f $(TARGET) *.o
+
+.PHONY: clean