settings.mk (e5a7b9b2) settings.mk (789d489d)
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

--- 58 unchanged lines hidden (view full) ---

67MKDIR=mkdir
68MV=move
69CAT=type
70OBJ_EXT=obj
71EXE_EXT=.exe
72COPY=copy
73SHAREDLIB_EXT=dll
74SHAREDLIB_OUT=$(OUT_BIN)
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

--- 58 unchanged lines hidden (view full) ---

67MKDIR=mkdir
68MV=move
69CAT=type
70OBJ_EXT=obj
71EXE_EXT=.exe
72COPY=copy
73SHAREDLIB_EXT=dll
74SHAREDLIB_OUT=$(OUT_BIN)
75PACKAGE_LIB_DIR=windows.plt
76UNOPKG_PLATFORM=Windows
77
78OSEP=^<
79CSEP=^>
80QUOTE=
81QM=
82SQM=
83ECHOLINE=@echo.

--- 64 unchanged lines hidden (view full) ---

148###########################################################################
149ifneq (,$(findstring solaris,$(PLATFORM)))
150# Settings for Solaris using Sun Workshop compiler
151
152PROCTYPE := $(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)
153
154ifeq "$(PROCTYPE)" "sparc"
155PLATFORM=solsparc
75UNOPKG_PLATFORM=Windows
76
77OSEP=^<
78CSEP=^>
79QUOTE=
80QM=
81SQM=
82ECHOLINE=@echo.

--- 64 unchanged lines hidden (view full) ---

147###########################################################################
148ifneq (,$(findstring solaris,$(PLATFORM)))
149# Settings for Solaris using Sun Workshop compiler
150
151PROCTYPE := $(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)
152
153ifeq "$(PROCTYPE)" "sparc"
154PLATFORM=solsparc
156PACKAGE_LIB_DIR=solaris_sparc.plt
157UNOPKG_PLATFORM=Solaris_SPARC
158JAVA_PROC_TYPE=sparc
159else
160ifeq "$(PROCTYPE)" "sparc64"
161PLATFORM=solsparc
155UNOPKG_PLATFORM=Solaris_SPARC
156JAVA_PROC_TYPE=sparc
157else
158ifeq "$(PROCTYPE)" "sparc64"
159PLATFORM=solsparc
162PACKAGE_LIB_DIR=solaris_sparc64.plt
163UNOPKG_PLATFORM=Solaris_SPARC64
164JAVA_PROC_TYPE=sparcv9
165else
166PLATFORM=solintel
160UNOPKG_PLATFORM=Solaris_SPARC64
161JAVA_PROC_TYPE=sparcv9
162else
163PLATFORM=solintel
167PACKAGE_LIB_DIR=solaris_x86.plt
168UNOPKG_PLATFORM=Solaris_x86
169JAVA_PROC_TYPE=i386
170endif
171endif
172
173OS=SOLARIS
174PS=/
175ICL=\$$

--- 79 unchanged lines hidden (view full) ---

255#
256###########################################################################
257ifneq (,$(findstring linux,$(PLATFORM)))
258# Settings for Linux using gcc compiler
259
260PROCTYPE := $(shell $(PRJ)/config.guess | cut -d "-" -f1 | sed -e 's/^i.86$$/i386/')
261PLATFORM=linux
262
164UNOPKG_PLATFORM=Solaris_x86
165JAVA_PROC_TYPE=i386
166endif
167endif
168
169OS=SOLARIS
170PS=/
171ICL=\$$

--- 79 unchanged lines hidden (view full) ---

251#
252###########################################################################
253ifneq (,$(findstring linux,$(PLATFORM)))
254# Settings for Linux using gcc compiler
255
256PROCTYPE := $(shell $(PRJ)/config.guess | cut -d "-" -f1 | sed -e 's/^i.86$$/i386/')
257PLATFORM=linux
258
263PACKAGE_LIB_DIR=linux_$(PROCTYPE).plt
264UNOPKG_PLATFORM=Linux_$(PROCTYPE)
265JAVA_PROC_TYPE=$(PROCTYPE)
266
267ifeq "$(PROCTYPE)" "i386"
259UNOPKG_PLATFORM=Linux_$(PROCTYPE)
260JAVA_PROC_TYPE=$(PROCTYPE)
261
262ifeq "$(PROCTYPE)" "i386"
268PACKAGE_LIB_DIR=linux_x86.plt
269UNOPKG_PLATFORM=Linux_x86
270JAVA_PROC_TYPE=i386
271endif
272
273ifeq "$(PROCTYPE)" "powerpc"
263UNOPKG_PLATFORM=Linux_x86
264JAVA_PROC_TYPE=i386
265endif
266
267ifeq "$(PROCTYPE)" "powerpc"
274PACKAGE_LIB_DIR=linux_powerpc.plt
275UNOPKG_PLATFORM=Linux_PowerPC
276JAVA_PROC_TYPE=ppc
277endif
278
279ifeq "$(PROCTYPE)" "sparc"
268UNOPKG_PLATFORM=Linux_PowerPC
269JAVA_PROC_TYPE=ppc
270endif
271
272ifeq "$(PROCTYPE)" "sparc"
280PACKAGE_LIB_DIR=linux_sparc.plt
281UNOPKG_PLATFORM=Linux_SPARC
282JAVA_PROC_TYPE=sparc
283endif
284
285ifeq "$(PROCTYPE)" "x86_64"
286JAVA_PROC_TYPE=amd64
287endif
288

