C版本的nng库,可以和go版本的mangos通信
wangzhengquan
2020-06-16 65080866cccbb2e8c83bc87f0378e55b90003433
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
33
34
35
36
37
38
39
40
41
42
#
# Makefile for common library.
#
ROOT=..
# LDLIBS+=-Wl,-rpath=
 
# 开源工具包路径
LDDIR +=-L$(ROOT)/bipc  -L$(ROOT)/lib/nng 
 
# 开源工具包
LDLIBS += -lbipc -lnng -lpthread
 
#LIB_NETDISK = $(ROOT)/libnetdisk.a
#DLIB_NETDISK = $(ROOT)/libnetdisk.so
PLATFORM=$(shell $(ROOT)/systype.sh)
include $(ROOT)/Make.defines.$(PLATFORM)
 
 
PROGS = test_survey test_survey2 test_pubsub test_pullpush test_pair test_bus test_reqrep
 
 
build: $(PROGS)
 
 
 
test_survey: test_survey.c
 
test_pubsub:  test_pubsub.c
 
test_pullpush:  test_pullpush.c
 
test_pair: test_pair.c
 
test_bus:  test_bus.c
 
test_reqrep: test_reqrep.c
 
clean:
    rm -f $(TEMPFILES) $(PROGS)
 
 
# include $(ROOT)/Make.common.inc