1122c3632SJürgen Schmidt#************************************************************** 22752044bSAriel Constenla-Haile# 3122c3632SJürgen Schmidt# Licensed to the Apache Software Foundation (ASF) under one 4122c3632SJürgen Schmidt# or more contributor license agreements. See the NOTICE file 5122c3632SJürgen Schmidt# distributed with this work for additional information 6122c3632SJürgen Schmidt# regarding copyright ownership. The ASF licenses this file 7122c3632SJürgen Schmidt# to you under the Apache License, Version 2.0 (the 8122c3632SJürgen Schmidt# "License"); you may not use this file except in compliance 9122c3632SJürgen Schmidt# with the License. You may obtain a copy of the License at 102752044bSAriel Constenla-Haile# 11122c3632SJürgen Schmidt# http://www.apache.org/licenses/LICENSE-2.0 122752044bSAriel Constenla-Haile# 13122c3632SJürgen Schmidt# Unless required by applicable law or agreed to in writing, 14122c3632SJürgen Schmidt# software distributed under the License is distributed on an 15122c3632SJürgen Schmidt# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16122c3632SJürgen Schmidt# KIND, either express or implied. See the License for the 17122c3632SJürgen Schmidt# specific language governing permissions and limitations 18122c3632SJürgen Schmidt# under the License. 192752044bSAriel Constenla-Haile# 20122c3632SJürgen Schmidt#************************************************************** 21122c3632SJürgen Schmidt 22cdf0e10cSrcweir# Global settings file for the minimal build environment of the SDK 23cdf0e10cSrcweir# This file have to updated/extended for other platforms. 24cdf0e10cSrcweir 25cdf0e10cSrcweir# test for the platform 26cdf0e10cSrcweirPLATFORM := $(shell $(PRJ)/config.guess | cut -d"-" -f3,4) 27cdf0e10cSrcweir 28cdf0e10cSrcweir# config.guess is missing for windows. We rely on getting "" in this case. 29cdf0e10cSrcweirifeq "$(PLATFORM)" "" 30cdf0e10cSrcweirPLATFORM = windows 31cdf0e10cSrcweirendif 32cdf0e10cSrcweir 33cdf0e10cSrcweir# debug option, default is no debug 34cdf0e10cSrcweirDEBUG=no 35cdf0e10cSrcweirifeq "$(MAKECMDGOALS)" "debug" 36cdf0e10cSrcweirDEBUG=yes 37cdf0e10cSrcweirendif 38cdf0e10cSrcweir 39cdf0e10cSrcweir########################################################################### 40cdf0e10cSrcweir# 41cdf0e10cSrcweir# Java settings 42cdf0e10cSrcweir# 43cdf0e10cSrcweir########################################################################### 44cdf0e10cSrcweirJAVAC_FLAGS= 45cdf0e10cSrcweir 46cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 47cdf0e10cSrcweirJAVAC_FLAGS+=-g 48cdf0e10cSrcweirendif 49cdf0e10cSrcweir 50cdf0e10cSrcweirJAVABIN=bin 51cdf0e10cSrcweir 52cdf0e10cSrcweir########################################################################### 53cdf0e10cSrcweir# 54cdf0e10cSrcweir# Windows specific settings 55cdf0e10cSrcweir# 56cdf0e10cSrcweir########################################################################### 57cdf0e10cSrcweirifeq "$(PLATFORM)" "windows" 58cdf0e10cSrcweir# Settings for Windows using Microsoft compiler/linker 59cdf0e10cSrcweir 60cdf0e10cSrcweirOS=WIN 61cdf0e10cSrcweirPS=\\ 62cdf0e10cSrcweirICL=$$ 63cdf0e10cSrcweirCC=cl 64cdf0e10cSrcweirLINK=link 65cdf0e10cSrcweirBUILDLIB=lib 66cdf0e10cSrcweirECHO=@echo 67cdf0e10cSrcweirMKDIR=mkdir 68cdf0e10cSrcweirMV=move 69cdf0e10cSrcweirCAT=type 70cdf0e10cSrcweirOBJ_EXT=obj 71cdf0e10cSrcweirEXE_EXT=.exe 72cdf0e10cSrcweirCOPY=copy 73cdf0e10cSrcweirSHAREDLIB_EXT=dll 74cdf0e10cSrcweirSHAREDLIB_OUT=$(OUT_BIN) 75cdf0e10cSrcweirPACKAGE_LIB_DIR=windows.plt 76cdf0e10cSrcweirUNOPKG_PLATFORM=Windows 77cdf0e10cSrcweir 78cdf0e10cSrcweirOSEP=^< 79cdf0e10cSrcweirCSEP=^> 80cdf0e10cSrcweirQUOTE= 81cdf0e10cSrcweirQM= 82cdf0e10cSrcweirSQM= 83cdf0e10cSrcweirECHOLINE=@echo. 84cdf0e10cSrcweirP2BG= 85cdf0e10cSrcweir 86cdf0e10cSrcweirDEL=del 87cdf0e10cSrcweirDELRECURSIVE=rd /S /Q 88cdf0e10cSrcweirURLPREFIX=file:/// 89cdf0e10cSrcweir 90cdf0e10cSrcweirSALLIB=isal.lib 91cdf0e10cSrcweirCPPULIB=icppu.lib 92cdf0e10cSrcweirCPPUHELPERLIB=icppuhelper.lib 93cdf0e10cSrcweirSALHELPERLIB=isalhelper.lib 94cdf0e10cSrcweirREGLIB=ireg.lib 95cdf0e10cSrcweirSTORELIB=istore.lib 96cdf0e10cSrcweirSTLPORTLIB=stlport_vc71$(STLDEBUG).lib 97cdf0e10cSrcweir 98cdf0e10cSrcweirBLANK= 99cdf0e10cSrcweirEMPTYSTRING= 100cdf0e10cSrcweirPATH_SEPARATOR=; 101cdf0e10cSrcweir 102cdf0e10cSrcweir# use this for release version 103cdf0e10cSrcweirCC_FLAGS_JNI=-c -MT -Zm500 -Zc:forScope,wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -Zc:forScope -GR -EHa 104cdf0e10cSrcweirCC_FLAGS=-c -MT -Zm500 -Zc:forScope,wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -Zc:forScope -GR -EHa 105cdf0e10cSrcweirifeq "$(CPP_MANIFEST)" "true" 106cdf0e10cSrcweir#CC_FLAGS+=-EHa -Zc:wchar_t- 107cdf0e10cSrcweirLINK_MANIFEST=mt -manifest $@.manifest "-outputresource:$@;2" 108cdf0e10cSrcweirelse 109cdf0e10cSrcweir#CC_FLAGS+= 110cdf0e10cSrcweirLINK_MANIFEST= 111cdf0e10cSrcweirendif 112cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 113cdf0e10cSrcweirCC_FLAGS_JNI+=-Zi 114cdf0e10cSrcweirCC_FLAGS+=-Zi 115cdf0e10cSrcweirendif 116cdf0e10cSrcweir 117cdf0e10cSrcweirCC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include 118cdf0e10cSrcweirSTL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl" 119cdf0e10cSrcweirSDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/win32" 120cdf0e10cSrcweir 121cdf0e10cSrcweir# define for used compiler necessary for UNO 122cdf0e10cSrcweir# -DCPPU_ENV=msci -- windows msvc 4.x - 7.x 123cdf0e10cSrcweir 124cdf0e10cSrcweirCC_DEFINES_JNI=-DWIN32 -DWNT -D_DLL -DCPPU_ENV=msci 125cdf0e10cSrcweirCC_DEFINES=-DWIN32 -DWNT -D_DLL -DCPPU_ENV=msci 126cdf0e10cSrcweirCC_OUTPUT_SWITCH=-Fo 127cdf0e10cSrcweir 128cdf0e10cSrcweirLIBRARY_LINK_FLAGS=/NODEFAULTLIB /DLL /DEBUGTYPE:cv 129cdf0e10cSrcweirCOMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) /DEF:$(PRJ)/settings/component.uno.def 130cdf0e10cSrcweirEXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1b000000 /DEBUGTYPE:cv /NODEFAULTLIB msvcrt.lib kernel32.lib 131cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 132cdf0e10cSrcweirLIBRARY_LINK_FLAGS+=/DEBUG 133cdf0e10cSrcweirEXE_LINK_FLAGS+=/DEBUG 134cdf0e10cSrcweirendif 135cdf0e10cSrcweir 136cdf0e10cSrcweirLINK_JAVA_LIBS=/LIBPATH:"$(OO_SDK_JAVA_HOME)/lib" 137cdf0e10cSrcweir 138*b3ba5bc7SJürgen Schmidt#ifneq "$(OFFICE_PROGRAM_PATH)" "" 139*b3ba5bc7SJürgen Schmidt#URE_MISC=$(OFFICE_PROGRAM_PATH)\misc 140*b3ba5bc7SJürgen Schmidt#endif 141cdf0e10cSrcweir 142cdf0e10cSrcweir# use this for release version 143cdf0e10cSrcweir#EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1100000 144cdf0e10cSrcweir#LIBRARY_LINK_FLAGS=/NODEFAULTLIB /DLL 145cdf0e10cSrcweirendif 146cdf0e10cSrcweir 147cdf0e10cSrcweir 148cdf0e10cSrcweir 149cdf0e10cSrcweir########################################################################### 150cdf0e10cSrcweir# 151cdf0e10cSrcweir# Solaris specific settings 152cdf0e10cSrcweir# 153cdf0e10cSrcweir########################################################################### 154cdf0e10cSrcweirifneq (,$(findstring solaris,$(PLATFORM))) 155cdf0e10cSrcweir# Settings for Solaris using Sun Workshop compiler 156cdf0e10cSrcweir 157*b3ba5bc7SJürgen SchmidtPROCTYPE := $(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) 158cdf0e10cSrcweir 159cdf0e10cSrcweirifeq "$(PROCTYPE)" "sparc" 160cdf0e10cSrcweirPLATFORM=solsparc 161cdf0e10cSrcweirPACKAGE_LIB_DIR=solaris_sparc.plt 162cdf0e10cSrcweirUNOPKG_PLATFORM=Solaris_SPARC 163cdf0e10cSrcweirJAVA_PROC_TYPE=sparc 164cdf0e10cSrcweirelse 165cdf0e10cSrcweirifeq "$(PROCTYPE)" "sparc64" 166cdf0e10cSrcweirPLATFORM=solsparc 167cdf0e10cSrcweirPACKAGE_LIB_DIR=solaris_sparc64.plt 168cdf0e10cSrcweirUNOPKG_PLATFORM=Solaris_SPARC64 169cdf0e10cSrcweirJAVA_PROC_TYPE=sparcv9 170cdf0e10cSrcweirelse 171cdf0e10cSrcweirPLATFORM=solintel 172cdf0e10cSrcweirPACKAGE_LIB_DIR=solaris_x86.plt 173cdf0e10cSrcweirUNOPKG_PLATFORM=Solaris_x86 174cdf0e10cSrcweirJAVA_PROC_TYPE=i386 175cdf0e10cSrcweirendif 176cdf0e10cSrcweirendif 177cdf0e10cSrcweir 178cdf0e10cSrcweirOS=SOLARIS 179cdf0e10cSrcweirPS=/ 180cdf0e10cSrcweirICL=\$$ 181cdf0e10cSrcweirCC=CC 182cdf0e10cSrcweirLINK=CC 183cdf0e10cSrcweirLIB=CC 184cdf0e10cSrcweirECHO=@echo 185cdf0e10cSrcweirMKDIR=mkdir -p 186cdf0e10cSrcweirCAT=cat 187cdf0e10cSrcweirOBJ_EXT=o 188cdf0e10cSrcweirSHAREDLIB_EXT=so 189cdf0e10cSrcweirSHAREDLIB_PRE=lib 190cdf0e10cSrcweirSHAREDLIB_OUT=$(OUT_LIB) 191cdf0e10cSrcweir 192cdf0e10cSrcweirOSEP=\< 193cdf0e10cSrcweirCSEP=\> 194cdf0e10cSrcweirQUOTE=$(subst S,\,S) 195cdf0e10cSrcweirQM=\" 196cdf0e10cSrcweirSQM=' 197cdf0e10cSrcweirECHOLINE=@echo 198cdf0e10cSrcweirP2BG=& 199cdf0e10cSrcweir 200cdf0e10cSrcweirDEL=rm -f 201cdf0e10cSrcweirDELRECURSIVE=rm -rf 202cdf0e10cSrcweirCOPY=cp 203cdf0e10cSrcweirURLPREFIX=file:// 204cdf0e10cSrcweir 205cdf0e10cSrcweir# Include UDK version numbers 206cdf0e10cSrcweirinclude $(PRJ)/include/udkversion.mk 207cdf0e10cSrcweir 208cdf0e10cSrcweirSALLIB=-luno_sal 209cdf0e10cSrcweirCPPULIB=-luno_cppu 210cdf0e10cSrcweirCPPUHELPERLIB=-luno_cppuhelperC52 211cdf0e10cSrcweirSALHELPERLIB=-luno_salhelperC52 212cdf0e10cSrcweirREGLIB=-lreg 213cdf0e10cSrcweirSTORELIB=-lstore 214cdf0e10cSrcweirifeq "$(PROCTYPE)" "sparc64" 215cdf0e10cSrcweirSTLPORTLIB=-library=stlport4 216cdf0e10cSrcweirelse 217cdf0e10cSrcweirSTLPORTLIB=-lstlport_sunpro$(STLDEBUG) 218cdf0e10cSrcweirendif 219cdf0e10cSrcweir 220cdf0e10cSrcweirEMPTYSTRING= 221cdf0e10cSrcweirPATH_SEPARATOR=: 222cdf0e10cSrcweir 223cdf0e10cSrcweirCC_FLAGS_JNI=-c -KPIC 224cdf0e10cSrcweirCC_FLAGS=-c -KPIC -xldscope=hidden 225cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 226cdf0e10cSrcweirCC_FLAGS_JNI+=-g 227cdf0e10cSrcweirCC_FLAGS+=-g 228cdf0e10cSrcweirendif 229cdf0e10cSrcweirCC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include 230cdf0e10cSrcweirSTL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl" 231cdf0e10cSrcweirSDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/solaris" 232cdf0e10cSrcweir 233cdf0e10cSrcweir# define for used compiler necessary for UNO 234cdf0e10cSrcweir# -DCPPU_ENV=sunpro5 -- sunpro cc 5.x solaris sparc/intel 235cdf0e10cSrcweir 236cdf0e10cSrcweirCC_DEFINES_JNI=-DUNX -DSOLARIS -DCPPU_ENV=sunpro5 237cdf0e10cSrcweirCC_DEFINES=-DUNX -DSOLARIS -DSPARC -DCPPU_ENV=sunpro5 -DHAVE_GCC_VISIBILITY_FEATURE 238cdf0e10cSrcweirCC_OUTPUT_SWITCH=-o 239cdf0e10cSrcweir 240cdf0e10cSrcweirLIBRARY_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp '-R$$ORIGIN' -z text -norunpath -G -Bdirect -Bdynamic -lpthread -lCrun -lc -lm 241cdf0e10cSrcweir# means if used CC is lower then version 5.5 use option -instance=static 242cdf0e10cSrcweirifeq ($(OO_SDK_CC_55_OR_HIGHER),) 243cdf0e10cSrcweirLIBRARY_LINK_FLAGS+=-instances=static 244cdf0e10cSrcweirendif 245cdf0e10cSrcweir#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -M $(PRJ)/settings/component.uno.map 246cdf0e10cSrcweirCOMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 247cdf0e10cSrcweir 248cdf0e10cSrcweirEXE_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp -norunpath -Bdirect -z defs 249cdf0e10cSrcweirLINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" 250cdf0e10cSrcweirLINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 251cdf0e10cSrcweir 252cdf0e10cSrcweirifeq "$(PROCTYPE)" "sparc64" 253cdf0e10cSrcweirCC_FLAGS+=-m64 254cdf0e10cSrcweirLIBRARY_LINK_FLAGS+=-m64 255cdf0e10cSrcweirEXE_LINK_FLAGS+=-m64 256cdf0e10cSrcweirendif 257cdf0e10cSrcweir 258*b3ba5bc7SJürgen Schmidtifneq "$(OFFICE_PROGRAM_PATH)" "" 259*b3ba5bc7SJürgen SchmidtURE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc 260cdf0e10cSrcweirendif 261cdf0e10cSrcweir 262cdf0e10cSrcweirendif 263cdf0e10cSrcweir 264cdf0e10cSrcweir 265cdf0e10cSrcweir 266cdf0e10cSrcweir########################################################################### 267cdf0e10cSrcweir# 268cdf0e10cSrcweir# Linux specific settings 269cdf0e10cSrcweir# 270cdf0e10cSrcweir########################################################################### 271cdf0e10cSrcweirifneq (,$(findstring linux,$(PLATFORM))) 272cdf0e10cSrcweir# Settings for Linux using gcc compiler 273cdf0e10cSrcweir 274cdf0e10cSrcweirPROCTYPE := $(shell $(PRJ)/config.guess | cut -d "-" -f1 | sed -e 's/^i.86$$/i386/') 275cdf0e10cSrcweirPLATFORM=linux 276cdf0e10cSrcweir 277cdf0e10cSrcweirPACKAGE_LIB_DIR=linux_$(PROCTYPE).plt 278cdf0e10cSrcweirUNOPKG_PLATFORM=Linux_$(PROCTYPE) 279cdf0e10cSrcweirJAVA_PROC_TYPE=$(PROCTYPE) 280cdf0e10cSrcweirSTLPORT=no 281cdf0e10cSrcweir 282cdf0e10cSrcweirifeq "$(PROCTYPE)" "i386" 283cdf0e10cSrcweirPACKAGE_LIB_DIR=linux_x86.plt 284cdf0e10cSrcweirUNOPKG_PLATFORM=Linux_x86 285cdf0e10cSrcweirJAVA_PROC_TYPE=i386 286cdf0e10cSrcweirSTLPORT=yes 287cdf0e10cSrcweirendif 288cdf0e10cSrcweir 289cdf0e10cSrcweirifeq "$(PROCTYPE)" "powerpc" 290cdf0e10cSrcweirPACKAGE_LIB_DIR=linux_powerpc.plt 291cdf0e10cSrcweirUNOPKG_PLATFORM=Linux_PowerPC 292cdf0e10cSrcweirJAVA_PROC_TYPE=ppc 293cdf0e10cSrcweirSTLPORT=yes 294cdf0e10cSrcweirendif 295cdf0e10cSrcweir 296cdf0e10cSrcweirifeq "$(PROCTYPE)" "sparc" 297cdf0e10cSrcweirPACKAGE_LIB_DIR=linux_sparc.plt 298cdf0e10cSrcweirUNOPKG_PLATFORM=Linux_SPARC 299cdf0e10cSrcweirJAVA_PROC_TYPE=sparc 300cdf0e10cSrcweirSTLPORT=yes 301cdf0e10cSrcweirendif 302cdf0e10cSrcweir 303cdf0e10cSrcweirifeq "$(PROCTYPE)" "x86_64" 304cdf0e10cSrcweirJAVA_PROC_TYPE=amd64 305cdf0e10cSrcweirendif 306cdf0e10cSrcweir 307cdf0e10cSrcweirifeq "$(PROCTYPE)" "powerpc64" 308cdf0e10cSrcweirJAVA_PROC_TYPE=ppc64 309cdf0e10cSrcweirendif 310cdf0e10cSrcweir 311cdf0e10cSrcweirOS=LINUX 312cdf0e10cSrcweirPS=/ 313cdf0e10cSrcweirICL=\$$ 314cdf0e10cSrcweirCC=gcc 315cdf0e10cSrcweirLINK=g++ 316cdf0e10cSrcweirLIB=g++ 317cdf0e10cSrcweirECHO=@echo 318cdf0e10cSrcweirMKDIR=mkdir -p 319cdf0e10cSrcweirCAT=cat 320cdf0e10cSrcweirOBJ_EXT=o 321cdf0e10cSrcweirSHAREDLIB_EXT=so 322cdf0e10cSrcweirSHAREDLIB_PRE=lib 323cdf0e10cSrcweirSHAREDLIB_OUT=$(OUT_LIB) 324cdf0e10cSrcweir 325cdf0e10cSrcweirGCC_VERSION=$(shell $(CC) -dumpversion) 326cdf0e10cSrcweir 327cdf0e10cSrcweirCOMID=gcc3 328cdf0e10cSrcweirCPPU_ENV=gcc3 329cdf0e10cSrcweir 330cdf0e10cSrcweirOSEP=\< 331cdf0e10cSrcweirCSEP=\> 332cdf0e10cSrcweirQUOTE=$(subst S,\,S) 333cdf0e10cSrcweirQM=\" 334cdf0e10cSrcweirSQM=' 335cdf0e10cSrcweirECHOLINE=@echo 336cdf0e10cSrcweirP2BG=& 337cdf0e10cSrcweir 338cdf0e10cSrcweirDEL=rm -f 339cdf0e10cSrcweirDELRECURSIVE=rm -rf 340cdf0e10cSrcweirCOPY=cp 341cdf0e10cSrcweirURLPREFIX=file:// 342cdf0e10cSrcweir 343cdf0e10cSrcweir# Include UDK version numbers 344cdf0e10cSrcweirinclude $(PRJ)/include/udkversion.mk 345cdf0e10cSrcweir 346cdf0e10cSrcweirSALLIB=-luno_sal 347cdf0e10cSrcweirCPPULIB=-luno_cppu 348cdf0e10cSrcweirCPPUHELPERLIB=-luno_cppuhelper$(COMID) 349cdf0e10cSrcweirSALHELPERLIB=-luno_salhelper$(COMID) 350cdf0e10cSrcweirREGLIB=-lreg 351cdf0e10cSrcweirSTORELIB=-lstore 352cdf0e10cSrcweirifeq "$(STLPORT)" "yes" 353cdf0e10cSrcweirifeq "$(STLPORT_VER)" "500" 354cdf0e10cSrcweirSTLPORTLIB=-lstlport 355cdf0e10cSrcweirelse 356cdf0e10cSrcweirSTLPORTLIB=-lstlport_gcc$(STLDEBUG) 357cdf0e10cSrcweirendif 358cdf0e10cSrcweirelse 359cdf0e10cSrcweirSTLPORTLIB= 360cdf0e10cSrcweirendif 361cdf0e10cSrcweir 362cdf0e10cSrcweirEMPTYSTRING= 363cdf0e10cSrcweirPATH_SEPARATOR=: 364cdf0e10cSrcweir 365cdf0e10cSrcweirCC_FLAGS_JNI=-c -fpic 366cdf0e10cSrcweirCC_FLAGS=-c -fpic -fvisibility=hidden 367cdf0e10cSrcweir# -O is necessary for inlining (see gcc documentation) 368cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 369cdf0e10cSrcweirCC_FLAGS_JNI+=-g 370cdf0e10cSrcweirCC_FLAGS+=-g 371cdf0e10cSrcweirelse 372cdf0e10cSrcweirCC_FLAGS_JNI+=-O 373cdf0e10cSrcweirCC_FLAGS+=-O 374cdf0e10cSrcweirendif 375cdf0e10cSrcweir 376cdf0e10cSrcweirifeq "$(PROCTYPE)" "ppc" 377cdf0e10cSrcweirCC_FLAGS+=-fPIC 378cdf0e10cSrcweirendif 379cdf0e10cSrcweir 380cdf0e10cSrcweirSDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/linux" 381cdf0e10cSrcweirCC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include 382cdf0e10cSrcweirSTL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl" 383cdf0e10cSrcweirCC_DEFINES_JNI=-DUNX -DGCC -DLINUX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) 384cdf0e10cSrcweirCC_DEFINES=-DUNX -DGCC -DLINUX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) -DHAVE_GCC_VISIBILITY_FEATURE 385cdf0e10cSrcweir 386cdf0e10cSrcweir# define for used compiler necessary for UNO 387cdf0e10cSrcweir#-DCPPU_ENV=gcc2 -- gcc 2.91/2.95 388cdf0e10cSrcweir#-DCPPU_ENV=gcc3 -- gcc3 3.0 389cdf0e10cSrcweir 390cdf0e10cSrcweirCC_OUTPUT_SWITCH=-o 391cdf0e10cSrcweir 392cdf0e10cSrcweirLIBRARY_LINK_FLAGS=-shared '-Wl,-rpath,$$ORIGIN' 393cdf0e10cSrcweir 394cdf0e10cSrcweirifeq "$(PROCTYPE)" "ppc" 395cdf0e10cSrcweirLIBRARY_LINK_FLAGS+=-fPIC 396cdf0e10cSrcweirendif 397cdf0e10cSrcweir#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map 398cdf0e10cSrcweirCOMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 399cdf0e10cSrcweir 400cdf0e10cSrcweir#EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive 401cdf0e10cSrcweirEXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--no-whole-archive 402cdf0e10cSrcweirLINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" 403cdf0e10cSrcweirLINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 404cdf0e10cSrcweir 405*b3ba5bc7SJürgen Schmidtifneq "$(OFFICE_PROGRAM_PATH)" "" 406*b3ba5bc7SJürgen SchmidtURE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc 407cdf0e10cSrcweirendif 408cdf0e10cSrcweir 409cdf0e10cSrcweirendif 410cdf0e10cSrcweir 411cdf0e10cSrcweir########################################################################### 412cdf0e10cSrcweir# 413cdf0e10cSrcweir# MacOSX/Darwin specific settings 414cdf0e10cSrcweir# 415cdf0e10cSrcweir########################################################################### 416cdf0e10cSrcweirifneq (,$(findstring darwin,$(PLATFORM))) 417cdf0e10cSrcweir# Settings for MacOSX using gcc 4.0.1 compiler 418cdf0e10cSrcweir 419cdf0e10cSrcweirPROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1) 420cdf0e10cSrcweir 421cdf0e10cSrcweir# Default is MacOSX on a Intel machine 422cdf0e10cSrcweirPLATFORM=macosx 423cdf0e10cSrcweir 424cdf0e10cSrcweirifeq "$(PROCTYPE)" "i386" 425cdf0e10cSrcweirPACKAGE_LIB_DIR=macosx_x86.plt 426cdf0e10cSrcweirUNOPKG_PLATFORM=MacOSX_x86 427cdf0e10cSrcweirJAVA_PROC_TYPE=x86 428cdf0e10cSrcweirelse 429cdf0e10cSrcweirifeq "$(PROCTYPE)" "x86_64" 430cdf0e10cSrcweirPACKAGE_LIB_DIR=macosx_x86.plt 431cdf0e10cSrcweirUNOPKG_PLATFORM=MacOSX_x86 432cdf0e10cSrcweirJAVA_PROC_TYPE=x86 433cdf0e10cSrcweirelse 434cdf0e10cSrcweirPACKAGE_LIB_DIR=macosx_ppc.plt 435cdf0e10cSrcweirUNOPKG_PLATFORM=MacOSX_PowerPC 436cdf0e10cSrcweirJAVA_PROC_TYPE=ppc 437cdf0e10cSrcweirendif 438cdf0e10cSrcweirendif 439cdf0e10cSrcweirJAVABIN=Commands 440cdf0e10cSrcweir 441cdf0e10cSrcweirGCC_VERSION =$(shell gcc -dumpversion| cut -d"." -f1,2) 442cdf0e10cSrcweirifeq "$(GCC_VERSION)" "4.2" 443cdf0e10cSrcweirGCC_ARCH_OPTION=-arch i386 444cdf0e10cSrcweirendif 445cdf0e10cSrcweir 446cdf0e10cSrcweirOS=MACOSX 447cdf0e10cSrcweirPS=/ 448cdf0e10cSrcweirICL=\$$ 449cdf0e10cSrcweirCC=gcc-$(GCC_VERSION) 450cdf0e10cSrcweirLINK=g++-$(GCC_VERSION) 451cdf0e10cSrcweirLIB=g++-$(GCC_VERSION) 452cdf0e10cSrcweirECHO=@echo 453cdf0e10cSrcweirMKDIR=mkdir -p 454cdf0e10cSrcweirCAT=cat 455cdf0e10cSrcweirOBJ_EXT=o 456cdf0e10cSrcweirSHAREDLIB_EXT=dylib 457cdf0e10cSrcweirSHAREDLIB_PRE=lib 458cdf0e10cSrcweirSHAREDLIB_OUT=$(OUT_LIB) 459cdf0e10cSrcweir 460cdf0e10cSrcweirCOMID=gcc3 461cdf0e10cSrcweirCPPU_ENV=gcc3 462cdf0e10cSrcweir 463cdf0e10cSrcweirOSEP=\< 464cdf0e10cSrcweirCSEP=\> 465cdf0e10cSrcweirQUOTE=$(subst S,\,S) 466cdf0e10cSrcweirQM=\" 467cdf0e10cSrcweirSQM=' 468cdf0e10cSrcweirECHOLINE=@echo 469cdf0e10cSrcweirP2BG=& 470cdf0e10cSrcweir 471cdf0e10cSrcweirDEL=rm -f 472cdf0e10cSrcweirDELRECURSIVE=rm -rf 473cdf0e10cSrcweirCOPY=cp 474cdf0e10cSrcweirURLPREFIX=file:// 475cdf0e10cSrcweir 476cdf0e10cSrcweir# Include UDK version numbers 477cdf0e10cSrcweirinclude $(PRJ)/include/udkversion.mk 478cdf0e10cSrcweir 479cdf0e10cSrcweirSALLIB=-luno_sal 480cdf0e10cSrcweirCPPULIB=-luno_cppu 481cdf0e10cSrcweirCPPUHELPERLIB=-luno_cppuhelper$(COMID) 482cdf0e10cSrcweirSALHELPERLIB=-luno_salhelper$(COMID) 483cdf0e10cSrcweirREGLIB=-lreg 484cdf0e10cSrcweirSTORELIB=-lstore 485cdf0e10cSrcweir 486cdf0e10cSrcweirSALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_sal.dylib' 487cdf0e10cSrcweirCPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_cppu.dylib' 488cdf0e10cSrcweirCPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper'$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib' 489cdf0e10cSrcweirSALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:'$(OO_SDK_URE_LIB_DIR)/libuno_salhelper$(COMID).dylib' 490cdf0e10cSrcweirREGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libreg.dylib' 491cdf0e10cSrcweirSTOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:'$(OO_SDK_URE_LIB_DIR)/libstore.dylib' 492cdf0e10cSrcweir 493*b3ba5bc7SJürgen SchmidtINSTALL_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 494cdf0e10cSrcweir 495cdf0e10cSrcweirINSTALL_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 496cdf0e10cSrcweir 497cdf0e10cSrcweirEMPTYSTRING= 498cdf0e10cSrcweirPATH_SEPARATOR=: 499cdf0e10cSrcweir 500cdf0e10cSrcweirCC_FLAGS_JNI=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) 501cdf0e10cSrcweirCC_FLAGS=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) -fvisibility=hidden 502cdf0e10cSrcweir# -O is necessary for inlining (see gcc documentation) 503cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 504cdf0e10cSrcweirCC_FLAGS_JNI+=-g 505cdf0e10cSrcweirCC_FLAGS+=-g 506cdf0e10cSrcweirelse 507cdf0e10cSrcweirCC_FLAGS_JNI+=-O 508cdf0e10cSrcweirCC_FLAGS+=-O 509cdf0e10cSrcweirendif 510cdf0e10cSrcweir 511cdf0e10cSrcweirSDK_JAVA_INCLUDES = -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers 512cdf0e10cSrcweirCC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include 513cdf0e10cSrcweirSTL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl" 514cdf0e10cSrcweirCC_DEFINES_JNI=-DUNX -DGCC -DMACOSX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) 515cdf0e10cSrcweirCC_DEFINES=-DUNX -DGCC -DMACOSX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) -DHAVE_GCC_VISIBILITY_FEATURE 516cdf0e10cSrcweir 517cdf0e10cSrcweirCC_OUTPUT_SWITCH=-o 518cdf0e10cSrcweir 519cdf0e10cSrcweirLIBRARY_LINK_FLAGS=-dynamiclib -single_module -Wl,-multiply_defined,suppress $(GCC_ARCH_OPTION) 520cdf0e10cSrcweir#-fPIC -fno-common 521cdf0e10cSrcweir 522cdf0e10cSrcweir# install_name '@executable_path$/(@:f)' 523cdf0e10cSrcweir#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,-exported_symbols_list $(COMP_MAPFILE) 524cdf0e10cSrcweirCOMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 525cdf0e10cSrcweir 526cdf0e10cSrcweirEXE_LINK_FLAGS=$(GCC_ARCH_OPTION) -Wl,-multiply_defined,suppress 527cdf0e10cSrcweirLINK_LIBS=-L$(OUT)/lib -L$(OO_SDK_OUT)/$(PLATFORM)/lib -L"$(OO_SDK_URE_LIB_DIR)" 528cdf0e10cSrcweirLINK_JAVA_LIBS=-framework JavaVM 529cdf0e10cSrcweir#LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/Libraries" 530cdf0e10cSrcweir 531*b3ba5bc7SJürgen Schmidtifneq "$(OFFICE_PROGRAM_PATH)" "" 532*b3ba5bc7SJürgen SchmidtURE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc 533cdf0e10cSrcweirendif 534cdf0e10cSrcweir 535cdf0e10cSrcweirendif 536cdf0e10cSrcweir 537cdf0e10cSrcweir########################################################################### 538cdf0e10cSrcweir# 539cdf0e10cSrcweir# FreeBSD specific settings 540cdf0e10cSrcweir# 541cdf0e10cSrcweir########################################################################### 542cdf0e10cSrcweirifneq (,$(findstring freebsd,$(PLATFORM))) 543cdf0e10cSrcweir# Settings for FreeBSD using gcc compiler 544cdf0e10cSrcweir 545cdf0e10cSrcweirPROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1) 546cdf0e10cSrcweir 547cdf0e10cSrcweirifeq (kfreebsd,$(findstring kfreebsd,$(PLATFORM))) 548cdf0e10cSrcweirPLATFORM=kfreebsd 549cdf0e10cSrcweirifeq "$(PROCTYPE)" "x86_64" 550cdf0e10cSrcweirPACKAGE_LIB_DIR=kfreebsd_x86_64.plt 551cdf0e10cSrcweirUNOPKG_PLATFORM=kFreeBSD_x86_64 552cdf0e10cSrcweirelse 553cdf0e10cSrcweirPACKAGE_LIB_DIR=kfreebsd_x86.plt 554cdf0e10cSrcweirUNOPKG_PLATFORM=kFreeBSD_x86 555cdf0e10cSrcweirendif 556cdf0e10cSrcweirelse 557cdf0e10cSrcweirPLATFORM=freebsd 558cdf0e10cSrcweirifeq "$(PROCTYPE)" "x86_64" 559cdf0e10cSrcweirPACKAGE_LIB_DIR=freebsd_x86_64.plt 560cdf0e10cSrcweirUNOPKG_PLATFORM=FreeBSD_x86_64 561cdf0e10cSrcweirelse 562cdf0e10cSrcweirPACKAGE_LIB_DIR=freebsd_x86.plt 563cdf0e10cSrcweirUNOPKG_PLATFORM=FreeBSD_x86 564cdf0e10cSrcweirendif 565cdf0e10cSrcweirendif 566cdf0e10cSrcweir 567cdf0e10cSrcweirifeq "$(PROCTYPE)" "x86_64" 568cdf0e10cSrcweirJAVA_PROC_TYPE=amd64 569cdf0e10cSrcweirelse 570cdf0e10cSrcweirJAVA_PROC_TYPE=i386 571cdf0e10cSrcweirendif 572cdf0e10cSrcweir 573cdf0e10cSrcweirifeq (kfreebsd,$(findstring kfreebsd,$(PLATFORM))) 574cdf0e10cSrcweirOS=LINUX 575cdf0e10cSrcweirelse 576cdf0e10cSrcweirOS=FREEBSD 577cdf0e10cSrcweirendif 578cdf0e10cSrcweirPS=/ 579cdf0e10cSrcweirICL=\$$ 580cdf0e10cSrcweirCC=gcc 581cdf0e10cSrcweirLINK=g++ 582cdf0e10cSrcweirLIB=g++ 583cdf0e10cSrcweirECHO=@echo 584cdf0e10cSrcweirMKDIR=mkdir -p 585cdf0e10cSrcweirCAT=cat 586cdf0e10cSrcweirOBJ_EXT=o 587cdf0e10cSrcweirSHAREDLIB_EXT=so 588cdf0e10cSrcweirSHAREDLIB_PRE=lib 589cdf0e10cSrcweirSHAREDLIB_OUT=$(OUT_LIB) 590cdf0e10cSrcweir 591cdf0e10cSrcweirGCC_VERSION=$(shell $(CC) -dumpversion) 592cdf0e10cSrcweir 593cdf0e10cSrcweirCOMID=gcc3 594cdf0e10cSrcweirCPPU_ENV=gcc3 595cdf0e10cSrcweir 596cdf0e10cSrcweirOSEP=\< 597cdf0e10cSrcweirCSEP=\> 598cdf0e10cSrcweirQUOTE=$(subst S,\,S) 599cdf0e10cSrcweirQM=\" 600cdf0e10cSrcweirSQM=' 601cdf0e10cSrcweirECHOLINE=@echo 602cdf0e10cSrcweirP2BG=& 603cdf0e10cSrcweir 604cdf0e10cSrcweirDEL=rm -f 605cdf0e10cSrcweirDELRECURSIVE=rm -rf 606cdf0e10cSrcweirCOPY=cp 607cdf0e10cSrcweirURLPREFIX=file:// 608cdf0e10cSrcweir 609cdf0e10cSrcweir# Include UDK version numbers 610cdf0e10cSrcweirinclude $(PRJ)/include/udkversion.mk 611cdf0e10cSrcweir 612cdf0e10cSrcweirSALLIB=-luno_sal 613cdf0e10cSrcweirCPPULIB=-luno_cppu 614cdf0e10cSrcweirCPPUHELPERLIB=-luno_cppuhelper$(COMID) 615cdf0e10cSrcweirSALHELPERLIB=-luno_salhelper$(COMID) 616cdf0e10cSrcweirREGLIB=-lreg 617cdf0e10cSrcweirSTORELIB=-lstore 618cdf0e10cSrcweirifeq "$(STLPORT_VER)" "500" 619cdf0e10cSrcweirSTLPORTLIB=-lstlport 620cdf0e10cSrcweirelse 621cdf0e10cSrcweirSTLPORTLIB=-lstlport_gcc$(STLDEBUG) 622cdf0e10cSrcweirendif 623cdf0e10cSrcweir 624cdf0e10cSrcweirEMPTYSTRING= 625cdf0e10cSrcweirPATH_SEPARATOR=: 626cdf0e10cSrcweir 627cdf0e10cSrcweirCC_FLAGS_JNI=-c -g -fPIC -DPIC $(PTHREAD_CFLAGS) 628cdf0e10cSrcweirCC_FLAGS=-c -g -fPIC -DPIC $(PTHREAD_CFLAGS) -fvisibility=hidden 629cdf0e10cSrcweir# -O is necessary for inlining (see gcc documentation) 630cdf0e10cSrcweirifeq "$(DEBUG)" "yes" 631cdf0e10cSrcweirCC_FLAGS_JNI+=-g 632cdf0e10cSrcweirCC_FLAGS+=-g 633cdf0e10cSrcweirelse 634cdf0e10cSrcweirCC_FLAGS_JNI+=-O 635cdf0e10cSrcweirCC_FLAGS+=-O 636cdf0e10cSrcweirendif 637cdf0e10cSrcweir 638cdf0e10cSrcweirSDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/freebsd" 639cdf0e10cSrcweirCC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include 640cdf0e10cSrcweirSTL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl" 641cdf0e10cSrcweirCC_DEFINES_JNI=-DUNX -DGCC -DFREEBSD -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) 642cdf0e10cSrcweirCC_DEFINES=-DUNX -DGCC -DFREEBSD -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH) -DHAVE_GCC_VISIBILITY_FEATURE 643cdf0e10cSrcweir 644cdf0e10cSrcweirCC_OUTPUT_SWITCH=-o 645cdf0e10cSrcweir 646cdf0e10cSrcweirLIBRARY_LINK_FLAGS=-shared '-Wl,-rpath,$$ORIGIN' 647cdf0e10cSrcweir#COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map 648cdf0e10cSrcweirCOMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) 649cdf0e10cSrcweir 650cdf0e10cSrcweirEXE_LINK_FLAGS=-Wl,--allow-shlib-undefined 651cdf0e10cSrcweir#EXE_LINK_FLAGS+=-Wl,-export-dynamic -Wl,-z,defs 652cdf0e10cSrcweirLINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" $(PTHREAD_LIBS) 653cdf0e10cSrcweirLINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)" 654cdf0e10cSrcweir 655*b3ba5bc7SJürgen Schmidt#ifneq "$(OFFICE_PROGRAM_PATH)" "" 656*b3ba5bc7SJürgen Schmidt#URE_MISC=$(OFFICE_PROGRAM_PATH)/share/misc 657*b3ba5bc7SJürgen Schmidt#endif 658cdf0e10cSrcweir 659cdf0e10cSrcweirendif 6602752044bSAriel Constenla-Haile 6612752044bSAriel Constenla-Haile 6622752044bSAriel Constenla-Haile# Add OSL_DEBUG_LEVEL to compiler the flags (for OSL_TRACE et. al.) 6632752044bSAriel Constenla-Haileifeq "$(DEBUG)" "yes" 6642752044bSAriel Constenla-HaileCC_FLAGS += -DOSL_DEBUG_LEVEL=2 6652752044bSAriel Constenla-Haileendif 666