1 Star 0 Fork 0

arthurhu / ps-lite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 975 Bytes
一键复制 编辑 原始数据 按行查看 历史
muli 提交于 2016-04-10 11:49 . fix lint
ifdef config
include $(config)
endif
include make/ps.mk
ifndef CXX
CXX = g++
endif
ifndef DEPS_PATH
DEPS_PATH = $(shell pwd)/deps
endif
ifndef PROTOC
PROTOC = ${DEPS_PATH}/bin/protoc
endif
INCPATH = -I./src -I./include -I$(DEPS_PATH)/include
CFLAGS = -std=c++11 -msse2 -fPIC -O3 -ggdb -Wall -finline-functions $(INCPATH) $(ADD_CFLAGS)
all: ps test
include make/deps.mk
clean:
rm -rf build $(TEST) tests/*.d
find src -name "*.pb.[ch]*" -delete
lint:
python tests/lint.py ps all include/ps src
ps: build/libps.a
OBJS = $(addprefix build/, customer.o postoffice.o van.o meta.pb.o)
build/libps.a: $(OBJS)
ar crv $@ $(filter %.o, $?)
build/%.o: src/%.cc ${ZMQ} src/meta.pb.h
@mkdir -p $(@D)
$(CXX) $(INCPATH) -std=c++0x -MM -MT build/$*.o $< >build/$*.d
$(CXX) $(CFLAGS) -c $< -o $@
src/%.pb.cc src/%.pb.h : src/%.proto ${PROTOBUF}
$(PROTOC) --cpp_out=./src --proto_path=./src $<
-include build/*.d
-include build/*/*.d
include tests/test.mk
test: $(TEST)
1
https://gitee.com/arthurhu/ps-lite.git
git@gitee.com:arthurhu/ps-lite.git
arthurhu
ps-lite
ps-lite
master

搜索帮助