wangzhengquan
2020-06-11 981244e52c0d474df04d8b2ee6a2d57561c1a2f0
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
#
# Makefile for common library.
#
ROOT=..
LDLIBS+=-Wl,-rpath=$(ROOT)/hclib:$(ROOT)/hclib/HCNetSDKCom:$(ROOT)/common:$(ROOT)/device
LDDIR += -L$(ROOT)/device -L$(ROOT)/hclib -L$(ROOT)/hclib/HCNetSDKCom
LDLIBS += -lnetdisk
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 client test test_queue test_properties
 
test_properties: properties_config.c
 
netdisk_service: $(ROOT)/device/hcnetdisk.c login_store.c request_handler.c properties_config.c
 
test: $(ROOT)/device/hcnetdisk.c
 
clean:
    rm -f test *.o a.out core temp.* *.a *.so
 
 
include $(ROOT)/Make.common.inc