Lines Matching +full:linux +full:- +full:cxx +full:- +full:install

2 --- |
16 # http://www.apache.org/licenses/LICENSE-2.0
137 for dep in set(grpc_lib.transitive_deps) - set(sys_libs):
157 HOST_SYSTEM = $(shell uname | cut -f 1 -d_)
208 % for tool, default in [('CC', 'CC'), ('CXX', 'CXX'), ('LD', 'CC'), ('LDXX', 'CXX')]:
231 # but some variables, such as CC, CXX, LD or AR, have defaults.
234 # https://www.gnu.org/software/make/manual/html_node/Implicit-Variables.html
235 # https://www.gnu.org/software/make/manual/html_node/Flavors.html#index-_003f_003d
236 # https://www.gnu.org/software/make/manual/html_node/Origin-Function.html
240 ifeq ($(origin CXX), default)
241 CXX = $(CXX_$(CONFIG))
248 ifeq ($(SYSTEM),Linux)
252 STRIP ?= strip --strip-unneeded
257 ARFLAGS = -no_warning_for_no_symbols -o
259 STRIP ?= strip -x
265 STRIP ?= strip --strip-unneeded
274 INSTALL ?= install
275 RM ?= rm -f
276 PKG_CONFIG ?= pkg-config
279 APPLE_RANLIB = $(shell [[ "`$(RANLIB) -V 2>/dev/null`" == "Apple Inc."* ]]; echo $$?)
281 RANLIBFLAGS = -no_warning_for_no_symbols
291 # cross-compiling, you can override these variables from GNU make's
292 # command line: make CC=cross-gcc HOST_CC=gcc
295 HOST_CXX ?= $(CXX)
299 CFLAGS += -std=c11
300 CXXFLAGS += -std=c++14
302 CXXFLAGS += -stdlib=libc++
303 LDFLAGS += -framework CoreFoundation
318 PIC_CPPFLAGS = -fPIC
319 CPPFLAGS += -fPIC
320 LDFLAGS += -fPIC
324 LDFLAGS += -Llibs/$(CONFIG)
338 LDFLAGS += -L/usr/local/ssl/lib
341 LDFLAGS += -L/opt/local/lib
344 LDFLAGS += -L/usr/local/lib
348 ifeq ($(SYSTEM),Linux)
350 LDFLAGS += -pthread
355 LDFLAGS += -pthread
359 # The steps for cross-compiling are as follows:
360 # First, clone and make install of grpc using the native compilers for the host.
361 # Also, install protoc (e.g., from a package like apt-get)
362 # Then clone a fresh grpc for the actual cross-compiled build
364 # Set CC, CXX, LD, LDXX, AR, and STRIP to the cross-compiling binaries
365 # Also set PROTOBUF_CONFIG_OPTS to indicate cross-compilation to protobuf (e.g.,
366 # PROTOBUF_CONFIG_OPTS="--host=arm-linux --with-protoc=/usr/local/bin/protoc" )
372 # Then you can do a make from the cross-compiling fresh clone!
375 LDFLAGS += $(GRPC_CROSS_LDOPTS) # e.g. -L/usr/local/lib -L/usr/local/cross/lib
376 ARFLAGS += $(GRPC_CROSS_AROPTS) # e.g., rc --target=elf32-little
392 CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
396 LDLIBS += $(addprefix -l, $(LIBS))
397 LDLIBSXX += $(addprefix -l, $(LIBSXX))
413 -include cache.mk
423 SHARED_VERSION_CORE = -${settings.core_version.major}
424 SHARED_VERSION_CPP = -${settings.cpp_version.major}
456 # and from system-installed zlib. In some builds,
465 CPPFLAGS += -Ithird_party/zlib
472 ifeq ($(wildcard third_party/boringssl-with-bazel/src/include/openssl/ssl.h),)
491 CPPFLAGS := -Ithird_party/boringssl-with-bazel/src/include $(CPPFLAGS)
493 CPPFLAGS += -DTSI_OPENSSL_ALPN_SUPPORT=0
498 LDLIBS_SECURE += $(addprefix -l, $(LIBS_SECURE))
508 @echo "You shouldn't see this message - all of your dependencies are correct."
522 @echo "this issue. Please consult INSTALL to get more information."
535 @echo " git submodule update --init"
561 @echo "to build requires systemtap 2.7+ (on Linux) or dtrace (on other "
659 strip: strip-static strip-shared
661 strip-static: strip-static_c strip-static_cxx
663 strip-shared: strip-shared_c strip-shared_cxx
665 strip-static_c: static_c
681 strip-static_cxx: static_cxx
695 strip-shared_c: shared_c
711 strip-shared_cxx: shared_cxx
731 $(Q) mkdir -p `dirname $@`
732 $(Q) $(CC) $(CPPFLAGS) $(CFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
735 $(E) "[CXX] Compiling $<"
736 $(Q) mkdir -p `dirname $@`
737 $(Q) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
741 $(Q) mkdir -p `dirname $@`
742 …$(Q) $(HOST_CXX) $(HOST_CXXFLAGS) $(HOST_CPPFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -
745 $(E) "[CXX] Compiling $<"
746 $(Q) mkdir -p `dirname $@`
747 …$(Q) $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(COREFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o …
750 $(E) "[CXX] Compiling $<"
751 $(Q) mkdir -p `dirname $@`
752 $(Q) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
755 $(E) "[CXX] Compiling $<"
756 $(Q) mkdir -p `dirname $@`
757 $(Q) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
759 install: install_not_supported_error
765 install-static: install_not_supported_error
767 install-certs: install_not_supported_error
771 $(Q) $(RM) -rf $(OBJDIR) $(LIBDIR) $(BINDIR) $(GENDIR) cache.mk
834 $(Q) mkdir -p `dirname $@`
835 $(Q) rm -f $(LIBDIR)/$(CONFIG)/lib${lib.name}.a
855 $(Q) mkdir -p `dirname $@`
856 …$(Q) ${ld} ${ldflags} -L$(LIBDIR)/$(CONFIG) -shared -Wl,--output-def=${out_mingbase}.def -Wl,--out
860 $(Q) mkdir -p `dirname $@`
862-L$(LIBDIR)/$(CONFIG) -install_name $(SHARED_PREFIX)${lib.name}$(SHARED_VERSION_${lang_to_var[lib.…
864 …${ldflags} -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,lib${lib.name}.so.${settings.get(lang_to_var[…
865 …$(Q) ln -sf $(SHARED_PREFIX)${lib.name}$(SHARED_VERSION_${lang_to_var[lib.language]}).$(SHARED_EXT…
866 …$(Q) ln -sf $(SHARED_PREFIX)${lib.name}$(SHARED_VERSION_${lang_to_var[lib.language]}).$(SHARED_EXT…
881 -include $(LIB${lib.name.upper()}_OBJS:.o=.dep)
893 install install_c install_cxx install-static install-certs \
894 strip strip-shared strip-static \
895 strip_c strip-shared_c strip-static_c \
896 strip_cxx strip-shared_cxx strip-static_cxx \
903 $(if $(filter-out environment% default automatic, \