1 Star 4 Fork 7

SSZL博客 / iot_http_websoket_server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
SSZL 提交于 2018-10-22 17:21 . makefile
#使用编译器
CC=g++
#库路径
libmysqlclient_path=/usr/lib64/mysql
libevent_path=/usr/local/lib
libopenssl_path=/usr/local/lib
#库头文件路径
libopenssl_include = /usr/include
libevent_include = /usr/include
libmysqlclient_include = /usr/include
app:test
test:test.o CMutex.o mysql_db.o database.o HttpApiServer.o ./CJsonObject/cJSON.o ./CJsonObject/CJsonObject.o ./Http_websocket/ev_httpd.o ./Http_websocket/ev_websocket.o ./Http_websocket/evbase_threadpool.o ./Http_websocket/Threadpool.o ./Http_websocket/config.o TcpConnectPool.o
$(CC) $^ -std=c++11 -o $@ -lpthread -L $(libevent_path) -levent -L $(libopenssl_path) -lcrypto -lssl -L $(libmysqlclient_path) -lmysqlclient -g
db_test:CMutex.o mysql_db.o database.o db_test.o
$(CC) $^ -std=c++11 -o $@ -lpthread -L $(libmysqlclient_path) -lmysqlclient
%.o:%.c
$(CC) $^ -std=c++11 -c -o $@ -Wall -I $(libmysqlclient_include) -I $(libopenssl_include) -I $(libevent_include) -g
%.o:%.cpp
$(CC) $^ -std=c++11 -c -o $@ -Wall -I $(libmysqlclient_include) -I $(libopenssl_include) -I $(libevent_include) -g
.PHONY:clean
clean:
@rm -rf db_test *.o ./Http_websocket/*.o
C++
1
https://gitee.com/sszl_blog/iot_http_websoket_server.git
git@gitee.com:sszl_blog/iot_http_websoket_server.git
sszl_blog
iot_http_websoket_server
iot_http_websoket_server
master

搜索帮助