-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (31 loc) · 923 Bytes
/
Makefile
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
35
36
37
38
39
40
41
CC = gcc
#CFLAGS =-g -ansi -pedantic -Wall -Wstrict-prototypes
CFLAGS =-g
#LDFLAGS=
all: driver format
test_fs: test_fs.o filesystem.o
${CC} -o test_fs test_fs.o filesystem.o
test_fs.o: test_fs.c api.h filesystem.h
${CC} ${CFLAGS} -c test_fs.c
driver: driver.o filesystem.o
${CC} -o driver driver.o filesystem.o ${LDFLAGS}
format: format.o filesystem.o
${CC} -o format format.o filesystem.o ${LDFLAGS}
format.o: format.c api.h filesystem.h
${CC} ${CFLAGS} -c format.c
driver.o: driver.c api.h filesystem.h test_fs.c
${CC} ${CFLAGS} -c driver.c
filesystem.o: api.h filesystem.h filesystem.c
${CC} ${CFLAGS} -c filesystem.c
handin:
zip cs416_proj3.zip driver.c filesystem.c filesystem.h api.h Makefile driver.sh dump disk.dat format.c format.sh test_fs.c
clean:
rm -f driver
rm -f driver.o
rm -f filesystem.o
rm -f format.o
rm -f format
rm -f test_fs
rm -f test_fs.o
clean_disk:
rm -f disk.dat