Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
6bf40ff1
Commit
6bf40ff1
authored
7 years ago
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation of tools and add them into tools/[make|clean]_all_examples
parent
8ed71808
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
clean_all_examples
tools/clean_all_examples
+1
-1
make_all_examples
tools/make_all_examples
+1
-1
Makefile
tools/parallel_http/Makefile
+1
-1
Makefile
tools/rpc_press/Makefile
+1
-1
Makefile
tools/rpc_replay/Makefile
+1
-1
Makefile
tools/rpc_view/Makefile
+2
-2
Makefile
tools/trackme_server/Makefile
+1
-1
No files found.
tools/clean_all_examples
View file @
6bf40ff1
saved_pwd_before_making=$PWD
for file in `find example -name Makefile`; do
for file in `find example
tools
-name Makefile`; do
cd $(dirname $file)
echo -e "\n[$file]"
make -s clean
...
...
This diff is collapsed.
Click to expand it.
tools/make_all_examples
View file @
6bf40ff1
saved_pwd_before_making=$PWD
for file in `find example -name Makefile`; do
for file in `find example
tools
-name Makefile`; do
cd $(dirname $file)
echo -e "\n[$file]"
make -sj4
...
...
This diff is collapsed.
Click to expand it.
tools/parallel_http/Makefile
View file @
6bf40ff1
BRPC_PATH
=
../../
include
$(BRPC_PATH)/config.mk
CXXFLAGS
=
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
-Wno-unused-parameter
CXXFLAGS
=
$(CPPFLAGS)
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
-Wno-unused-parameter
HDRPATHS
=
-I
$(BRPC_PATH)
/output/include
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
-L
$(BRPC_PATH)
/output/lib
$
(
addprefix
-L
,
$(LIBS)
)
STATIC_LINKINGS
+=
-lbrpc
...
...
This diff is collapsed.
Click to expand it.
tools/rpc_press/Makefile
View file @
6bf40ff1
BRPC_PATH
=
../../
include
$(BRPC_PATH)/config.mk
CXXFLAGS
=
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
-Wno-unused-parameter
CXXFLAGS
=
$(CPPFLAGS)
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
-Wno-unused-parameter
HDRPATHS
=
-I
$(BRPC_PATH)
/output/include
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
-L
$(BRPC_PATH)
/output/lib
$
(
addprefix
-L
,
$(LIBS)
)
STATIC_LINKINGS
+=
-lbrpc
...
...
This diff is collapsed.
Click to expand it.
tools/rpc_replay/Makefile
View file @
6bf40ff1
BRPC_PATH
=
../../
include
$(BRPC_PATH)/config.mk
CXXFLAGS
=
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
-Wno-unused-parameter
CXXFLAGS
=
$(CPPFLAGS)
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
-Wno-unused-parameter
HDRPATHS
=
-I
$(BRPC_PATH)
/output/include
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
-L
$(BRPC_PATH)
/output/lib
$
(
addprefix
-L
,
$(LIBS)
)
STATIC_LINKINGS
+=
-lbrpc
...
...
This diff is collapsed.
Click to expand it.
tools/rpc_view/Makefile
View file @
6bf40ff1
...
...
@@ -3,7 +3,7 @@ include $(BRPC_PATH)/config.mk
# Notes on the flags:
# 1. Added -fno-omit-frame-pointer: perf/tcmalloc-profiler use frame pointers by default
# 2. Added -D__const__= : Avoid over-optimizations of TLS variables by GCC>=4.8
CXXFLAGS
=
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-Wno-unused-parameter
-fPIC
-fno-omit-frame-pointer
CXXFLAGS
=
$(CPPFLAGS)
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-Wno-unused-parameter
-fPIC
-fno-omit-frame-pointer
HDRPATHS
=
-I
$(BRPC_PATH)
/output/include
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
-L
$(BRPC_PATH)
/output/lib
$
(
addprefix
-L
,
$(LIBS)
)
STATIC_LINKINGS
+=
-lbrpc
...
...
@@ -25,7 +25,7 @@ clean:
rpc_view
:
$(PROTO_OBJS) $(CLIENT_OBJS)
@
echo
"Linking
$@
"
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
@
$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
%.pb.cc %.pb.h
:
%.proto
@
echo
"Generating
$@
"
...
...
This diff is collapsed.
Click to expand it.
tools/trackme_server/Makefile
View file @
6bf40ff1
BRPC_PATH
=
../../
include
$(BRPC_PATH)/config.mk
CXXFLAGS
=
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
CXXFLAGS
=
$(CPPFLAGS)
-std
=
c++0x
-g
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Werror
-fPIC
-fno-omit-frame-pointer
HDRPATHS
=
-I
$(BRPC_PATH)
/output/include
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
-L
$(BRPC_PATH)
/output/lib
$
(
addprefix
-L
,
$(LIBS)
)
STATIC_LINKINGS
+=
-lbrpc
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment