-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 802 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CFLAGS = -Wall -g
# This is the tarball name.
DIST = lab3-design
# When adding .c files, append them to this list.
SRCS = main.c ospfsfix.c
# When adding .h files, append them to this list.
HDRS = ospfs.h ospfsfix.h
# When adding other files, append them to this list.
OTHERS = Makefile README.md test_images fs_badblocknum.img fs_badeverything.img fs_badfirstinode.img fs_badinodenum.img fs_badmagic.img fs_correct.img
ospfsfix: clean $(SRCS)
@printf "MAKING OSPFSFIX\n"
gcc $(CFLAGS) -o ospfsfix $(SRCS)
dist: ospfsfix clean
@printf "MAKING TARBALL\n"
rm -rf $(DIST)
mkdir $(DIST)
cp $(SRCS) $(HDRS) $(OTHERS) $(DIST)/
tar cvf $(DIST).tar.gz $(DIST)
clean:
@printf "CLEANING\n"
rm -rf ospfsfix
rm -rf $(DIST).tar.gz
rm -rf $(DIST)
test: ospfsfix
@printf "Testing\n"
./test_images