blob: e4be6f1ea8cf2f203f8d1d30c38e15df420628bd [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001diff --git a/Makefile b/Makefile
2new file mode 100644
3index 0000000..e0cce70
4--- /dev/null
5+++ b/Makefile
6@@ -0,0 +1,13 @@
7+TARGET := fsck_msdos
8+SOURCES := boot.c check.c dir.c fat.c main.c
9+OBJECTS := $(SOURCES:.c=.o)
10+
11+.PHONY: all clean install
12+
13+all: $(TARGET)
14+
15+$(TARGET): $(OBJECTS)
16+ $(LINK.o) $^ -o $@
17+
18+clean:
19+ $(RM) $(OBJECTS) $(TARGET)