Skip to content

Commit 89ec8d7

Browse files
Merge branch 'F-Stack:dev' into dev
2 parents 880fddc + a79fa9c commit 89ec8d7

File tree

4,192 files changed

+367721
-207703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,192 files changed

+367721
-207703
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ BSD 3-Clause, Copyright (c) 2009, Ben Hoyt.All rights reserved.
3939

4040
6.Nginx
4141

42-
BSD 2-Clause, Copyright (C) 2002-2019 Igor Sysoev
43-
Copyright (C) 2011-2019 Nginx, Inc.
42+
BSD 2-Clause, Copyright (C) 2002-2021 Igor Sysoev
43+
Copyright (C) 2011-2023 Nginx, Inc.
4444
All rights reserved.
4545

4646
7.Redis

README.md

Lines changed: 4 additions & 3 deletions

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23
1+
1.24

adapter/README.md

Lines changed: 13 additions & 0 deletions

adapter/micro_thread/Makefile

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
2+
#
3+
# Tencent is pleased to support the open source community by making MSEC available.
4+
#
5+
# Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
6+
#
7+
# Licensed under the GNU General Public License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License. You may
9+
# obtain a copy of the License at
10+
#
11+
# https://opensource.org/licenses/GPL-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software distributed under the
14+
# License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
15+
# either express or implied. See the License for the specific language governing permissions
16+
# and limitations under the License.
17+
#
18+
19+
20+
########MAKEFILE##########
21+
22+
ifeq ($(FF_PATH),)
23+
FF_PATH=/usr/local
24+
$(warning FF_PATH environment variable not defined, default FF_PATH=/usr/local)
25+
endif
26+
27+
ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)
28+
$(error "no installation of DPDK found, maybe you shuld export environment variable `PKG_CONFIG_PATH`")
29+
endif
30+
31+
PKGCONF ?= pkg-config
32+
33+
DEBUG= -g
34+
BINARY = libmt.a
35+
FF_LIBS+= $(shell $(PKGCONF) --static --libs libdpdk)
36+
FF_LIBS+= -L${FF_PATH}/lib -Wl,--whole-archive,-lfstack,--no-whole-archive
37+
FF_LIBS+= -Wl,--no-whole-archive -lrt -lm -ldl -lcrypto -lpthread -lnuma
38+
39+
# Comment the following line if you are not using the gnu c compiler
40+
#C_ARGS = -Wall -g -fPIC -D_DEBUG
41+
C_ARGS = -Wall -g -fPIC -O0 -DMT_REAL_TIME -Wno-register
42+
#.SUFFIXES: .o .cpp
43+
44+
ifeq ($(ARCH),32)
45+
C_ARGS += -march=pentium4 -m32 -DSUS_LINUX -pthread
46+
else
47+
C_ARGS += -m64 -DSUS_LINUX -pthread
48+
endif
49+
# You might have to change this if your c compiler is not cc
50+
CC = g++
51+
52+
# You shouldn't need to make any more changes below this line.
53+
INCCOMM=-I./valgrind -I$(FF_PATH)/lib
54+
55+
#.c.o:
56+
# $(CC) -c $*.c
57+
58+
all: $(BINARY)
59+
60+
### shell color config
61+
RED = \\e[1m\\e[31m
62+
DARKRED = \\e[31m
63+
GREEN = \\e[1m\\e[32m
64+
DARKGREEN = \\e[32m
65+
BLUE = \\e[1m\\e[34m
66+
DARKBLUE = \\e[34m
67+
YELLOW = \\e[1m\\e[33m
68+
DARKYELLOW = \\e[33m
69+
MAGENTA = \\e[1m\\e[35m
70+
DARKMAGENTA = \\e[35m
71+
CYAN = \\e[1m\\e[36m
72+
DARKCYAN = \\e[36m
73+
RESET = \\e[m
74+
CRESET = ;echo -ne \\e[m; test -s $@
75+
76+
%.o: %.cpp
77+
@echo -e Compiling $(GREEN)$<$(RESET) ...$(RED)
78+
@$(CC) $(C_ARGS) -c -o $@ $< $(INCCOMM) $(CRESET)
79+
80+
%.o: %.c
81+
@echo -e Compiling $(GREEN)$<$(RESET) ...$(RED)
82+
@$(CC) $(C_ARGS) -c -o $@ $< $(INCCOMM) $(CRESET)
83+
84+
%.o: %.S
85+
@echo -e Compiling $(GREEN)$<$(RESET) ...$(RED)
86+
@$(CC) $(C_ARGS) -c -o $@ $< $(INCCOMM) $(CRESET)
87+
88+
clean:
89+
@rm -f $(BINARY) *.a *.o echo
90+
91+
92+
LIB_OBJ = micro_thread.o kqueue_proxy.o arch_ctx.o mt_session.o mt_notify.o mt_action.o mt_mbuf_pool.o mt_api.o\
93+
mt_connection.o mt_concurrent.o mt_sys_hook.o ff_hook.o heap_timer.o mt_cache.o mt_net.o
94+
95+
libmt.a: $(LIB_OBJ)
96+
@echo -e Linking $(CYAN)$@$(RESET) ...$(RED)
97+
@-rm -f $@
98+
@ar crs $@ $^ $(CRESET)
99+
@chmod +x $@
100+
101+
echo: echo.o libmt.a
102+
@echo -e Compile $(CYAN)$@$(RESET) ...$(RED)
103+
@$(CC) -O -gdwarf-2 -o $@ $^ -lstdc++ -ldl -lm $(FF_LIBS) $(CRESET)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)