--- 89 unchanged lines hidden (view full) ---

378endif
379
380###########################################################################
381#
382# MacOSX/Darwin specific settings
383#
384###########################################################################
385ifneq (,$(findstring darwin,$(PLATFORM)))
273UNOPKG_PLATFORM=Linux_SPARC
274JAVA_PROC_TYPE=sparc
275endif
276
277ifeq "$(PROCTYPE)" "x86_64"
278JAVA_PROC_TYPE=amd64
279endif
280

--- 89 unchanged lines hidden (view full) ---

370endif
371
372###########################################################################
373#
374# MacOSX/Darwin specific settings
375#
376###########################################################################
377ifneq (,$(findstring darwin,$(PLATFORM)))
386# Settings for MacOSX using gcc 4.0.1 compiler
378# Settings for MacOSX using LLVM version 4.2 (clang-425.0.28)
387
388PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)
389
390# Default is MacOSX on a Intel machine
391PLATFORM=macosx
392
379
380PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)
381
382# Default is MacOSX on a Intel machine
383PLATFORM=macosx
384
393ifeq "$(PROCTYPE)" "i386"
394PACKAGE_LIB_DIR=macosx_x86.plt
395UNOPKG_PLATFORM=MacOSX_x86
396JAVA_PROC_TYPE=x86
397else
398ifeq "$(PROCTYPE)" "x86_64"
385ifeq "$(PROCTYPE)" "x86_64"
399PACKAGE_LIB_DIR=macosx_x86.plt
400UNOPKG_PLATFORM=MacOSX_x86
401JAVA_PROC_TYPE=x86
402else
403PACKAGE_LIB_DIR=macosx_ppc.plt
404UNOPKG_PLATFORM=MacOSX_PowerPC
405JAVA_PROC_TYPE=ppc
386UNOPKG_PLATFORM=MacOSX_x86_64
406endif
387endif
407endif
388
408JAVABIN=Commands
409
389JAVABIN=Commands
390
410GCC_VERSION =$(shell gcc -dumpversion| cut -d"." -f1,2)
411ifeq "$(GCC_VERSION)" "4.2"
412GCC_ARCH_OPTION=-arch i386
413endif
391GCC_ARCH_OPTION=-arch x86_64
414
415OS=MACOSX
416PS=/
417ICL=\$$
392
393OS=MACOSX
394PS=/
395ICL=\$$
418CC=gcc-$(GCC_VERSION)
419LINK=g++-$(GCC_VERSION)
420LIB=g++-$(GCC_VERSION)
396CC=`xcrun -f clang` -arch x86_64
397CXX=`xcrun -f clang++` -arch x86_64 -std=c++11
398LINK=`xcrun -f clang++` -arch x86_64 -std=c++11
399LIB=`xcrun -f clang++` -arch x86_64 -std=c++11
400INSTALLTOOL=`xcrun -f install_name_tool`
401
421ECHO=@echo
422MKDIR=mkdir -p
423CAT=cat
424OBJ_EXT=o
425SHAREDLIB_EXT=dylib
426SHAREDLIB_PRE=lib
427SHAREDLIB_OUT=$(OUT_LIB)
428
429COMID=gcc3
430CPPU_ENV=gcc3
402ECHO=@echo
403MKDIR=mkdir -p
404CAT=cat
405OBJ_EXT=o
406SHAREDLIB_EXT=dylib
407SHAREDLIB_PRE=lib
408SHAREDLIB_OUT=$(OUT_LIB)
409
410COMID=gcc3
411CPPU_ENV=gcc3
412COMID=s5abi
413CPPU_ENV=s5abi
431
432OSEP=\<
433CSEP=\>
434QUOTE=$(subst S,\,S)
435QM=\"
436SQM='
437ECHOLINE=@echo
438P2BG=&

--- 15 unchanged lines hidden (view full) ---

