-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
87 lines (59 loc) · 3.18 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
OBJECTS= ./build/validator.o ./build/stddef.o ./build/stdarg.o ./build/static_include.o ./build/native.o ./build/preprocessor.o ./build/compiler.o ./build/codegen.o ./build/resolver.o ./build/rdefault.o ./build/stackframe.o ./build/array.o ./build/fixup.o ./build/helper.o ./build/scope.o ./build/symresolver.o ./build/cprocess.o ./build/datatype.o ./build/expressionable.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/validator.o: ./validator.c
gcc ./validator.c ${INCLUDES} -o ./build/validator.o -g -c
./build/stddef.o: ./preprocessor/static_includes/stddef.c
gcc ./preprocessor/static_includes/stddef.c ${INCLUDES} -o ./build/stddef.o -g -c
./build/stdarg.o: ./preprocessor/static_includes/stdarg.c
gcc ./preprocessor/static_includes/stdarg.c ${INCLUDES} -o ./build/stdarg.o -g -c
./build/static_include.o: ./preprocessor/static_include.c
gcc ./preprocessor/static_include.c ${INCLUDES} -o ./build/static_include.o -g -c
./build/native.o: ./preprocessor/native.c
gcc ./preprocessor/native.c ${INCLUDES} -o ./build/native.o -g -c
./build/preprocessor.o: ./preprocessor/preprocessor.c
gcc ./preprocessor/preprocessor.c ${INCLUDES} -o ./build/preprocessor.o -g -c
./build/compiler.o: ./compiler.c
gcc ./compiler.c ${INCLUDES} -o ./build/compiler.o -g -c
./build/codegen.o: ./codegen.c
gcc ./codegen.c ${INCLUDES} -o ./build/codegen.o -g -c
./build/resolver.o: ./resolver.c
gcc ./resolver.c ${INCLUDES} -o ./build/resolver.o -g -c
./build/rdefault.o: ./rdefault.c
gcc ./rdefault.c ${INCLUDES} -o ./build/rdefault.o -g -c
./build/stackframe.o: ./stackframe.c
gcc ./stackframe.c ${INCLUDES} -o ./build/stackframe.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/helper.o: ./helper.c
gcc ./helper.c ${INCLUDES} -o ./build/helper.o -g -c
./build/array.o: ./array.c
gcc ./array.c ${INCLUDES} -o ./build/array.o -g -c
./build/fixup.o: ./fixup.c
gcc ./fixup.c ${INCLUDES} -o ./build/fixup.o -g -c
./build/symresolver.o: ./symresolver.c
gcc ./symresolver.c ${INCLUDES} -o ./build/symresolver.o -g -c
./build/scope.o: ./scope.c
gcc ./scope.c ${INCLUDES} -o ./build/scope.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/expressionable.o: ./expressionable.c
gcc ./expressionable.c ${INCLUDES} -o ./build/expressionable.o -g -c
./build/datatype.o: ./datatype.c
gcc ./datatype.c ${INCLUDES} -o ./build/datatype.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 -rf ./main ./test ./.o
rm -rf ${OBJECTS}