代码拉取完成,页面将自动刷新
#编译器选择
#CC=arm-linux-gnueabihf-gcc
CC=g++
#应用
app: ev_httpd_server_process ev_client_process #HTTP-Websocket服务器(线程池Libevent库)与Websocket客户端(Libevent库)
#app: ev_thread_server_process ev_client_process #WebSocket服务器(线程池Libevent库)与WebSocket客户端(Libevent库)
#app: ev_server_process ev_client_process #WebSocket服务器(Libevent库)与WebSocket客户端(Libevent库)
#app: client_process server_process #WebSocket服务器(epoll)与WebSocket客户端
ev_httpd_server_process:ev_websocket.o ev_httpd.o evbase_threadpool.o Threadpool.o ev_httpd_test.o config.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent
ev_thread_server_process:websocket_common.o ev_thread_server_main.o evbase_threadpool.o Threadpool.o config.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent
ev_client_process:websocket_common.o ev_client_main.o config.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent
ev_server_process:websocket_common.o ev_server_main.o config.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent
client_process:websocket_common.o client_main.o config.o
$(CC) -Wall -o $@ $^ -lcrypto -lssl -levent -lpthread
server_process:websocket_common.o server_main.o config.o
$(CC) -Wall -o $@ $^ -lcrypto -lssl -levent -lpthread
%.o:%.c include/config.h
$(CC) $^ -c -Wall
%.o:%.cpp include/cnfig.h
$(CC) $^ -c -o $@ -Wall
client_process_d:websocket_common_d.o client_main_d.o config_d.o
$(CC) -Wall -o $@ $^ -g -lcrypto -lssl -levent -lpthread
server_process_d:websocket_common_d.o server_main_d.o config_d.o
$(CC) -Wall -o $@ $^ -g -lcrypto -lssl -levent -lpthread
ev_client_process_d:websocket_common_d.o ev_client_main_d.o config_d.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent -g
ev_server_process_d:websocket_common_d.o ev_server_main_d.o config_d.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent -g
ev_thread_server_process_d:websocket_common_d.o ev_thread_server_main_d.o evbase_threadpool_d.o Threadpool_d.o config_d.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent -g
ev_httpd_server_process_d:ev_websocket_d.o ev_httpd_d.o evbase_threadpool_d.o Threadpool_d.o ev_httpd_test_d.o config_d.o
$(CC) -Wall -o $@ $^ -lpthread -lcrypto -lssl -levent -g
%_d.o:%.c
$(CC) $^ -c -g -o $@ -Wall
%_d.o:%.cpp
$(CC) $^ -c -g -o $@ -Wall
.PHONY:clean
clean:
@rm -rf include/config.h.gch client_process* server_process* ev_client_process* ev_server_process* ev_httpd_server_process* ev_thread_server_process* *.o
#调试模式下编译
debug: ev_httpd_server_process_d ev_client_process_d # HTTP-Websocket服务器(线程池Libevent库)与Websocket客户端(Libevent库)
#debug: ev_thread_server_process_d ev_client_process_d #WebSocket服务器(线程池Libevent库)与WebSocket客户端(Libevent库)
#debug: ev_server_process_d ev_client_process_d #WebSocket服务器(Libevent库)与WebSocket客户端(Libevent库)
#debug: server_process client_process_d #WebSocket服务器(epoll)与WebSocket客户端(epoll)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。