settings.mk (2752044b) | settings.mk (b3ba5bc7) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 121 unchanged lines hidden (view full) --- 130EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1b000000 /DEBUGTYPE:cv /NODEFAULTLIB msvcrt.lib kernel32.lib 131ifeq "$(DEBUG)" "yes" 132LIBRARY_LINK_FLAGS+=/DEBUG 133EXE_LINK_FLAGS+=/DEBUG 134endif 135 136LINK_JAVA_LIBS=/LIBPATH:"$(OO_SDK_JAVA_HOME)/lib" 137 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 121 unchanged lines hidden (view full) --- 130EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1b000000 /DEBUGTYPE:cv /NODEFAULTLIB msvcrt.lib kernel32.lib 131ifeq "$(DEBUG)" "yes" 132LIBRARY_LINK_FLAGS+=/DEBUG 133EXE_LINK_FLAGS+=/DEBUG 134endif 135 136LINK_JAVA_LIBS=/LIBPATH:"$(OO_SDK_JAVA_HOME)/lib" 137 |
138ifneq "$(OO_SDK_URE_HOME)" "" 139URE_MISC=$(OO_SDK_URE_HOME)\misc 140endif | 138#ifneq "$(OFFICE_PROGRAM_PATH)" "" 139#URE_MISC=$(OFFICE_PROGRAM_PATH)\misc 140#endif |
141 142# use this for release version 143#EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1100000 144#LIBRARY_LINK_FLAGS=/NODEFAULTLIB /DLL 145endif 146 147 148 149########################################################################### 150# 151# Solaris specific settings 152# 153########################################################################### 154ifneq (,$(findstring solaris,$(PLATFORM))) 155# Settings for Solaris using Sun Workshop compiler 156 | 141 142# use this for release version 143#EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1100000 144#LIBRARY_LINK_FLAGS=/NODEFAULTLIB /DLL 145endif 146 147 148 149########################################################################### 150# 151# Solaris specific settings 152# 153########################################################################### 154ifneq (,$(findstring solaris,$(PLATFORM))) 155# Settings for Solaris using Sun Workshop compiler 156 |
157PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)$(shell /usr/ccs/bin/elfdump -e "$(OO_SDK_URE_HOME)/lib/libuno_sal.so.3" | /usr/xpg4/bin/grep -q -w ELFCLASS64 && echo 64) | 157PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)$(shell /usr/ccs/bin/elfdump -e "$(OFFICE_PROGRAM_PATH)/libuno_sal.so.3" | /usr/xpg4/bin/grep -q -w ELFCLASS64 && echo 64) |
158 159ifeq "$(PROCTYPE)" "sparc" 160PLATFORM=solsparc 161PACKAGE_LIB_DIR=solaris_sparc.plt 162UNOPKG_PLATFORM=Solaris_SPARC 163JAVA_PROC_TYPE=sparc 164else 165ifeq "$(PROCTYPE)" "sparc64" --- 84 unchanged lines hidden (view full) --- 250LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 251 252ifeq "$(PROCTYPE)" "sparc64" 253CC_FLAGS+=-m64 254LIBRARY_LINK_FLAGS+=-m64 255EXE_LINK_FLAGS+=-m64 256endif 257 | 158 159ifeq "$(PROCTYPE)" "sparc" 160PLATFORM=solsparc 161PACKAGE_LIB_DIR=solaris_sparc.plt 162UNOPKG_PLATFORM=Solaris_SPARC 163JAVA_PROC_TYPE=sparc 164else 165ifeq "$(PROCTYPE)" "sparc64" --- 84 unchanged lines hidden (view full) --- 250LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 251 252ifeq "$(PROCTYPE)" "sparc64" 253CC_FLAGS+=-m64 254LIBRARY_LINK_FLAGS+=-m64 255EXE_LINK_FLAGS+=-m64 256endif 257 |
258ifneq "$(OO_SDK_URE_HOME)" "" 259URE_MISC=$(OO_SDK_URE_HOME)/share/misc | 258ifneq "$(OFFICE_PROGRAM_PATH)" "" 259URE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc |
260endif 261 262endif 263 264 265 266########################################################################### 267# --- 129 unchanged lines hidden (view full) --- 397#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map 398COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 399 400#EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive 401EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--no-whole-archive 402LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" 403LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 404 | 260endif 261 262endif 263 264 265 266########################################################################### 267# --- 129 unchanged lines hidden (view full) --- 397#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map 398COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 399 400#EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive 401EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--no-whole-archive 402LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" 403LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 404 |
405ifneq "$(OO_SDK_URE_HOME)" "" 406URE_MISC=$(OO_SDK_URE_HOME)/share/misc | 405ifneq "$(OFFICE_PROGRAM_PATH)" "" 406URE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc |
407endif 408 409endif 410 411########################################################################### 412# 413# MacOSX/Darwin specific settings 414# --- 70 unchanged lines hidden (view full) --- 485 486SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_sal.dylib' 487CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_cppu.dylib' 488CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper'$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib' 489SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_salhelper$(COMID).dylib' 490REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libreg.dylib' 491STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libstore.dylib' 492 | 407endif 408 409endif 410 411########################################################################### 412# 413# MacOSX/Darwin specific settings 414# --- 70 unchanged lines hidden (view full) --- 485 486SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_sal.dylib' 487CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_cppu.dylib' 488CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper'$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib' 489SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_salhelper$(COMID).dylib' 490REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libreg.dylib' 491STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libstore.dylib' 492 |
493INSTALL_NAME_URELIBS=install_name_tool -change @__________________________________________________URELIB/libuno_sal.dylib.3 @executable_path/urelibs/libuno_sal.dylib.3 -change @__________________________________________________URELIB/libuno_cppu.dylib.3 @executable_path/urelibs/libuno_cppu.dylib.3 -change @__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3 @executable_path/urelibs/libuno_cppuhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3 @executable_path/urelibs/libuno_salhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libreg.dylib.3 @executable_path/urelibs/libreg.dylib.3 -change @__________________________________________________URELIB/libstore.dylib.3 @executable_path/urelibs/libstore.dylib.3 | 493INSTALL_NAME_URELIBS=install_name_tool -change @__________________________________________________URELIB/libuno_sal.dylib.3 @executable_path/libuno_sal.dylib.3 -change @__________________________________________________URELIB/libuno_cppu.dylib.3 @executable_path/libuno_cppu.dylib.3 -change @__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3 @executable_path/libuno_cppuhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3 @executable_path/libuno_salhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libreg.dylib.3 @executable_path/libreg.dylib.3 -change @__________________________________________________URELIB/libstore.dylib.3 @executable_path/libstore.dylib.3 |
494 495INSTALL_NAME_URELIBS_BIN=install_name_tool -change @__________________________________________________URELIB/libuno_sal.dylib.3 libuno_sal.dylib.3 -change @__________________________________________________URELIB/libuno_cppu.dylib.3 libuno_cppu.dylib.3 -change @__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3 libuno_cppuhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3 libuno_salhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libreg.dylib.3 libreg.dylib.3 -change @__________________________________________________URELIB/libstore.dylib.3 libstore.dylib.3 496 497EMPTYSTRING= 498PATH_SEPARATOR=: 499 500CC_FLAGS_JNI=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) 501CC_FLAGS=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) -fvisibility=hidden --- 21 unchanged lines hidden (view full) --- 523#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,-exported_symbols_list $(COMP_MAPFILE) 524COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 525 526EXE_LINK_FLAGS=$(GCC_ARCH_OPTION) -Wl,-multiply_defined,suppress 527LINK_LIBS=-L$(OUT)/lib -L$(OO_SDK_OUT)/$(PLATFORM)/lib -L"$(OO_SDK_URE_LIB_DIR)" 528LINK_JAVA_LIBS=-framework JavaVM 529#LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/Libraries" 530 | 494 495INSTALL_NAME_URELIBS_BIN=install_name_tool -change @__________________________________________________URELIB/libuno_sal.dylib.3 libuno_sal.dylib.3 -change @__________________________________________________URELIB/libuno_cppu.dylib.3 libuno_cppu.dylib.3 -change @__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3 libuno_cppuhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3 libuno_salhelper$(COMID).dylib.3 -change @__________________________________________________URELIB/libreg.dylib.3 libreg.dylib.3 -change @__________________________________________________URELIB/libstore.dylib.3 libstore.dylib.3 496 497EMPTYSTRING= 498PATH_SEPARATOR=: 499 500CC_FLAGS_JNI=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) 501CC_FLAGS=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) -fvisibility=hidden --- 21 unchanged lines hidden (view full) --- 523#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,-exported_symbols_list $(COMP_MAPFILE) 524COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 525 526EXE_LINK_FLAGS=$(GCC_ARCH_OPTION) -Wl,-multiply_defined,suppress 527LINK_LIBS=-L$(OUT)/lib -L$(OO_SDK_OUT)/$(PLATFORM)/lib -L"$(OO_SDK_URE_LIB_DIR)" 528LINK_JAVA_LIBS=-framework JavaVM 529#LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/Libraries" 530 |
531ifneq "$(OO_SDK_URE_HOME)" "" 532URE_MISC=$(OO_SDK_URE_HOME)/share/misc | 531ifneq "$(OFFICE_PROGRAM_PATH)" "" 532URE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc |
533endif 534 535endif 536 537########################################################################### 538# 539# FreeBSD specific settings 540# --- 106 unchanged lines hidden (view full) --- 647#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map 648COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 649 650EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined 651#EXE_LINK_FLAGS+=-Wl,-export-dynamic -Wl,-z,defs 652LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" $(PTHREAD_LIBS) 653LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 654 | 533endif 534 535endif 536 537########################################################################### 538# 539# FreeBSD specific settings 540# --- 106 unchanged lines hidden (view full) --- 647#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map 648COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 649 650EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined 651#EXE_LINK_FLAGS+=-Wl,-export-dynamic -Wl,-z,defs 652LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" $(PTHREAD_LIBS) 653LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 654 |
655ifneq "$(OO_SDK_URE_HOME)" "" 656URE_MISC=$(OO_SDK_URE_HOME)/share/misc 657endif | 655#ifneq "$(OFFICE_PROGRAM_PATH)" "" 656#URE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc 657#endif |
658 659endif 660 661 662# Add OSL_DEBUG_LEVEL to compiler the flags (for OSL_TRACE et. al.) 663ifeq "$(DEBUG)" "yes" 664CC_FLAGS += -DOSL_DEBUG_LEVEL=2 665endif | 658 659endif 660 661 662# Add OSL_DEBUG_LEVEL to compiler the flags (for OSL_TRACE et. al.) 663ifeq "$(DEBUG)" "yes" 664CC_FLAGS += -DOSL_DEBUG_LEVEL=2 665endif |