forked from dlang-community/DCD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
141 lines (120 loc) · 2.66 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.PHONY: all
all: dmd
dmd: dmdserver dmdclient
debug: dmdclient debugserver
gdc: gdcserver gdcclient
ldc: ldcserver ldcclient
DMD = dmd
GDC = gdc
LDC = ldc2
report:
dscanner --report src > dscanner-report.json
sonar-runner
clean:
rm -rf bin
rm -f dscanner-report.json
CLIENT_SRC = src/client.d\
src/messages.d\
src/stupidlog.d\
src/dcd_version.d\
msgpack-d/src/msgpack.d
DMD_CLIENT_FLAGS = -Imsgpack-d/src\
-Imsgpack-d/src\
-release\
-inline\
-O\
-wi\
-ofbin/dcd-client
GDC_CLIENT_FLAGS = -Imsgpack-d/src\
-O3\
-frelease\
-obin/dcd-client
LDC_CLIENT_FLAGS = -Imsgpack-d/src\
-Imsgpack-d/src\
-release\
-O5\
-oq\
-of=bin/dcd-client
SERVER_SRC = src/actypes.d\
src/conversion/astconverter.d\
src/conversion/first.d\
src/conversion/second.d\
src/conversion/third.d\
src/autocomplete.d\
src/constants.d\
src/messages.d\
src/modulecache.d\
src/semantic.d\
src/server.d\
src/stupidlog.d\
src/string_interning.d\
src/dcd_version.d\
libdparse/src/std/d/ast.d\
libdparse/src/std/d/entities.d\
libdparse/src/std/d/lexer.d\
libdparse/src/std/d/parser.d\
libdparse/src/std/lexer.d\
libdparse/src/std/allocator.d\
libdparse/src/std/d/formatter.d\
containers/src/memory/allocators.d\
containers/src/memory/appender.d\
containers/src/containers/dynamicarray.d\
containers/src/containers/ttree.d\
containers/src/containers/unrolledlist.d\
containers/src/containers/hashset.d\
containers/src/containers/internal/hash.d\
containers/src/containers/internal/node.d\
containers/src/containers/internal/storage_type.d\
containers/src/containers/slist.d\
msgpack-d/src/msgpack.d
DMD_SERVER_FLAGS = -Icontainers/src\
-Imsgpack-d/src\
-Ilibdparse/src\
-wi\
-O\
-release\
-inline\
-ofbin/dcd-server
DEBUG_SERVER_FLAGS = -Icontainers/src\
-Imsgpack-d/src\
-Ilibdparse/src\
-wi\
-g\
-ofbin/dcd-server
GDC_SERVER_FLAGS = -Icontainers/src\
-Imsgpack-d/src\
-Ilibdparse/src\
-O3\
-frelease\
-obin/dcd-server
LDC_SERVER_FLAGS = -Icontainers/src\
-Imsgpack-d/src\
-Ilibdparse/src\
-O5\
-release\
-oq\
-of=bin/dcd-server
dmdclient:
mkdir -p bin
rm -f containers/src/std/allocator.d
${DMD} ${CLIENT_SRC} ${DMD_CLIENT_FLAGS}
dmdserver:
mkdir -p bin
rm -f containers/src/std/allocator.d
${DMD} ${SERVER_SRC} ${DMD_SERVER_FLAGS}
debugserver:
mkdir -p bin
rm -f containers/src/std/allocator.d
${DMD} ${SERVER_SRC} ${DEBUG_SERVER_FLAGS}
gdcclient:
mkdir -p bin
rm -f containers/src/std/allocator.d
${GDC} ${CLIENT_SRC} ${GDC_CLIENT_FLAGS}
gdcserver:
mkdir -p bin
rm -f containers/src/std/allocator.d
${GDC} ${SERVER_SRC} ${GDC_SERVER_FLAGS}
ldcclient:
${LDC} ${CLIENT_SRC} ${LDC_CLIENT_FLAGS}
ldcserver:
${LDC} ${SERVER_SRC} ${LDC_SERVER_FLAGS}