wangzhengquan
2020-06-13 0defce43c97145172f10a5c114281e704820f95c
service/Makefile
@@ -2,12 +2,15 @@
# Makefile for common library.
#
ROOT=..
LDLIBS+=-Wl,-rpath=$(ROOT)/lib/hc:$(ROOT)/lib/hc/HCNetSDKCom:$(ROOT)/common
LDLIBS+=-Wl,-rpath=$(ROOT)/lib/hc:$(ROOT)/lib/hc/HCNetSDKCom:$(ROOT)/common:$(ROOT)/lib/jsoncpp
# 海康包路径
LDDIR += -L$(ROOT)/lib/hc -L$(ROOT)/lib/hc/HCNetSDKCom
LDLIBS +=
# 开源工具包路径
LDDIR += -L$(ROOT)/lib/jsoncpp -L$(ROOT)/lib/nng
# 海康包
LDLIBS +=  -lhcnetsdk -lhpr -lHCCore
LDLIBS +=  -lhcnetsdk -lhpr -lHCCore
# 开源工具包
LDLIBS += -ljsoncpp  -lnng  -lpthread
INCLUDE += -I$(ROOT)/device/include
@@ -16,7 +19,10 @@
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)
all: netdisk_service test_client test test_queue test_properties
PROGS = netdisk_service test_client test test_queue test_properties
all: $(PROGS)
netdisk_service: $(ROOT)/device/hcnetdisk.c $(ROOT)/device/netdisk_factory.c login_store.c request_handler.c properties_config.c
@@ -26,7 +32,7 @@
test_properties: properties_config.c
clean:
   rm -f test *.o a.out core temp.* *.a *.so
   rm -f $(TEMPFILES) $(PROGS)
include $(ROOT)/Make.common.inc