#
|
# 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
|