|
1 | 1 | AUTOMAKE_OPTIONS = foreign |
| 2 | +ACLOCAL_AMFLAGS = -I m4 |
2 | 3 |
|
3 | 4 | COMMON = src/cwebsocket/utf8.h src/cwebsocket/utf8.c src/cwebsocket/common.h src/cwebsocket/common.c |
4 | 5 | ECHO_CLIENT = src/cwebsocket/subprotocol/echo/echo_client.h src/cwebsocket/subprotocol/echo/echo_client.c |
5 | 6 | ECHO_SERVER = src/cwebsocket/subprotocol/echo/echo_server.h src/cwebsocket/subprotocol/echo/echo_server.c |
| 7 | +WEBSOCKET_CLIENT = src/cwebsocket/client.h src/cwebsocket/client.c |
| 8 | +WEBSOCKET_SERVER = src/cwebsocket/server.h src/cwebsocket/server.c |
6 | 9 |
|
7 | 10 | bin_PROGRAMS = websocket-client websocket-server websocket-testsuite |
8 | | -websocket_client_SOURCES = $(ECHO_CLIENT) $(COMMON) src/cwebsocket/client.h src/cwebsocket/client.c src/websocket-client.c |
9 | | -websocket_server_SOURCES = $(ECHO_SERVER) $(COMMON) src/cwebsocket/server.h src/cwebsocket/server.c src/websocket-server.c |
10 | | -websocket_testsuite_SOURCES = $(COMMON) src/cwebsocket/client.h src/cwebsocket/client.c src/websocket-testsuite.c |
| 11 | +websocket_client_SOURCES = $(ECHO_CLIENT) $(COMMON) $(WEBSOCKET_CLIENT) src/websocket-client.c |
| 12 | +websocket_server_SOURCES = $(ECHO_SERVER) $(COMMON) $(WEBSOCKET_SERVER) src/websocket-server.c |
| 13 | +websocket_testsuite_SOURCES = $(COMMON) $(WEBSOCKET_CLIENT) src/websocket-testsuite.c |
11 | 14 |
|
12 | 15 | noinst_LIBRARIES = libwsclient.a libwsserver.a |
13 | | -libwsclient_a_SOURCES = $(ECHO_CLIENT) $(COMMON) src/cwebsocket/client.h src/cwebsocket/client.c |
14 | | -libwsserver_a_SOURCES = $(ECHO_SERVER) $(COMMON) src/cwebsocket/server.h src/cwebsocket/server.c |
| 16 | +libwsclient_a_SOURCES = $(ECHO_CLIENT) $(COMMON) $(WEBSOCKET_CLIENT) |
| 17 | +libwsserver_a_SOURCES = $(ECHO_SERVER) $(COMMON) $(WEBSOCKET_SERVER) |
15 | 18 |
|
16 | | -AM_CFLAGS= -Wall |
| 19 | +AM_CFLAGS = -Wall |
17 | 20 |
|
18 | 21 | if DEBUG |
19 | 22 | AM_CFLAGS += -g3 |
20 | 23 | else |
21 | 24 | AM_CFLAGS += -O3 |
22 | 25 | endif |
23 | 26 |
|
| 27 | +so: |
| 28 | + gcc -shared -fPIC $(ECHO_CLIENT) $(WEBSOCKET_CLIENT) -o libwsclient.so |
| 29 | + gcc -shared -fPIC $(ECHO_SERVER) $(WEBSOCKET_SERVER) -o libwsserver.so |
| 30 | + |
24 | 31 | clean: |
25 | | - rm -rf libwsclient.a libwsserver.a .gitignore vgcore.* autoscan.log config.h.in config.h config.cache configure install-sh aclocal.m4 autom4te.cache/ config.log config.status Debug/ depcomp .deps/ m4/ Makefile Makefile.in missing stamp-h1 *.o src/*.o *~ websocket-client websocket-server websocket-testsuite |
| 32 | + rm -rf ltmain.sh libtool config.sub config.guess libwsclient.* libwsserver.* .gitignore vgcore.* autoscan.log config.h.in config.h config.cache configure install-sh aclocal.m4 autom4te.cache/ config.log config.status Debug/ depcomp .deps/ m4/ Makefile Makefile.in missing stamp-h1 *.o src/*.o *~ websocket-client websocket-server websocket-testsuite |
0 commit comments