forked from pujo/lacewing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.in
230 lines (208 loc) · 10.7 KB
/
Makefile.in
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
PREFIX = $(DESTDIR)@prefix@
CFLAGS = @CFLAGS@
CXXFLAGS = @CXXFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
CXX = @CXX@
SO_EXT = @SO_EXT@
SONAME_FLAGS = @SONAME_FLAGS@
SO_NAME = @SO_NAME@
REAL_NAME = liblacewing.@SO_EXT@.0.4.3
OBJECTS = build/lw_global.o build/lw_nvhash.o build/Filter.o build/Address.o build/StreamGraph.o \
build/Stream.o build/Error.o build/Webserver.o build/HTTP.o build/http-parser.o \
build/MimeTypes.o build/Request.o build/Sessions.o build/Pipe.o build/Multipart.o \
build/addr_flat.o build/eventpump_flat.o build/server_flat.o build/timer_flat.o \
build/webserver_flat.o build/filter_flat.o build/udp_flat.o build/client_flat.o \
build/error_flat.o build/sync_flat.o build/thread_flat.o build/FlashPolicy.o \
build/Pump.o build/flashpolicy_flat.o build/stream_flat.o build/fdstream_flat.o \
build/file_flat.o build/pipe_flat.o build/pump_flat.o build/lw_util.o \
build/multipart_parser.o @OBJECTS@
COMMONDEPS = include/lacewing.h src/lw_common.h src/HeapBuffer.h src/List.h \
src/webserver/Common.h src/webserver/http/HTTP.h src/Address.h \
src/Stream.h @COMMONDEPS@
###########
all: liblacewing.@SO_EXT@ liblacewing.a
liblacewing.@SO_EXT@: $(OBJECTS)
@echo Linking shared library...
@$(CXX) $(CXXFLAGS) $(SONAME_FLAGS) -shared -o $(REAL_NAME) ./build/*.o $(LIBS)
liblacewing.a: $(OBJECTS)
@echo Linking static library...
@ar rcs liblacewing.a ./build/*.o
build/lw_global.o: src/lw_global.c $(COMMONDEPS)
$(CC) $(CFLAGS) -c -o $@ src/lw_global.c
build/lw_nvhash.o: src/lw_nvhash.c $(COMMONDEPS)
$(CC) $(CFLAGS) -c -o $@ src/lw_nvhash.c
build/lw_util.o: src/lw_util.c $(COMMONDEPS)
$(CC) $(CFLAGS) -c -o $@ src/lw_util.c
build/Filter.o: src/Filter.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/Filter.cc
build/Address.o: src/Address.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/Address.cc
build/Stream.o: src/Stream.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/Stream.cc
build/StreamGraph.o: src/StreamGraph.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/StreamGraph.cc
build/Pipe.o: src/Pipe.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/Pipe.cc
build/Pump.o: src/Pump.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/Pump.cc
build/Error.o: src/Error.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/Error.cc
build/Webserver.o: src/webserver/Webserver.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/Webserver.cc
build/Request.o: src/webserver/Request.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/Request.cc
build/Sessions.o: src/webserver/Sessions.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/Sessions.cc
build/MimeTypes.o: src/webserver/MimeTypes.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/MimeTypes.cc
build/Multipart.o: src/webserver/Multipart.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/Multipart.cc
build/HTTP.o: src/webserver/http/HTTP.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/http/HTTP.cc
build/SPDY.o: src/webserver/spdy/SPDY.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/webserver/spdy/SPDY.cc
build/http-parser.o: deps/http-parser/http_parser.c deps/http-parser/http_parser.h
$(CC) $(CFLAGS) -c -o $@ deps/http-parser/http_parser.c
build/multipart_parser.o: deps/multipart-parser/multipart_parser.c deps/multipart-parser/multipart_parser.h
$(CC) $(CFLAGS) -c -o $@ deps/multipart-parser/multipart_parser.c
build/FlashPolicy.o: src/FlashPolicy.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/FlashPolicy.cc
build/addr_flat.o: src/wrappers-c/addr_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/addr_flat.cc
build/pump_flat.o: src/wrappers-c/pump_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/pump_flat.cc
build/eventpump_flat.o: src/wrappers-c/eventpump_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/eventpump_flat.cc
build/pipe_flat.o: src/wrappers-c/pipe_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/pipe_flat.cc
build/server_flat.o: src/wrappers-c/server_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/server_flat.cc
build/timer_flat.o: src/wrappers-c/timer_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/timer_flat.cc
build/webserver_flat.o: src/wrappers-c/webserver_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/webserver_flat.cc
build/filter_flat.o: src/wrappers-c/filter_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/filter_flat.cc
build/udp_flat.o: src/wrappers-c/udp_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/udp_flat.cc
build/client_flat.o: src/wrappers-c/client_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/client_flat.cc
build/error_flat.o: src/wrappers-c/error_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/error_flat.cc
build/sync_flat.o: src/wrappers-c/sync_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/sync_flat.cc
build/thread_flat.o: src/wrappers-c/thread_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/thread_flat.cc
build/flashpolicy_flat.o: src/wrappers-c/flashpolicy_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/flashpolicy_flat.cc
build/stream_flat.o: src/wrappers-c/stream_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/stream_flat.cc
build/fdstream_flat.o: src/wrappers-c/fdstream_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/fdstream_flat.cc
build/file_flat.o: src/wrappers-c/file_flat.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/wrappers-c/file_flat.cc
build/openssl-SSLClient.o: src/openssl/SSLClient.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/openssl/SSLClient.cc
build/unix-Event.o: src/unix/Event.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/Event.cc
build/unix-EventPump.o: src/unix/EventPump.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/EventPump.cc
build/unix-Server.o: src/unix/Server.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/Server.cc
build/unix-Timer.o: src/unix/Timer.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/Timer.cc
build/unix-UDP.o: src/unix/UDP.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/UDP.cc
build/unix-Thread.o: src/unix/Thread.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/Thread.cc
build/unix-Client.o: src/unix/Client.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/Client.cc
build/unix-FDStream.o: src/unix/FDStream.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/FDStream.cc
build/unix-File.o: src/unix/File.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/File.cc
build/unix-Sync.o: src/unix/Sync.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/unix/Sync.cc
build/unix-lw_global.o: src/unix/lw_global.c $(COMMONDEPS)
$(CC) $(CFLAGS) -c -o $@ src/unix/lw_global.c
build/windows-Event.o: src/windows/Event.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/Event.cc
build/windows-EventPump.o: src/windows/EventPump.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/EventPump.cc
build/windows-Server.o: src/windows/Server.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/Server.cc
build/windows-Timer.o: src/windows/Timer.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/Timer.cc
build/windows-UDP.o: src/windows/UDP.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/UDP.cc
build/windows-Thread.o: src/windows/Thread.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/Thread.cc
build/windows-Client.o: src/windows/Client.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/Client.cc
build/windows-lw_compat.o: src/windows/lw_compat.c $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/lw_compat.c
build/windows-FDStream.o: src/windows/FDStream.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/FDStream.cc
build/windows-File.o: src/windows/File.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/File.cc
build/windows-Sync.o: src/windows/Sync.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/Sync.cc
build/windows-WinSSLClient.o: src/windows/WinSSLClient.cc $(COMMONDEPS)
$(CXX) $(CXXFLAGS) -c -o $@ src/windows/WinSSLClient.cc
build/windows-lw_global.o: src/windows/lw_global_win.c $(COMMONDEPS)
$(CC) $(CFLAGS) -c -o $@ src/windows/lw_global_win.c
build/spdy_bytes.o: deps/spdy/src/spdy_bytes.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_bytes.c
build/spdy_control.o: deps/spdy/src/spdy_control.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_control.c
build/spdy_credential.o: deps/spdy/src/spdy_credential.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_credential.c
build/spdy_ctx.o: deps/spdy/src/spdy_ctx.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_ctx.c
build/spdy_goaway.o: deps/spdy/src/spdy_goaway.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_goaway.c
build/spdy_headers.o: deps/spdy/src/spdy_headers.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_headers.c
build/spdy_window_update.o: deps/spdy/src/spdy_window_update.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_window_update.c
build/spdy_nv_block.o: deps/spdy/src/spdy_nv_block.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_nv_block.c
build/spdy_ping.o: deps/spdy/src/spdy_ping.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_ping.c
build/spdy_rst_stream.o: deps/spdy/src/spdy_rst_stream.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_rst_stream.c
build/spdy_settings.o: deps/spdy/src/spdy_settings.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_settings.c
build/spdy_stream.o: deps/spdy/src/spdy_stream.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_stream.c
build/spdy_syn_reply.o: deps/spdy/src/spdy_syn_reply.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_syn_reply.c
build/spdy_syn_stream.o: deps/spdy/src/spdy_syn_stream.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_syn_stream.c
build/spdy_zlib.o: deps/spdy/src/spdy_zlib.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_zlib.c
build/spdy_strings.o: deps/spdy/src/spdy_strings.c
$(CC) $(CFLAGS) -c -o $@ deps/spdy/src/spdy_strings.c
############
clean:
rm -f liblacewing.@SO_EXT@* liblacewing.a $(OBJECTS)
install: liblacewing.@SO_EXT@ liblacewing.a
@echo -----
@echo Installing shared library: $(PREFIX)/lib/liblacewing.@SO_EXT@
@install -d $(PREFIX)/lib
@install -m 0755 $(REAL_NAME) $(PREFIX)/lib/$(REAL_NAME)
@rm -f $(PREFIX)/lib/$(SO_NAME)
@ln -s $(REAL_NAME) $(PREFIX)/lib/$(SO_NAME)
@rm -f $(PREFIX)/lib/liblacewing.@SO_EXT@
@ln -s $(SO_NAME) $(PREFIX)/lib/liblacewing.@SO_EXT@
@echo Installing static library: $(PREFIX)/lib/liblacewing.a
@install -m 0755 liblacewing.a $(PREFIX)/lib/liblacewing.a
@echo Installing header file: $(PREFIX)/include/lacewing.h
@install -d $(PREFIX)/include
@install -m 0644 ./include/lacewing.h $(PREFIX)/include/lacewing.h
@echo -----
@echo Compiler flags: -I$(PREFIX)/include
@echo Linker flags: -L$(PREFIX)/lib -llacewing
@echo ------
.PHONY: all clean install