# This Makefile snippet defines the following variables for host tools: # # CPP: C preprocessor # CC: C compiler # CXX: C++ compiler # OBJC: Objective C compiler # OBJCXX: Objective C++ compiler # GCJ: GNU Java compiler # F77: Fortran 77 compiler # FC: Fortran 9x compiler # LD: linker # PKG_CONFIG: pkg-config tool # # All the above variables have a counterpart variable for the build tool, # as in CC → CC_FOR_BUILD. # # The variables are not exported by default. This can be changed by # defining DPKG_EXPORT_BUILDTOOLS. dpkg_datadir = /usr/share/dpkg include $(dpkg_datadir)/architecture.mk # We set the TOOL_FOR_BUILD variables to the specified value, and the TOOL # variables (for the host) to the their triplet-prefixed form iff they are # not defined or contain the make built-in defaults. On native builds if # TOOL is defined and TOOL_FOR_BUILD is not, we fallback to use TOOL. define dpkg_buildtool_setvar ifeq ($(origin $(1)),default) $(1) = $(DEB_HOST_GNU_TYPE)-$(2) endif $(1) ?= $(DEB_HOST_GNU_TYPE)-$(2) # On native build fallback to use TOOL if that's defined. ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) ifdef $(1) $(1)_FOR_BUILD ?= $$($(1)) endif endif $(1)_FOR_BUILD ?= $(DEB_BUILD_GNU_TYPE)-$(2) ifdef DPKG_EXPORT_BUILDTOOLS export $(1) export $(1)_FOR_BUILD endif endef $(eval $(call dpkg_buildtool_setvar,CPP,gcc -E)) $(eval $(call dpkg_buildtool_setvar,CC,gcc)) $(eval $(call dpkg_buildtool_setvar,CXX,g++)) $(eval $(call dpkg_buildtool_setvar,OBJC,gcc)) $(eval $(call dpkg_buildtool_setvar,OBJCXX,g++)) $(eval $(call dpkg_buildtool_setvar,GCJ,gcj)) $(eval $(call dpkg_buildtool_setvar,F77,f77)) $(eval $(call dpkg_buildtool_setvar,FC,f77)) $(eval $(call dpkg_buildtool_setvar,LD,ld)) $(eval $(call dpkg_buildtool_setvar,PKG_CONFIG,pkg-config))
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
abitable | File | 362 B | 0644 |
|
architecture.mk | File | 614 B | 0644 |
|
buildflags.mk | File | 1.55 KB | 0644 |
|
buildtools.mk | File | 1.74 KB | 0644 |
|
cputable | File | 1.92 KB | 0644 |
|
default.mk | File | 271 B | 0644 |
|
no-pie-compile.specs | File | 77 B | 0644 |
|
no-pie-link.specs | File | 65 B | 0644 |
|
ostable | File | 1.95 KB | 0644 |
|
pie-compile.specs | File | 97 B | 0644 |
|
pie-link.specs | File | 76 B | 0644 |
|
pkg-info.mk | File | 1.47 KB | 0644 |
|
tupletable | File | 1.33 KB | 0644 |
|
vendor.mk | File | 803 B | 0644 |
|