wangzhengquan
2020-06-13 c6a302283cee53d113d88db89c0a242576dbc8c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Makefile for common library.
#
ROOT=..
LDLIBS+=-Wl,-rpath=$(ROOT)/lib/hc:$(ROOT)/lib/hc/HCNetSDKCom:$(ROOT)/common
# 海康包路径
LDDIR += -L$(ROOT)/lib/hc -L$(ROOT)/lib/hc/HCNetSDKCom
LDLIBS +=
# 海康包
LDLIBS +=  -lhcnetsdk -lhpr -lHCCore 
LDLIBS += -ljsoncpp  -lnng  -lpthread
 
INCLUDE += -I$(ROOT)/device/include
LIB_NETDISK = $(ROOT)/libnetdisk.a
DLIB_NETDISK = $(ROOT)/libnetdisk.so
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)
 
all: netdisk_service test_client test test_queue test_properties
 
 
netdisk_service: $(ROOT)/device/hcnetdisk.c $(ROOT)/device/netdisk_factory.c login_store.c request_handler.c properties_config.c
 
test: $(ROOT)/device/hcnetdisk.c
 
test_properties: properties_config.c
 
clean:
    rm -f test *.o a.out core temp.* *.a *.so
 
 
include $(ROOT)/Make.common.inc