-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (25 loc) · 1.11 KB
/
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
OBJECTS= ./build/compiler.o ./build/cprocess.o ./build/lexer.o ./build/token.o ./build/lex_process.o ./build/parser.o ./build/node.o ./build/helpers/buffer.o ./build/helpers/vector.o
INCLUDES= -I./
all: ${OBJECTS}
gcc main.c ${INCLUDES} ${OBJECTS} -g -o ./main
./build/compiler.o: ./compiler.c
gcc ./compiler.c ${INCLUDES} -o ./build/compiler.o -g -c
./build/cprocess.o: ./cprocess.c
gcc ./cprocess.c ${INCLUDES} -o ./build/cprocess.o -g -c
./build/lexer.o: ./lexer.c
gcc ./lexer.c ${INCLUDES} -o ./build/lexer.o -g -c
./build/token.o: ./token.c
gcc ./token.c ${INCLUDES} -o ./build/token.o -g -c
./build/lex_process.o: ./lex_process.c
gcc ./lex_process.c ${INCLUDES} -o ./build/lex_process.o -g -c
./build/parser.o: ./parser.c
gcc ./parser.c ${INCLUDES} -o ./build/parser.o -g -c
./build/node.o: ./node.c
gcc ./node.c ${INCLUDES} -o ./build/node.o -g -c
./build/helpers/buffer.o: ./helpers/buffer.c
gcc ./helpers/buffer.c ${INCLUDES} -o ./build/helpers/buffer.o -g -c
./build/helpers/vector.o: ./helpers/vector.c
gcc ./helpers/vector.c ${INCLUDES} -o ./build/helpers/vector.o -g -c
clean:
rm ./main
rm -rf ${OBJECTS}