From 4bf1fc0a7e9a4611fc322ebe1cb39a671aa2ed57 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 21 七月 2020 11:59:23 +0800 Subject: [PATCH] reconstruct --- src/Makefile | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/queue/Makefile b/src/Makefile similarity index 81% rename from queue/Makefile rename to src/Makefile index 3c8a4e2..2ab0bb5 100644 --- a/queue/Makefile +++ b/src/Makefile @@ -9,7 +9,8 @@ # 寮�婧愬伐鍏峰寘 LDLIBS += -lusgcommon -#INCLUDE += -I$(ROOT)/device/include +MINCLUDE := -I./queue -I./queue/include -I./socket -I./socket/include -I./util -I./util/include +INCLUDE += $(MINCLUDE) PLATFORM=$(shell $(ROOT)/systype.sh) include $(ROOT)/Make.defines.$(PLATFORM) @@ -17,7 +18,7 @@ LIBSQUEUE = libshm_queue.a DLIBSQUEUE = libshm_queue.so -SOURCES := $(wildcard *.c) +SOURCES := $(wildcard *.c ./queue/*.c ./socket/*.c ./util/*.c) OBJS = $(patsubst %.c, %.o, $(SOURCES)) MYLIBS = $(LIBSQUEUE) $(DLIBSQUEUE) @@ -54,7 +55,7 @@ install -d $(PREFIX)/lib/ install -m 644 $^ $(PREFIX)/lib/ install -d $(PREFIX)/include/ - install -m 644 include/* $(PREFIX)/include/ + install -m 644 $(MINCLUDE)/* $(PREFIX)/include/ clean: rm -f $(TEMPFILES) -- Gitblit v1.8.0