Changeset 762 in vbox for trunk/Config.kmk
- Timestamp:
- Feb 7, 2007 11:15:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r687 r762 101 101 # Build linux / win32 additions. 102 102 ifeq ($(BUILD_TARGET),linux) 103 VBOX_WITH_LINUX_ADDITIONS = 1 103 104 ifeq ($(BUILD_TARGET_ARCH),x86) # later on amd64 too. 104 VBOX_WITH_LINUX_ADDITIONS = 1105 105 VBOX_WITH_WIN32_ADDITIONS = 1 106 106 endif … … 112 112 ifeq ($(BUILD_TARGET),win) 113 113 VBOX_WITH_WIN32_ADDITIONS = 1 114 endif 115 ifdef VBOX_WITH_LINUX_ADDITIONS 116 ifeq ($(BUILD_TARGET).$(BUILD_PLATFORM_ARCH),linux.x86) 117 VBOX_WITH_LINUX_ADDITIONS_32BIT_R0 = 1 118 endif 114 119 endif 115 120 # Enable the building of shared folders in the windows additions. … … 266 271 endif 267 272 268 # 269 # HACK ALERT!270 # OVerride anyone attempting to build Linux/GNU additions when targeting AMD64.271 # 272 ifdef VBOX_WITH_LINUX_ADDITIONS273 ifeq ($(BUILD_TARGET_ARCH),amd64)274 VBOX_WITH_LINUX_ADDITIONS :=275 endif276 endif273 ## 274 ## HACK ALERT! 275 ## OVerride anyone attempting to build Linux/GNU additions when targeting AMD64. 276 ## 277 #ifdef VBOX_WITH_LINUX_ADDITIONS 278 # ifeq ($(BUILD_TARGET_ARCH),amd64) 279 # VBOX_WITH_LINUX_ADDITIONS := 280 # endif 281 #endif 277 282 278 283 # … … 1840 1845 # Not properly realized yet. 1841 1846 # 1842 1843 1847 TEMPLATE_VBOXLNX32GUESTR0 = Template for *syntax checking* linux guest additions kernel modules 1844 1848 TEMPLATE_VBOXLNX32GUESTR0_TOOL = $(VBOX_GCC_TOOL) … … 1863 1867 endif 1864 1868 1869 1870 # 1871 # Tools and templates for building 32-bit linux guest additions. 1872 # 1873 TOOL_VBOXLNX32NOCPPLD = Linker tool replacing the VBOX_GCC32_TOOL linker (g++). 1874 TOOL_VBOXLNX32NOCPPLD_LINK_PROGRAM_OUTPUT = $(outbase).map 1875 TOOL_VBOXLNX32NOCPPLD_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 1876 TOOL_VBOXLNX32NOCPPLD_LINK_PROGRAM_DEPORD = 1877 define TOOL_VBOXLNX32NOCPPLD_LINK_PROGRAM_CMDS 1878 $(QUIET)$(TOOL_$(VBOX_GCC32_TOOL)_CC) $(flags) -o $(out) $(objs)\ 1879 $(foreach p,$(libpath), -L$(p))\ 1880 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\ 1881 $(call TOOL_$(VBOX_GCC32_TOOL)_LD_MAP,$(outbase).map) 1882 endef 1883 TOOL_VBOXLNX32NOCPPLD_LINK_DLL_OUTPUT = $(outbase).map 1884 TOOL_VBOXLNX32NOCPPLD_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 1885 TOOL_VBOXLNX32NOCPPLD_LINK_DLL_DEPORD = 1886 # (no SONAME for now) 1887 define TOOL_VBOXLNX32NOCPPLD_LINK_DLL_CMDS 1888 $(QUIET)$(TOOL_$(VBOX_GCC32_TOOL)_CC) $(TOOL_$(VBOX_GCC32_TOOL)_LDFLAGS.dll) $(flags) -o $(out)\ 1889 $(objs)\ 1890 $(foreach p,$(libpath), -L$(p))\ 1891 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\ 1892 $(call TOOL_$(VBOX_GCC32_TOOL)_LD_MAP,$(outbase).map) 1893 endef 1894 TOOL_VBOXLNX32NOCPPLD_LINK_SYSMOD_OUTPUT = $(outbase).map 1895 TOOL_VBOXLNX32NOCPPLD_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 1896 TOOL_VBOXLNX32NOCPPLD_LINK_SYSMOD_DEPORD = 1897 define TOOL_VBOXLNX32NOCPPLD_LINK_SYSMOD_CMDS 1898 $(QUIET)$(TOOL_$(VBOX_GCC32_TOOL)_LD_SYSMOD) $(TOOL_VBOXLNX32NOCPPLD_LDFLAGS.sysmod) $(flags) -o $(out) $(objs)\ 1899 $(foreach p,$(libpath), -L$(p))\ 1900 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\ 1901 $(call TOOL_$(VBOX_GCC32_TOOL)_LD_SYSMOD_MAP,$(outbase).map) 1902 endef 1903 1865 1904 TEMPLATE_VBOXLNX32GUESTR3EXE = Template for building 32-bit linux guest additions programs. 1866 1905 TEMPLATE_VBOXLNX32GUESTR3EXE_INST = $(INST_ADDITIONS) … … 1871 1910 TEMPLATE_VBOXLNX32GUESTR3EXE_ASTOOL = YASM 1872 1911 TEMPLATE_VBOXLNX32GUESTR3EXE_ASFLAGS = -f elf32 -DASM_FORMAT_ELF -D__YASM__ -w+orphan-labels 1873 TEMPLATE_VBOXLNX32GUESTR3EXE_DEFS = IN_RING3 IN_GUEST_R3 1912 TEMPLATE_VBOXLNX32GUESTR3EXE_DEFS = IN_RING3 IN_GUEST_R3 HC_ARCH_BITS=32 GC_ARCH_BITS=32 1874 1913 TEMPLATE_VBOXLNX32GUESTR3EXE_CXXFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs -pipe $(VBOX_GCC_fno-stack-protector) 1875 1914 TEMPLATE_VBOXLNX32GUESTR3EXE_CXXFLAGS.debug = -fno-inline … … 1882 1921 TEMPLATE_VBOXLNX32GUESTR3EXE_CFLAGS.kprofile = $(TEMPLATE_VBOXLNX32GUESTR3EXE_CXXFLAGS.kprofile) 1883 1922 TEMPLATE_VBOXLNX32GUESTR3EXE_CFLAGS = -g -Wall -pedantic -Wno-long-long -Wno-trigraphs -pipe -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations $(VBOX_GCC_fno-stack-protector) 1884 TEMPLATE_VBOXLNX32GUESTR3EXE_LDFLAGS = # -static 1885 TEMPLATE_VBOXLNX32GUESTR3EXE_LIBS = # pthread m $(LIB_UUID) rt dl 1886 1887 TEMPLATE_VBOXLNX32GUESTR3LIB = Template for building 32-bit linux guest additions programs. 1923 # No LDFLAGS nor LIBS! 1924 1925 TEMPLATE_VBOXLNX32GUESTR3EXENOCPP = Template for building 32-bit linux guest additions programs without any C++. 1926 TEMPLATE_VBOXLNX32GUESTR3EXENOCPP_EXTENDS = VBOXLNX32GUESTR3EXE 1927 TEMPLATE_VBOXLNX32GUESTR3EXENOCPP_LDTOOL = VBOXLNX32NOCPPLD 1928 # No LDFLAGS nor LIBS! 1929 1930 TEMPLATE_VBOXLNX32GUESTR3DLLNOCPP = Template for building 32-bit linux guest additions shared objects without any C++. 1931 TEMPLATE_VBOXLNX32GUESTR3DLLNOCPP_EXTENDS = VBOXLNX32GUESTR3EXE 1932 TEMPLATE_VBOXLNX32GUESTR3DLLNOCPP_LDTOOL = VBOXLNX32NOCPPLD 1933 TEMPLATE_VBOXLNX32GUESTR3DLLNOCPP_CFLAGS = -fPIC $(TEMPLATE_VBOXLNX32GUESTR3EXE_CFLAGS) 1934 TEMPLATE_VBOXLNX32GUESTR3DLLNOCPP_CXXFLAGS = -fPIC $(TEMPLATE_VBOXLNX32GUESTR3EXE_CXXFLAGS) 1935 TEMPLATE_VBOXLNX32GUESTR3DLLNOCPP_LDFLAGS = -fPIC 1936 1937 TEMPLATE_VBOXLNX32GUESTR3LIB = Template for building 32-bit linux guest additions libraries. 1888 1938 TEMPLATE_VBOXLNX32GUESTR3LIB_EXTENDS = VBOXLNX32GUESTR3EXE 1889 1939 TEMPLATE_VBOXLNX32GUESTR3LIB_INST = $(INST_ADDITION_LIB) 1890 1891 TEMPLATE_VBOXLNX32GUESTR3 = Template for building 32-bit linux guest additions libraries.1892 TEMPLATE_VBOXLNX32GUESTR3_EXTENDS = VBOXLNX32GUESTR3EXE1893 TEMPLATE_VBOXLNX32GUESTR3_LDFLAGS = -static1894 TEMPLATE_VBOXLNX32GUESTR3_LIBS = pthread m $(LIB_UUID) rt dl1895 1896 1897 1898 ##1899 ## efence1900 ##1901 #TEMPLATE_VBOXR3_CFLAGS += -include efence.h1902 #TEMPLATE_VBOXR3_CXXFLAGS += -include efence.h1903 #TEMPLATE_VBOXMAIN_CFLAGS += -include efence.h1904 #TEMPLATE_VBOXMAIN_CXXFLAGS += -include efence.h1905 #TEMPLATE_VBOXR3_LIBS += efence1906 #TEMPLATE_VBOXMAIN_LIBS += efence1907 1940 1908 1941
Note:
See TracChangeset
for help on using the changeset viewer.