rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | diff --git a/Makefile b/Makefile |
2 | new file mode 100644 | ||||
3 | index 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) |