454
455SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libuno_sal.dylib'
456CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libuno_cppu.dylib'
457CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper'$(COMID).dylib.3:$(OO_SDK_OFFICE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib'
458SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libuno_salhelper$(COMID).dylib'
459REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libreg.dylib'
460STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libstore.dylib'
461
414
415OSEP=\<
416CSEP=\>
417QUOTE=$(subst S,\,S)
418QM=\"
419SQM='
420ECHOLINE=@echo
421P2BG=&

--- 15 unchanged lines hidden (view full) ---

437
438SALDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_sal.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libuno_sal.dylib'
439CPPUDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppu.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libuno_cppu.dylib'
440CPPUHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_cppuhelper'$(COMID).dylib.3:$(OO_SDK_OFFICE_LIB_DIR)/libuno_cppuhelper$(COMID).dylib'
441SALHELPERDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libuno_salhelper$(COMID).dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libuno_salhelper$(COMID).dylib'
442REGDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libreg.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libreg.dylib'
443STOREDYLIB=-Wl,-dylib_file,@__________________________________________________URELIB/libstore.dylib.3:'$(OO_SDK_OFFICE_LIB_DIR)/libstore.dylib'
444
462INSTALL_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
445INSTALL_NAME_URELIBS=$(INSTALLTOOL) -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
463
446
464INSTALL_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
447INSTALL_NAME_URELIBS_BIN=$(INSTALLTOOL) -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
465
466EMPTYSTRING=
467PATH_SEPARATOR=:
468
448
449EMPTYSTRING=
450PATH_SEPARATOR=:
451
469CC_FLAGS_JNI=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION)
470CC_FLAGS=-malign-natural -c -fPIC -fno-common $(GCC_ARCH_OPTION) -fvisibility=hidden
452CC_FLAGS_JNI=-c -fPIC -fno-common $(GCC_ARCH_OPTION)
453CC_FLAGS=-c -fPIC -fno-common $(GCC_ARCH_OPTION) -fvisibility=hidden
454
471# -O is necessary for inlining (see gcc documentation)
472ifeq "$(DEBUG)" "yes"
473CC_FLAGS_JNI+=-g
474CC_FLAGS+=-g
475else
476CC_FLAGS_JNI+=-O
477CC_FLAGS+=-O
478endif

--- 28 unchanged lines hidden (view full) ---

507ifneq (,$(findstring freebsd,$(PLATFORM)))
508# Settings for FreeBSD using gcc compiler
509
510PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)
511
512ifeq (kfreebsd,$(findstring kfreebsd,$(PLATFORM)))
513PLATFORM=kfreebsd
514ifeq "$(PROCTYPE)" "x86_64"
455# -O is necessary for inlining (see gcc documentation)
456ifeq "$(DEBUG)" "yes"
457CC_FLAGS_JNI+=-g
458CC_FLAGS+=-g
459else
460CC_FLAGS_JNI+=-O
461CC_FLAGS+=-O
462endif

--- 28 unchanged lines hidden (view full) ---

491ifneq (,$(findstring freebsd,$(PLATFORM)))
492# Settings for FreeBSD using gcc compiler
493
494PROCTYPE := $(shell $(PRJ)/config.guess | cut -d"-" -f1)
495
496ifeq (kfreebsd,$(findstring kfreebsd,$(PLATFORM)))
497PLATFORM=kfreebsd
498ifeq "$(PROCTYPE)" "x86_64"
515PACKAGE_LIB_DIR=kfreebsd_x86_64.plt
516UNOPKG_PLATFORM=kFreeBSD_x86_64
517else
499UNOPKG_PLATFORM=kFreeBSD_x86_64
500else
518PACKAGE_LIB_DIR=kfreebsd_x86.plt
519UNOPKG_PLATFORM=kFreeBSD_x86
520endif
521else
522PLATFORM=freebsd
523ifeq "$(PROCTYPE)" "x86_64"
501UNOPKG_PLATFORM=kFreeBSD_x86
502endif
503else
504PLATFORM=freebsd
505ifeq "$(PROCTYPE)" "x86_64"
524PACKAGE_LIB_DIR=freebsd_x86_64.plt
525UNOPKG_PLATFORM=FreeBSD_x86_64
526else
506UNOPKG_PLATFORM=FreeBSD_x86_64
507else
527PACKAGE_LIB_DIR=freebsd_x86.plt
528UNOPKG_PLATFORM=FreeBSD_x86
529endif
530endif
531
532ifeq "$(PROCTYPE)" "x86_64"
533JAVA_PROC_TYPE=amd64
534else
535JAVA_PROC_TYPE=i386

--- 90 unchanged lines hidden ---
508UNOPKG_PLATFORM=FreeBSD_x86
509endif
510endif
511
512ifeq "$(PROCTYPE)" "x86_64"
513JAVA_PROC_TYPE=amd64
514else
515JAVA_PROC_TYPE=i386

--- 90 unchanged lines hidden ---