merge the formfield patch from ooo-build
[ooovba.git] / odk / settings / settings.mk
blob7f6d408592f45fc0314241bff0a7eb29bf8c287a
1 # Global settings file for the minimal build environment of the SDK
2 # This file have to updated/extended for other platforms.
4 # test for the platform
5 PLATFORM := $(shell $(PRJ)/config.guess | cut -d"-" -f3,4)
7 # config.guess is missing for windows. We rely on getting "" in this case.
8 ifeq "$(PLATFORM)" ""
9 PLATFORM = windows
10 endif
12 # debug option, default is no debug
13 DEBUG=no
14 ifeq "$(MAKECMDGOALS)" "debug"
15 DEBUG=yes
16 endif
18 ###########################################################################
20 # Java settings
22 ###########################################################################
23 JAVAC_FLAGS=
25 ifeq "$(DEBUG)" "yes"
26 JAVAC_FLAGS+=-g
27 endif
29 JAVABIN=bin
31 ###########################################################################
33 # Windows specific settings
35 ###########################################################################
36 ifeq "$(PLATFORM)" "windows"
37 # Settings for Windows using Microsoft compiler/linker
39 OS=WIN
40 PS=\\
41 CC=cl
42 LINK=link
43 BUILDLIB=lib
44 ECHO=@echo
45 MKDIR=mkdir
46 MV=move
47 CAT=type
48 OBJ_EXT=obj
49 EXE_EXT=.exe
50 COPY=copy
51 SHAREDLIB_EXT=dll
52 SHAREDLIB_OUT=$(OUT_BIN)
53 PACKAGE_LIB_DIR=windows.plt
54 UNOPKG_PLATFORM=Windows
56 OSEP=^<
57 CSEP=^>
58 QUOTE=
59 QM=
60 SQM=
61 ECHOLINE=@echo.
62 P2BG=
64 DEL=del
65 DELRECURSIVE=rd /S /Q
66 URLPREFIX=file:///
68 SALLIB=isal.lib
69 CPPULIB=icppu.lib
70 CPPUHELPERLIB=icppuhelper.lib
71 SALHELPERLIB=isalhelper.lib
72 REGLIB=ireg.lib
73 STORELIB=istore.lib
74 STLPORTLIB=stlport_vc71$(STLDEBUG).lib
76 BLANK=
77 EMPTYSTRING=
78 PATH_SEPARATOR=;
80 # use this for release version
81 CC_FLAGS=-c -MT -Zm500 -Zc:forScope,wchar_t- -wd4251 -wd4275 -wd4290 -wd4675 -wd4786 -wd4800 -Zc:forScope -GR -EHa
82 ifeq "$(CPP_VC8)" "true"
83 #CC_FLAGS+=-EHa -Zc:wchar_t-
84 LINK_MANIFEST_VC8_ONLY=mt -manifest $@.manifest "-outputresource:$@;2"
85 else
86 #CC_FLAGS+=
87 LINK_MANIFEST_VC8_ONLY=
88 endif
89 ifeq "$(DEBUG)" "yes"
90 CC_FLAGS+=-Zi
91 endif
93 CC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include
94 STL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl"
95 SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/win32"
97 # define for used compiler necessary for UNO
98 # -DCPPU_ENV=msci -- windows msvc 4.x - 7.x
100 CC_DEFINES=-DWIN32 -DWNT -DCPPU_ENV=msci
101 CC_OUTPUT_SWITCH=-Fo
103 LIBRARY_LINK_FLAGS=/NODEFAULTLIB /DLL /DEBUGTYPE:cv
104 COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) /DEF:$(PRJ)/settings/component.uno.def
105 EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1b000000 /DEBUGTYPE:cv /NODEFAULTLIB msvcrt.lib kernel32.lib
106 ifeq "$(DEBUG)" "yes"
107 LIBRARY_LINK_FLAGS+=/DEBUG
108 EXE_LINK_FLAGS+=/DEBUG
109 endif
111 LINK_JAVA_LIBS=/LIBPATH:"$(OO_SDK_JAVA_HOME)/lib"
113 ifneq "$(OO_SDK_URE_HOME)" ""
114 URE_MISC=$(OO_SDK_URE_HOME)\misc
115 endif
117 # use this for release version
118 #EXE_LINK_FLAGS=/MAP /OPT:NOREF /SUBSYSTEM:CONSOLE /BASE:0x1100000
119 #LIBRARY_LINK_FLAGS=/NODEFAULTLIB /DLL
120 endif
124 ###########################################################################
126 # Solaris specific settings
128 ###########################################################################
129 ifneq (,$(findstring solaris,$(PLATFORM)))
130 # Settings for Solaris using Sun Workshop compiler
132 PROCTYPE := $(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)
134 ifeq "$(PROCTYPE)" "sparc"
135 PLATFORM=solsparc
136 PACKAGE_LIB_DIR=solaris_sparc.plt
137 UNOPKG_PLATFORM=Solaris_SPARC
138 JAVA_PROC_TYPE=sparc
139 else
140 ifeq "$(PROCTYPE)" "sparc64"
141 PLATFORM=solsparc
142 PACKAGE_LIB_DIR=solaris_sparc64.plt
143 UNOPKG_PLATFORM=Solaris_SPARC64
144 JAVA_PROC_TYPE=sparcv9
145 else
146 PLATFORM=solintel
147 PACKAGE_LIB_DIR=solaris_x86.plt
148 UNOPKG_PLATFORM=Solaris_x86
149 JAVA_PROC_TYPE=i386
150 endif
151 endif
153 OS=SOLARIS
154 PS=/
155 CC=CC
156 LINK=CC
157 LIB=CC
158 ECHO=@echo
159 MKDIR=mkdir -p
160 CAT=cat
161 OBJ_EXT=o
162 SHAREDLIB_EXT=so
163 SHAREDLIB_PRE=lib
164 SHAREDLIB_OUT=$(OUT_LIB)
166 OSEP=\<
167 CSEP=\>
168 QUOTE=$(subst S,\,S)
169 QM=\"
170 SQM='
171 ECHOLINE=@echo
172 P2BG=&
174 DEL=rm -f
175 DELRECURSIVE=rm -rf
176 COPY=cp
177 URLPREFIX=file://
179 # Include UDK version numbers
180 include $(PRJ)/include/udkversion.mk
182 SALLIB=-luno_sal
183 CPPULIB=-luno_cppu
184 CPPUHELPERLIB=-luno_cppuhelperC52
185 SALHELPERLIB=-luno_salhelperC52
186 REGLIB=-lreg
187 STORELIB=-lstore
188 ifeq "$(PROCTYPE)" "sparc64"
189 STLPORTLIB=-library=stlport4
190 else
191 STLPORTLIB=-lstlport_sunpro$(STLDEBUG)
192 endif
194 EMPTYSTRING=
195 PATH_SEPARATOR=:
197 CC_FLAGS=-c -KPIC
198 ifeq "$(DEBUG)" "yes"
199 CC_FLAGS+=-g
200 endif
201 CC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include
202 STL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl"
203 SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/solaris"
205 # define for used compiler necessary for UNO
206 # -DCPPU_ENV=sunpro5 -- sunpro cc 5.x solaris sparc/intel
208 CC_DEFINES=-DUNX -DSOLARIS -DSPARC -DCPPU_ENV=sunpro5
209 CC_OUTPUT_SWITCH=-o
211 LIBRARY_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp '-R $$ORIGIN' -z text -norunpath -G -Bdirect -Bdynamic -lpthread -lCrun -lc -lm
212 # means if used CC is lower then version 5.5 use option -instance=static
213 ifeq ($(OO_SDK_CC_55_OR_HIGHER),)
214 LIBRARY_LINK_FLAGS+=-instances=static
215 endif
216 COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -M $(PRJ)/settings/component.uno.map
218 EXE_LINK_FLAGS=-w -mt -z combreloc -PIC -temp=/tmp -norunpath -Bdirect -z defs
219 LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)"
220 LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)"
222 ifeq "$(PROCTYPE)" "sparc64"
223 CC_FLAGS+=-m64
224 LIBRARY_LINK_FLAGS+=-m64
225 EXE_LINK_FLAGS+=-m64
226 endif
228 ifneq "$(OO_SDK_URE_HOME)" ""
229 URE_MISC=$(OO_SDK_URE_HOME)/share/misc
230 endif
232 endif
236 ###########################################################################
238 # Linux specific settings
240 ###########################################################################
241 ifneq (,$(findstring linux,$(PLATFORM)))
242 # Settings for Linux using gcc compiler
244 PROCTYPE := $(shell $(PRJ)/config.guess | cut -d "-" -f1 | sed -e 's/^i.86$$/i386/')
245 PLATFORM=linux
247 PACKAGE_LIB_DIR=linux_$(PROCTYPE).plt
248 UNOPKG_PLATFORM=Linux_$(PROCTYPE)
249 JAVA_PROC_TYPE=$(PROCTYPE)
250 STLPORT=no
252 ifeq "$(PROCTYPE)" "i386"
253 PACKAGE_LIB_DIR=linux_x86.plt
254 UNOPKG_PLATFORM=Linux_x86
255 JAVA_PROC_TYPE=i386
256 STLPORT=yes
257 endif
259 ifeq "$(PROCTYPE)" "powerpc"
260 PACKAGE_LIB_DIR=linux_powerpc.plt
261 UNOPKG_PLATFORM=Linux_PowerPC
262 JAVA_PROC_TYPE=ppc
263 STLPORT=yes
264 endif
266 ifeq "$(PROCTYPE)" "sparc"
267 PACKAGE_LIB_DIR=linux_sparc.plt
268 UNOPKG_PLATFORM=Linux_SPARC
269 JAVA_PROC_TYPE=sparc
270 STLPORT=yes
271 endif
273 ifeq "$(PROCTYPE)" "x86_64"
274 JAVA_PROC_TYPE=amd64
275 endif
277 ifeq "$(PROCTYPE)" "powerpc64"
278 JAVA_PROC_TYPE=ppc64
279 endif
281 OS=LINUX
282 PS=/
283 CC=gcc
284 LINK=g++
285 LIB=g++
286 ECHO=@echo
287 MKDIR=mkdir -p
288 CAT=cat
289 OBJ_EXT=o
290 SHAREDLIB_EXT=so
291 SHAREDLIB_PRE=lib
292 SHAREDLIB_OUT=$(OUT_LIB)
294 GCC_VERSION=$(shell $(CC) -dumpversion)
296 COMID=gcc3
297 CPPU_ENV=gcc3
299 OSEP=\<
300 CSEP=\>
301 QUOTE=$(subst S,\,S)
302 QM=\"
303 SQM='
304 ECHOLINE=@echo
305 P2BG=&
307 DEL=rm -f
308 DELRECURSIVE=rm -rf
309 COPY=cp
310 URLPREFIX=file://
312 # Include UDK version numbers
313 include $(PRJ)/include/udkversion.mk
315 SALLIB=-luno_sal
316 CPPULIB=-luno_cppu
317 CPPUHELPERLIB=-luno_cppuhelper$(COMID)
318 SALHELPERLIB=-luno_salhelper$(COMID)
319 REGLIB=-lreg
320 STORELIB=-lstore
321 ifeq "$(STLPORT)" "yes"
322 ifeq "$(STLPORT_VER)" "500"
323 STLPORTLIB=-lstlport
324 else
325 STLPORTLIB=-lstlport_gcc$(STLDEBUG)
326 endif
327 else
328 STLPORTLIB=
329 endif
331 EMPTYSTRING=
332 PATH_SEPARATOR=:
334 # -O is necessary for inlining (see gcc documentation)
335 ifeq "$(DEBUG)" "yes"
336 CC_FLAGS=-c -g -fpic
337 else
338 CC_FLAGS=-c -O -fpic
339 endif
341 ifeq "$(PROCTYPE)" "ppc"
342 CC_FLAGS+=-fPIC
343 endif
345 SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/linux"
346 CC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include
347 STL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl"
348 CC_DEFINES=-DUNX -DGCC -DLINUX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH)
350 # define for used compiler necessary for UNO
351 #-DCPPU_ENV=gcc2 -- gcc 2.91/2.95
352 #-DCPPU_ENV=gcc3 -- gcc3 3.0
354 CC_OUTPUT_SWITCH=-o
356 LIBRARY_LINK_FLAGS=-shared '-Wl,-rpath,$$ORIGIN'
358 ifeq "$(PROCTYPE)" "ppc"
359 LIBRARY_LINK_FLAGS+=-fPIC
360 endif
361 COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map
363 #EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--whole-archive -lsalcpprt -Wl,--no-whole-archive
364 EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs -Wl,--no-whole-archive
365 LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)"
366 LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)"
368 ifneq "$(OO_SDK_URE_HOME)" ""
369 URE_MISC=$(OO_SDK_URE_HOME)/share/misc
370 endif
372 endif
374 ###########################################################################
376 # MacOSX/Darwin specific settings
378 ###########################################################################
379 ifneq (,$(findstring darwin,$(PLATFORM)))
380 # Settings for MacOSX using gcc 4.0.1 compiler
382 PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)
384 # Default is MacOSX on a Intel machine
385 PLATFORM=macosx
387 ifeq "$(PROCTYPE)" "i686"
388 PACKAGE_LIB_DIR=macosx_x86.plt
389 UNOPKG_PLATFORM=MacOSX_x86
390 JAVA_PROC_TYPE=x86
391 else
392 PACKAGE_LIB_DIR=macosx_ppc.plt
393 UNOPKG_PLATFORM=MacOSX_PowerPC
394 JAVA_PROC_TYPE=ppc
395 endif
396 JAVABIN=Commands
398 OS=MACOSX
399 PS=/
400 CC=gcc
401 LINK=g++
402 LIB=g++
403 ECHO=@echo
404 MKDIR=mkdir -p
405 CAT=cat
406 OBJ_EXT=o
407 SHAREDLIB_EXT=dylib
408 SHAREDLIB_PRE=lib
409 SHAREDLIB_OUT=$(OUT_LIB)
411 GCC_VERSION=$(shell $(CC) -dumpversion)
413 COMID=gcc3
414 CPPU_ENV=gcc3
416 OSEP=\<
417 CSEP=\>
418 QUOTE=$(subst S,\,S)
419 QM=\"
420 SQM='
421 ECHOLINE=@echo
422 P2BG=&
424 DEL=rm -f
425 DELRECURSIVE=rm -rf
426 COPY=cp
427 URLPREFIX=file://
429 # Include UDK version numbers
430 include $(PRJ)/include/udkversion.mk
432 SALLIB=-luno_sal
433 CPPULIB=-luno_cppu
434 CPPUHELPERLIB=-luno_cppuhelper$(COMID)
435 SALHELPERLIB=-luno_salhelper$(COMID)
436 REGLIB=-lreg
437 STORELIB=-lstore
439 SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_sal.dylib
440 CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppu.dylib
441 CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib
442 SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:$(OO_SDK_URE_LIB_DIR)/libuno_salhelper$(COMID).dylib
443 REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:$(OO_SDK_URE_LIB_DIR)/libreg.dylib
444 STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:$(OO_SDK_URE_LIB_DIR)/libstore.dylib
446 INSTALL_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
448 INSTALL_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
450 EMPTYSTRING=
451 PATH_SEPARATOR=:
453 # -O is necessary for inlining (see gcc documentation)
454 ifeq "$(DEBUG)" "yes"
455 CC_FLAGS=-malign-natural -c -g -fPIC -fno-common
456 else
457 CC_FLAGS=-malign-natural -c -O -fPIC -fno-common
458 endif
460 SDK_JAVA_INCLUDES = -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I/System/Library/Frameworks/JavaVM.framework/Headers
461 CC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include
462 STL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl"
463 CC_DEFINES=-DUNX -DGCC -DMACOSX -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH)
465 CC_OUTPUT_SWITCH=-o
467 LIBRARY_LINK_FLAGS=-dynamiclib -single_module -Wl,-multiply_defined,suppress
468 #-fPIC -fno-common
470 # install_name '@executable_path$/(@:f)'
471 COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,-exported_symbols_list $(COMP_MAPFILE)
473 #EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined -Wl,-export-dynamic -Wl,-z,defs
474 LINK_LIBS=-L$(OUT)/lib -L$(OO_SDK_OUT)/$(PLATFORM)/lib -L"$(OO_SDK_URE_LIB_DIR)"
475 LINK_JAVA_LIBS=-framework JavaVM
476 #LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/Libraries"
478 ifneq "$(OO_SDK_URE_HOME)" ""
479 URE_MISC=$(OO_SDK_URE_HOME)/share/misc
480 endif
482 endif
484 ###########################################################################
486 # FreeBSD specific settings
488 ###########################################################################
489 ifneq (,$(findstring freebsd,$(PLATFORM)))
490 # Settings for FreeBSD using gcc compiler
492 PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)
494 # Default is freebsd on a intel machine
495 PLATFORM=freebsd
496 PACKAGE_LIB_DIR=freebsd_x86.plt
497 UNOPKG_PLATFORM=FreeBSD_x86
498 JAVA_PROC_TYPE=i386
500 OS=FREEBSD
501 PS=/
502 CC=gcc
503 LINK=g++
504 LIB=g++
505 ECHO=@echo
506 MKDIR=mkdir -p
507 CAT=cat
508 OBJ_EXT=o
509 SHAREDLIB_EXT=so
510 SHAREDLIB_PRE=lib
511 SHAREDLIB_OUT=$(OUT_LIB)
513 GCC_VERSION=$(shell $(CC) -dumpversion)
515 ifeq "$(shell echo $(GCC_VERSION) | cut -c 1)" "3"
516 COMID=gcc3
517 CPPU_ENV=gcc3
518 else
519 COMID=GCC
520 CPPU_ENV=gcc2
521 endif
523 OSEP=\<
524 CSEP=\>
525 QUOTE=$(subst S,\,S)
526 QM=\"
527 SQM='
528 ECHOLINE=@echo
529 P2BG=&
531 DEL=rm -f
532 DELRECURSIVE=rm -rf
533 COPY=cp
534 URLPREFIX=file://
536 # Include UDK version numbers
537 include $(PRJ)/include/udkversion.mk
539 SALLIB=-luno_sal
540 CPPULIB=-luno_cppu
541 CPPUHELPERLIB=-luno_cppuhelper$(COMID)
542 SALHELPERLIB=-luno_salhelper$(COMID)
543 REGLIB=-lreg
544 STORELIB=-lstore
545 ifeq "$(STLPORT_VER)" "500"
546 STLPORTLIB=-lstlport
547 else
548 STLPORTLIB=-lstlport_gcc$(STLDEBUG)
549 endif
551 EMPTYSTRING=
552 PATH_SEPARATOR=:
554 # -O is necessary for inlining (see gcc documentation)
555 ifeq "$(DEBUG)" "yes"
556 CC_FLAGS=-c -g -fPIC -DPIC $(PTHREAD_CFLAGS)
557 else
558 CC_FLAGS=-c -O -fPIC -DPIC $(PTHREAD_CFLAGS)
559 endif
561 SDK_JAVA_INCLUDES = -I"$(OO_SDK_JAVA_HOME)/include" -I"$(OO_SDK_JAVA_HOME)/include/freebsd"
562 CC_INCLUDES=-I. -I$(OUT)/inc -I$(OUT)/inc/examples -I$(PRJ)/include
563 STL_INCLUDES=-I"$(OO_SDK_HOME)/include/stl"
564 CC_DEFINES=-DUNX -DGCC -DFREEBSD -DCPPU_ENV=$(CPPU_ENV) -DGXX_INCLUDE_PATH=$(SDK_GXX_INCLUDE_PATH)
566 CC_OUTPUT_SWITCH=-o
568 LIBRARY_LINK_FLAGS=-shared '-Wl,-rpath,$$ORIGIN'
569 COMP_LINK_FLAGS=$(LIBRARY_LINK_FLAGS) -Wl,--version-script,$(PRJ)/settings/component.uno.map
571 EXE_LINK_FLAGS=-Wl,--allow-shlib-undefined
572 #EXE_LINK_FLAGS+=-Wl,-export-dynamic -Wl,-z,defs
573 LINK_LIBS=-L"$(OUT)/lib" -L"$(OO_SDK_HOME)/lib" -L"$(OO_SDK_URE_LIB_DIR)" $(PTHREAD_LIBS)
574 LINK_JAVA_LIBS=-L"$(OO_SDK_JAVA_HOME)/jre/lib/$(JAVA_PROC_TYPE)"
576 ifneq "$(OO_SDK_URE_HOME)" ""
577 URE_MISC=$(OO_SDK_URE_HOME)/share/misc
578 endif
580 endif