mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-07 22:52:06 +08:00
use system capnp
old-commit-hash: 43873c9600527b55bc151f87e15a9300ed0833b7
This commit is contained in:
@@ -3,17 +3,9 @@ CXX := g++
|
||||
PHONELIBS?=../../../../phonelibs
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
CAPNP_FLAGS := /usr/local/lib/libcapnp.a /usr/local/lib/libkj.a
|
||||
else
|
||||
CAPNP_FLAGS := -I $(PHONELIBS)/capnp-cpp/include -I $(PHONELIBS)/capnp-cpp/include
|
||||
CAPNP_LIBS := -L $(PHONELIBS)/capnp-cpp/x64/lib -L $(PHONELIBS)/capnp-cpp/x64/lib -l:libcapnp.a -l:libkj.a
|
||||
endif
|
||||
|
||||
index_log: index_log.cc
|
||||
$(eval $@_TMP := $(shell mktemp))
|
||||
$(CXX) -std=gnu++11 -o $($@_TMP) \
|
||||
index_log.cc \
|
||||
$(CAPNP_FLAGS) \
|
||||
$(CAPNP_LIBS)
|
||||
-lcapnp -lkj
|
||||
mv $($@_TMP) $@
|
||||
|
||||
Reference in New Issue
Block a user