1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
28 ##########################################################################
29 # Platform MAKEFILE for iOS, both devices and the simulator
30 ##########################################################################
32 PROCESSOR_DEFINES
=-DARM32
34 # flags to enable build with symbols
35 CFLAGSENABLESYMBOLS
=-g
41 CFLAGS
=-fmessage-length
=0 -c
$(EXTRA_CFLAGS
)
43 # ---------------------------------
45 # ---------------------------------
46 # Normal C compilation flags
47 CFLAGSCC
=-pipe
-fsigned-char
$(ARCH_FLAGS
)
49 # Normal Objective C compilation flags
50 OBJCFLAGS
=-fexceptions
-fobjc-abi-version
=2 -fobjc-legacy-dispatch
-D__IPHONE_OS_VERSION_MIN_REQUIRED
=40300
52 OBJCXXFLAGS
:=-x objective-c
++ $(OBJCFLAGS
)
54 # Comp Flags for files that need exceptions enabled (C and C++)
55 CFLAGSEXCEPTIONS
=-fexceptions
57 .IF
"$(COM_GCC_IS_CLANG)" != "TRUE"
58 CFLAGSEXCEPTIONS
+=-fno-enforce-eh-specs
62 # Comp Flags for files that do not need exceptions enabled (C and C++)
63 CFLAGS_NO_EXCEPTIONS
=-fno-exceptions
65 # Normal C++ compilation flags
66 CFLAGSCXX
=-pipe
-fsigned-char
$(ARCH_FLAGS
) -Wno-ctor-dtor-privacy
67 .IF
"$(HAVE_THREADSAFE_STATICS)" != "TRUE"
68 CFLAGSCXX
+= -fno-threadsafe-statics
71 # No PIC needed as we don't build dynamic objects
74 CFLAGSOBJGUIMT
=$(PICSWITCH
) -fno-common
75 CFLAGSOBJCUIMT
=$(PICSWITCH
) -fno-common
76 CFLAGSSLOGUIMT
=$(PICSWITCH
) -fno-common
77 CFLAGSSLOCUIMT
=$(PICSWITCH
) -fno-common
79 # Flag for including debugging information in object files
83 # Flag to specify output file to compiler/linker
86 # ---------------------------------
88 # ---------------------------------
89 CFLAGSOPT
=-O2
-fno-strict-aliasing
92 # -Wshadow does not work for C with nested uses of pthread_cleanup_push:
93 # -Wshadow does not work for C++ as /usr/include/c++/4.0.0/ext/hashtable.h
94 # l. 717 contains a declaration of __cur2 shadowing the declaration at l. 705,
95 # in template code for which a #pragma gcc system_header would not work:
96 # -Wextra doesn not work for gcc-3.3
97 CFLAGSWARNCC
=-Wall
-Wendif-labels
98 CFLAGSWARNCXX
=$(CFLAGSWARNCC
) -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor
99 CFLAGSWALLCC
=$(CFLAGSWARNCC
)
100 CFLAGSWALLCXX
=$(CFLAGSWARNCXX
)
101 CFLAGSWERRCC
=-Werror
-DLIBO_WERROR
106 LINKFLAGSDEFS
*=-Wl
,-multiply_defined
,suppress
108 # Tag to identify an output file as a library
110 # We don't use dynamic shared libraries on iOS
113 STDLIBCUIMT
=-framework UIKit
-framework Foundation
-framework CoreText
-framework CoreGraphics
-framework CoreFoundation
-Xlinker
-objc_abi_version
-Xlinker
2
114 STDLIBGUIMT
=$(STDLIBCUIMT
)
133 OOO_LIBRARY_PATH_VAR
= DYLD_LIBRARY_PATH