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
e36a8b00
Commit
e36a8b00
authored
Jan 25, 2018
by
Zhangyi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert changes on Makefile
parent
32719a43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
254 deletions
+63
-254
Makefile
example/echo_c++/Makefile
+63
-254
No files found.
example/echo_c++/Makefile
View file @
e36a8b00
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.5
# Default target executed when no arguments are given to make.
default_target
:
all
.PHONY
:
default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL
:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES
:
# Remove some rules from gmake that .SUFFIXES does not remove.
SUFFIXES
=
.SUFFIXES
:
.hpux_make_needs_suffix_list
# Suppress display of executed commands.
$(VERBOSE).SILENT
:
# A target that is always out of date.
cmake_force
:
.PHONY
:
cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL
=
/bin/sh
# The CMake executable.
CMAKE_COMMAND
=
/usr/bin/cmake
# The command to remove a file.
RM
=
/usr/bin/cmake
-E
remove
-f
# Escaping for special characters.
EQUALS
=
=
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR
=
/home/chen/Code/brpc/example/echo_c++
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR
=
/home/chen/Code/brpc/example/echo_c++
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache
:
@
$(CMAKE_COMMAND)
-E
cmake_echo_color
--switch
=
$(COLOR)
--cyan
"No interactive CMake dialog available..."
/usr/bin/cmake
-E
echo
No
\
interactive
\
CMake
\
dialog
\
available.
.PHONY
:
edit_cache
# Special rule for the target edit_cache
edit_cache/fast
:
edit_cache
.PHONY
:
edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache
:
@
$(CMAKE_COMMAND)
-E
cmake_echo_color
--switch
=
$(COLOR)
--cyan
"Running CMake to regenerate build system..."
/usr/bin/cmake
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
.PHONY
:
rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast
:
rebuild_cache
.PHONY
:
rebuild_cache/fast
# The main all target
all
:
cmake_check_build_system
$(CMAKE_COMMAND)
-E
cmake_progress_start /home/chen/Code/brpc/example/echo_c++/CMakeFiles /home/chen/Code/brpc/example/echo_c++/CMakeFiles/progress.marks
$(MAKE)
-f
CMakeFiles/Makefile2 all
$(CMAKE_COMMAND)
-E
cmake_progress_start /home/chen/Code/brpc/example/echo_c++/CMakeFiles 0
.PHONY
:
all
# The main clean target
NEED_GPERFTOOLS
=
1
BRPC_PATH
=
../..
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
+=
$(CPPFLAGS)
-std
=
c++0x
-DNDEBUG
-O2
-D__const__
=
-pipe
-W
-Wall
-Wno-unused-parameter
-fPIC
-fno-omit-frame-pointer
ifeq
($(NEED_GPERFTOOLS),
1)
CXXFLAGS
+=
-DBRPC_ENABLE_CPU_PROFILER
endif
HDRS
+=
$(BRPC_PATH)
/output/include
LIBS
+=
$(BRPC_PATH)
/output/lib
HDRPATHS
=
$
(
addprefix
-I
,
$(HDRS)
)
LIBPATHS
=
$
(
addprefix
-L
,
$(LIBS)
)
COMMA
=
,
SOPATHS
=
$
(
addprefix
-Wl
$(COMMA)
-rpath
=
,
$(LIBS)
)
STATIC_LINKINGS
+=
-lbrpc
CLIENT_SOURCES
=
client.cpp
SERVER_SOURCES
=
server.cpp
PROTOS
=
$
(
wildcard
*
.proto
)
PROTO_OBJS
=
$
(
PROTOS:.proto
=
.pb.o
)
PROTO_GENS
=
$
(
PROTOS:.proto
=
.pb.h
)
$
(
PROTOS:.proto
=
.pb.cc
)
CLIENT_OBJS
=
$
(
addsuffix .o,
$
(
basename
$(CLIENT_SOURCES)
))
SERVER_OBJS
=
$
(
addsuffix .o,
$
(
basename
$(SERVER_SOURCES)
))
.PHONY
:
all
all
:
echo_client echo_server
.PHONY
:
clean
clean
:
$(MAKE)
-f
CMakeFiles/Makefile2 clean
.PHONY
:
clean
# The main clean target
clean/fast
:
clean
.PHONY
:
clean/fast
# Prepare targets for installation.
preinstall
:
all
$(MAKE)
-f
CMakeFiles/Makefile2 preinstall
.PHONY
:
preinstall
# Prepare targets for installation.
preinstall/fast
:
$(MAKE)
-f
CMakeFiles/Makefile2 preinstall
.PHONY
:
preinstall/fast
# clear depends
depend
:
$(CMAKE_COMMAND)
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
--check-build-system
CMakeFiles/Makefile.cmake 1
.PHONY
:
depend
#=============================================================================
# Target rules for targets named echo_server
# Build rule for target.
echo_server
:
cmake_check_build_system
$(MAKE)
-f
CMakeFiles/Makefile2 echo_server
.PHONY
:
echo_server
# fast build rule for target.
echo_server/fast
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/build
.PHONY
:
echo_server/fast
#=============================================================================
# Target rules for targets named echo_client
# Build rule for target.
echo_client
:
cmake_check_build_system
$(MAKE)
-f
CMakeFiles/Makefile2 echo_client
.PHONY
:
echo_client
# fast build rule for target.
echo_client/fast
:
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/build
.PHONY
:
echo_client/fast
client.o
:
client.cpp.o
.PHONY
:
client.o
# target to build an object file
client.cpp.o
:
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/client.cpp.o
.PHONY
:
client.cpp.o
client.i
:
client.cpp.i
.PHONY
:
client.i
# target to preprocess a source file
client.cpp.i
:
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/client.cpp.i
.PHONY
:
client.cpp.i
client.s
:
client.cpp.s
.PHONY
:
client.s
# target to generate assembly for a file
client.cpp.s
:
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/client.cpp.s
.PHONY
:
client.cpp.s
echo.pb.o
:
echo.pb.cc.o
.PHONY
:
echo.pb.o
# target to build an object file
echo.pb.cc.o
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/echo.pb.cc.o
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/echo.pb.cc.o
.PHONY
:
echo.pb.cc.o
echo.pb.i
:
echo.pb.cc.i
.PHONY
:
echo.pb.i
# target to preprocess a source file
echo.pb.cc.i
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/echo.pb.cc.i
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/echo.pb.cc.i
.PHONY
:
echo.pb.cc.i
echo.pb.s
:
echo.pb.cc.s
.PHONY
:
echo.pb.s
# target to generate assembly for a file
echo.pb.cc.s
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/echo.pb.cc.s
$(MAKE)
-f
CMakeFiles/echo_client.dir/build.make CMakeFiles/echo_client.dir/echo.pb.cc.s
.PHONY
:
echo.pb.cc.s
server.o
:
server.cpp.o
.PHONY
:
server.o
# target to build an object file
server.cpp.o
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/server.cpp.o
.PHONY
:
server.cpp.o
server.i
:
server.cpp.i
.PHONY
:
server.i
# target to preprocess a source file
server.cpp.i
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/server.cpp.i
.PHONY
:
server.cpp.i
server.s
:
server.cpp.s
.PHONY
:
server.s
# target to generate assembly for a file
server.cpp.s
:
$(MAKE)
-f
CMakeFiles/echo_server.dir/build.make CMakeFiles/echo_server.dir/server.cpp.s
.PHONY
:
server.cpp.s
# Help Target
help
:
@
echo
"The following are some of the valid targets for this Makefile:"
@
echo
"... all (the default if no target is provided)"
@
echo
"... clean"
@
echo
"... depend"
@
echo
"... edit_cache"
@
echo
"... rebuild_cache"
@
echo
"... echo_server"
@
echo
"... echo_client"
@
echo
"... client.o"
@
echo
"... client.i"
@
echo
"... client.s"
@
echo
"... echo.pb.o"
@
echo
"... echo.pb.i"
@
echo
"... echo.pb.s"
@
echo
"... server.o"
@
echo
"... server.i"
@
echo
"... server.s"
.PHONY
:
help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system
:
$(CMAKE_COMMAND)
-H
$(CMAKE_SOURCE_DIR)
-B
$(CMAKE_BINARY_DIR)
--check-build-system
CMakeFiles/Makefile.cmake 0
.PHONY
:
cmake_check_build_system
@
echo
"Cleaning"
@
rm
-rf
echo_client echo_server
$(PROTO_GENS)
$(PROTO_OBJS)
$(CLIENT_OBJS)
$(SERVER_OBJS)
echo_client
:
$(PROTO_OBJS) $(CLIENT_OBJS)
@
echo
"Linking
$@
"
ifneq
(
"$(LINK_SO)"
,
""
)
@$(CXX)
$(LIBPATHS)
$(SOPATHS)
-Xlinker
"-("
$^
-Xlinker
"-)"
$(STATIC_LINKINGS)
$(DYNAMIC_LINKINGS)
-o
$@
else
@$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl,-Bstatic
$(STATIC_LINKINGS)
-Wl,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
endif
echo_server
:
$(PROTO_OBJS) $(SERVER_OBJS)
@
echo
"Linking
$@
"
ifneq
(
"$(LINK_SO)"
,
""
)
@$(CXX)
$(LIBPATHS)
$(SOPATHS)
-Xlinker
"-("
$^
-Xlinker
"-)"
$(STATIC_LINKINGS)
$(DYNAMIC_LINKINGS)
-o
$@
else
@$(CXX)
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl,-Bstatic
$(STATIC_LINKINGS)
-Wl,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
-o
$@
endif
%.pb.cc %.pb.h
:
%.proto
@
echo
"Generating
$@
"
@
$(PROTOC)
--cpp_out
=
.
--proto_path
=
.
$(PROTOC_EXTRA_ARGS)
$<
%.o
:
%.cpp
@
echo
"Compiling
$@
"
@
$(CXX)
-c
$(HDRPATHS)
$(CXXFLAGS)
$<
-o
$@
%.o
:
%.cc
@
echo
"Compiling
$@
"
@
$(CXX)
-c
$(HDRPATHS)
$(CXXFLAGS)
$<
-o
$@
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