lib
wangzhengquan
2020-07-14 a5f8bdf484b74b4358974337ec07a3f18bbe0291
lib
8个文件已删除
2个文件已添加
8个文件已修改
23 ■■■■ 已修改文件
Make.defines.linux 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Makefile 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
include/usgcommon/usg_common.h 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
lib/libusgcommon.so 补丁 | 查看 | 原始文档 | blame | 历史
queue/Makefile 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
queue/libshm_queue.a 补丁 | 查看 | 原始文档 | blame | 历史
queue/libshm_queue.so 补丁 | 查看 | 原始文档 | blame | 历史
test/multiple_queue_consumer 补丁 | 查看 | 原始文档 | blame | 历史
test/multiple_queue_productor 补丁 | 查看 | 原始文档 | blame | 历史
test/single_consumer 补丁 | 查看 | 原始文档 | blame | 历史
test/single_productor 补丁 | 查看 | 原始文档 | blame | 历史
test/test_lostdata 补丁 | 查看 | 原始文档 | blame | 历史
test/test_queue 补丁 | 查看 | 原始文档 | blame | 历史
test/test_timeout 补丁 | 查看 | 原始文档 | blame | 历史
test2/Makefile 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
test2/client 补丁 | 查看 | 原始文档 | blame | 历史
test2/server 补丁 | 查看 | 原始文档 | blame | 历史
test2/test_queue_wrapper 补丁 | 查看 | 原始文档 | blame | 历史
Make.defines.linux
@@ -8,7 +8,7 @@
LINK.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
LDFLAGS=
LDDIR += -L$(ROOT)/lib
LDLIBS += $(LDDIR) -lusgcommon $(EXTRALIBS)
LDLIBS += $(LDDIR) $(EXTRALIBS)
INCLUDE += -I. -I./include -I$(ROOT)/include -I$(ROOT)/include/usgcommon
ifeq ($(DEBUG),y)
@@ -21,13 +21,13 @@
RANLIB=echo
AR=ar
AWK=awk
LIBCOMMON=$(ROOT)/common/libusgcommon.a
#LIBCOMMON=$(ROOT)/common/libusgcommon.a
# Common temp files to delete from each directory.
TEMPFILES=core core.* *.o temp.* *.out *.a *.so
%:    %.c $(LIBCOMMON)
    $(CC) $(CFLAGS) $(filter-out $(LIBCOMMON), $^) -o $@ $(LDFLAGS) $(LDLIBS)
%:    %.c
    $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) $(LDLIBS)
Makefile
@@ -1,4 +1,4 @@
DIRS = queue test test2
DIRS = queue  test2
all:
    for i in $(DIRS); do \
include/usgcommon/usg_common.h
@@ -64,10 +64,9 @@
#include <algorithm>
#include <iomanip>
#include <limits>
#include <map>
#include <initializer_list>
#include <vector>
#include <map>
#include <set>
#include <thread>
 
#endif
lib/libusgcommon.so
Binary files differ
queue/Makefile
@@ -7,7 +7,7 @@
#LDDIR += -L$(ROOT)/lib/jsoncpp -L$(ROOT)/lib/nng
# 开源工具包
#LDLIBS += -ljsoncpp  -lnng  -lpthread
LDLIBS += -lusgcommon
#INCLUDE += -I$(ROOT)/device/include
@@ -20,7 +20,7 @@
SOURCES := $(wildcard *.c)
OBJS   = $(patsubst %.c, %.o, $(SOURCES)) 
MYLIBS = $(LIBSQUEUE)
MYLIBS = $(LIBSQUEUE) $(DLIBSQUEUE)
all: build
 
@@ -29,13 +29,13 @@
#static lib
$(LIBSQUEUE): $(OBJS)
    $(AR) rv $@ $?
    $(AR) rv $@ $? $(ROOT)/lib/libusgcommon.a
    $(RANLIB) $@
#dynamic lib
$(DLIBSQUEUE): $(SOURCES)
    rm -f *.o
    $(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS)
    $(CC) -fPIC -shared $(CFLAGS) $^ -o $@ $(LDFLAGS) $(ROOT)/lib/libusgcommon.so
#PREFIX is environment variable, but if it is not set, then set default value
queue/libshm_queue.a
Binary files differ
queue/libshm_queue.so
Binary files differ
test/multiple_queue_consumer
Binary files differ
test/multiple_queue_productor
Binary files differ
test/single_consumer
Binary files differ
test/single_productor
Binary files differ
test/test_lostdata
Binary files differ
test/test_queue
Binary files differ
test/test_timeout
Binary files differ
test2/Makefile
@@ -2,7 +2,7 @@
# Makefile for common library.
#
ROOT=..
#LDLIBS+=-Wl,-rpath=$(ROOT)/common:$(ROOT)/lib/jsoncpp
LDLIBS+=-Wl,-rpath=$(ROOT)/queue
# 开源工具包路径
LDDIR += -L$(ROOT)/queue
# 开源工具包
test2/client
Binary files differ
test2/server
Binary files differ
test2/test_queue_wrapper
Binary files differ