-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (25 loc) · 802 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
CC = gcc
CCFLAGS = -std=c99 -Wall -g
fs_shell: fs_shell.o shell.o fscommands.o fstree.o filesystem.o fsfile.o
$(CC) -o fs_shell fs_shell.o shell.o fscommands.o fstree.o filesystem.o \
fsfile.o
test_shell: test_shell.o shell.o
$(CC) -o test_shell test_shell.o shell.o
test_shell.o: test_shell.c shell.o
$(CC) $(CCFLAGS) -c test_shell.c
fs_shell.o: fs_shell.c
$(CC) $(CCFLAGS) -c fs_shell.c
shell.o: shell.h shell.c
$(CC) $(CCFLAGS) -c shell.c
fstree.o: fstree.h fstree.c
$(CC) $(CCFLAGS) -c fstree.c
filesystem.o: filesystem.h filesystem.c
$(CC) $(CCFLAGS) -c filesystem.c
fscommands.o: fscommands.h fscommands.c
$(CC) $(CCFLAGS) -c fscommands.c
fsfile.o: fsfile.h fsfile.c
$(CC) $(CCFLAGS) -c fsfile.c
all: test_shell fs_shell
clean:
rm -rf *.o test_shell
.PHONY: all clean