2 Star 6 Fork 3

Micooz/NtpClient

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 577 Bytes
一键复制 编辑 原始数据 按行查看 历史
###vars definations
target = NtpClient
#headers = *.h
cpps = *.cpp
objs = *.o
###path definations
boost_include_path = /usr/local/boost_1_56_0
boost_lib_path = /usr/local/boost_1_56_0/stage/lib
VPATH = ./
###dependence libs
boost_perfix = boost_
libs = -l$(boost_perfix)system \
-l$(boost_perfix)date_time \
-lpthread
###target starts here
NtpClient: $(objs)
g++ $(objs) \
-o $(target) \
-L $(boost_lib_path) \
$(libs) \
-std=c++11 \
-static
$(objs): $(cpps)
g++ -I $(boost_include_path) -c $(cpps) -std=c++11
:PHONY: clean
clean:
rm $(objs)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/micooz/NtpClient.git
git@gitee.com:micooz/NtpClient.git
micooz
NtpClient
NtpClient
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385