-
Notifications
You must be signed in to change notification settings - Fork 1
/
cbuild.mk
86 lines (59 loc) · 4.68 KB
/
cbuild.mk
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
#dependencies for package 'cbuild.c'
CFLAGS += -std=c99
CFLAGS += -D_DEFAULT_SOURCE
CFLAGS += -D_GNU_SOURCE
cbuild.o: cbuild.c package/import.h cli.h makefile.h lexer/item.h package/index.h package/package.h
#dependencies for package 'package/import.c'
package/import.o: package/import.c package/package.h package/export.h
#dependencies for package 'deps/hash/hash.c'
deps/hash/hash.o: deps/hash/hash.c
#dependencies for package 'package/package.c'
package/package.o: package/package.c deps/stream/stream.h
#dependencies for package 'deps/stream/stream.c'
deps/stream/stream.o: deps/stream/stream.c
#dependencies for package 'package/export.c'
package/export.o: package/export.c deps/stream/stream.h utils/utils.h utils/strings.h package/atomic-stream.h package/package.h
#dependencies for package 'utils/utils.c'
utils/utils.o: utils/utils.c
#dependencies for package 'utils/strings.c'
utils/strings.o: utils/strings.c
#dependencies for package 'package/atomic-stream.c'
package/atomic-stream.o: package/atomic-stream.c deps/stream/stream.h
#dependencies for package 'cli.c'
cli.o: cli.c
#dependencies for package 'makefile.c'
makefile.o: makefile.c deps/stream/stream.h utils/utils.h package/package.h package/export.h package/import.h package/atomic-stream.h
#dependencies for package 'lexer/item.c'
lexer/item.o: lexer/item.c utils/strings.h
#dependencies for package 'package/index.c'
package/index.o: package/index.c deps/stream/stream.h utils/utils.h parser/grammer.h package/export.h package/import.h package/package.h package/atomic-stream.h deps/stream/file.h parser/parser.h
#dependencies for package 'parser/grammer.c'
parser/grammer.o: parser/grammer.c deps/stream/stream.h parser/parser.h lexer/item.h lexer/syntax.h parser/import.h package/package.h parser/package.h parser/export.h parser/identifier.h parser/build.h lexer/lex.h
#dependencies for package 'parser/parser.c'
parser/parser.o: parser/parser.c lexer/stack.h lexer/item.h package/package.h lexer/lex.h
#dependencies for package 'lexer/stack.c'
lexer/stack.o: lexer/stack.c lexer/item.h
#dependencies for package 'lexer/lex.c'
lexer/lex.o: lexer/lex.c deps/stream/stream.h lexer/buffer.h lexer/item.h
#dependencies for package 'lexer/buffer.c'
lexer/buffer.o: lexer/buffer.c lexer/item.h
#dependencies for package 'lexer/syntax.c'
lexer/syntax.o: lexer/syntax.c lexer/lex.h deps/stream/stream.h
#dependencies for package 'parser/import.c'
parser/import.o: parser/import.c parser/string.h utils/utils.h lexer/item.h utils/strings.h package/package.h package/import.h parser/parser.h
#dependencies for package 'parser/string.c'
parser/string.o: parser/string.c
#dependencies for package 'parser/package.c'
parser/package.o: parser/package.c parser/string.h utils/strings.h lexer/item.h parser/parser.h
#dependencies for package 'parser/export.c'
parser/export.o: parser/export.c parser/string.h utils/utils.h lexer/item.h utils/strings.h package/package.h package/export.h parser/identifier.h package/import.h parser/parser.h
#dependencies for package 'parser/identifier.c'
parser/identifier.o: parser/identifier.c lexer/item.h package/package.h package/export.h lexer/stack.h package/import.h parser/parser.h
#dependencies for package 'parser/build.c'
parser/build.o: parser/build.c parser/string.h utils/strings.h lexer/item.h package/package.h package/import.h parser/parser.h
#dependencies for package 'deps/stream/file.c'
deps/stream/file.o: deps/stream/file.c deps/stream/stream.h
cbuild: cbuild.o package/import.o deps/hash/hash.o package/package.o deps/stream/stream.o package/export.o utils/utils.o utils/strings.o package/atomic-stream.o cli.o makefile.o lexer/item.o package/index.o parser/grammer.o parser/parser.o lexer/stack.o lexer/lex.o lexer/buffer.o lexer/syntax.o parser/import.o parser/string.o parser/package.o parser/export.o parser/identifier.o parser/build.o deps/stream/file.o
$(CC) $(CFLAGS) $(LDFLAGS) cbuild.o package/import.o deps/hash/hash.o package/package.o deps/stream/stream.o package/export.o utils/utils.o utils/strings.o package/atomic-stream.o cli.o makefile.o lexer/item.o package/index.o parser/grammer.o parser/parser.o lexer/stack.o lexer/lex.o lexer/buffer.o lexer/syntax.o parser/import.o parser/string.o parser/package.o parser/export.o parser/identifier.o parser/build.o deps/stream/file.o -o cbuild $(LDLIBS)
CLEAN_cbuild:
rm -rf cbuild cbuild.o package/import.o deps/hash/hash.o package/package.o deps/stream/stream.o package/export.o utils/utils.o utils/strings.o package/atomic-stream.o cli.o makefile.o lexer/item.o package/index.o parser/grammer.o parser/parser.o lexer/stack.o lexer/lex.o lexer/buffer.o lexer/syntax.o parser/import.o parser/string.o parser/package.o parser/export.o parser/identifier.o parser/build.o deps/stream/file.o