-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (19 loc) · 535 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (19 loc) · 535 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
CC = gcc
CFLAGS = -m64
default: shell
shell: lexer.o shell.o parser.o astree.o execute.o command.o
$(CC) $(CFLAGS) parser.o lexer.o shell.o astree.o execute.o command.o -o shell
command.o: command.c
$(CC) $(CFLAGS) -c command.c
shell.o: shell.c
$(CC) $(CFLAGS) -c shell.c
execute.o: execute.c execute.h
$(CC) $(CFLAGS) -c execute.c
parser.o: parser.c parser.h
$(CC) $(CFLAGS) -c parser.c
lexer.o: lexer.h lexer.c
$(CC) $(CFLAGS) -c lexer.c
astree.o: astree.c astree.h
$(CC) $(CFLAGS) -c astree.c
clean:
rm *.o