Fix T56293: Particle Instance Modifier Axis Buttons UX.
[blender.git] / build_files / cmake / platform / platform_apple.cmake
1 # ***** BEGIN GPL LICENSE BLOCK *****
2 #
3 # This program is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU General Public License
5 # as published by the Free Software Foundation; either version 2
6 # of the License, or (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software Foundation,
15 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 #
17 # The Original Code is Copyright (C) 2016, Blender Foundation
18 # All rights reserved.
19 #
20 # Contributor(s): Sergey Sharybin.
21 #
22 # ***** END GPL LICENSE BLOCK *****
23
24 # Libraries configuration for Apple.
25
26 macro(find_package_wrapper)
27 # do nothing, just satisfy the macro
28 endmacro()
29
30 if(NOT DEFINED LIBDIR)
31         set(LIBDIR ${CMAKE_SOURCE_DIR}/../lib/darwin)
32         # Prefer lib directory paths
33         file(GLOB LIB_SUBDIRS ${LIBDIR}/*)
34         set(CMAKE_PREFIX_PATH ${LIB_SUBDIRS})
35 else()
36         message(STATUS "Using pre-compiled LIBDIR: ${LIBDIR}")
37 endif()
38 if(NOT EXISTS "${LIBDIR}/")
39         message(FATAL_ERROR "Mac OSX requires pre-compiled libs at: '${LIBDIR}'")
40 endif()
41
42 if(WITH_OPENAL)
43         find_package(OpenAL)
44         if(OPENAL_FOUND)
45                 set(WITH_OPENAL ON)
46                 set(OPENAL_INCLUDE_DIR "${LIBDIR}/openal/include")
47         else()
48                 set(WITH_OPENAL OFF)
49         endif()
50 endif()
51
52 if(WITH_ALEMBIC)
53         set(ALEMBIC ${LIBDIR}/alembic)
54         set(ALEMBIC_INCLUDE_DIR ${ALEMBIC}/include)
55         set(ALEMBIC_INCLUDE_DIRS ${ALEMBIC_INCLUDE_DIR})
56         set(ALEMBIC_LIBPATH ${ALEMBIC}/lib)
57         set(ALEMBIC_LIBRARIES Alembic)
58         set(ALEMBIC_FOUND ON)
59 endif()
60
61 if(WITH_OPENSUBDIV OR WITH_CYCLES_OPENSUBDIV)
62         set(OPENSUBDIV ${LIBDIR}/opensubdiv)
63         set(OPENSUBDIV_LIBPATH ${OPENSUBDIV}/lib)
64         find_library(OSD_LIB_CPU NAMES osdCPU PATHS ${OPENSUBDIV_LIBPATH})
65         find_library(OSD_LIB_GPU NAMES osdGPU PATHS ${OPENSUBDIV_LIBPATH})
66         set(OPENSUBDIV_INCLUDE_DIR ${OPENSUBDIV}/include)
67         set(OPENSUBDIV_INCLUDE_DIRS ${OPENSUBDIV_INCLUDE_DIR})
68         list(APPEND OPENSUBDIV_LIBRARIES ${OSD_LIB_CPU} ${OSD_LIB_GPU})
69 endif()
70
71 if(WITH_JACK)
72         find_library(JACK_FRAMEWORK
73                 NAMES jackmp
74         )
75         set(JACK_INCLUDE_DIRS ${JACK_FRAMEWORK}/headers)
76         if(NOT JACK_FRAMEWORK)
77                 set(WITH_JACK OFF)
78         endif()
79 endif()
80
81 if(WITH_CODEC_SNDFILE)
82         set(SNDFILE ${LIBDIR}/sndfile)
83         set(SNDFILE_INCLUDE_DIRS ${SNDFILE}/include)
84         set(SNDFILE_LIBRARIES sndfile FLAC ogg vorbis vorbisenc)
85         set(SNDFILE_LIBPATH ${SNDFILE}/lib ${LIBDIR}/ffmpeg/lib)  # TODO, deprecate
86 endif()
87
88 if(WITH_PYTHON)
89         # we use precompiled libraries for py 3.5 and up by default
90         set(PYTHON_VERSION 3.6)
91         if(NOT WITH_PYTHON_MODULE AND NOT WITH_PYTHON_FRAMEWORK)
92                 # normally cached but not since we include them with blender
93                 set(PYTHON_INCLUDE_DIR "${LIBDIR}/python/include/python${PYTHON_VERSION}m")
94                 set(PYTHON_EXECUTABLE "${LIBDIR}/python/bin/python${PYTHON_VERSION}m")
95                 set(PYTHON_LIBRARY ${LIBDIR}/python/lib/libpython${PYTHON_VERSION}m.a)
96                 set(PYTHON_LIBPATH "${LIBDIR}/python/lib/python${PYTHON_VERSION}")
97                 # set(PYTHON_LINKFLAGS "-u _PyMac_Error")  # won't  build with this enabled
98         else()
99                 # module must be compiled against Python framework
100                 set(_py_framework "/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}")
101
102                 set(PYTHON_INCLUDE_DIR "${_py_framework}/include/python${PYTHON_VERSION}m")
103                 set(PYTHON_EXECUTABLE "${_py_framework}/bin/python${PYTHON_VERSION}m")
104                 set(PYTHON_LIBPATH "${_py_framework}/lib/python${PYTHON_VERSION}/config-${PYTHON_VERSION}m")
105                 #set(PYTHON_LIBRARY python${PYTHON_VERSION})
106                 #set(PYTHON_LINKFLAGS "-u _PyMac_Error -framework Python")  # won't  build with this enabled
107
108                 unset(_py_framework)
109         endif()
110
111         # uncached vars
112         set(PYTHON_INCLUDE_DIRS "${PYTHON_INCLUDE_DIR}")
113         set(PYTHON_LIBRARIES  "${PYTHON_LIBRARY}")
114
115         # needed for Audaspace, numpy is installed into python site-packages
116         set(NUMPY_INCLUDE_DIRS "${PYTHON_LIBPATH}/site-packages/numpy/core/include")
117
118         if(NOT EXISTS "${PYTHON_EXECUTABLE}")
119                 message(FATAL_ERROR "Python executable missing: ${PYTHON_EXECUTABLE}")
120         endif()
121 endif()
122
123 if(WITH_FFTW3)
124         set(FFTW3 ${LIBDIR}/fftw3)
125         set(FFTW3_INCLUDE_DIRS ${FFTW3}/include)
126         set(FFTW3_LIBRARIES fftw3)
127         set(FFTW3_LIBPATH ${FFTW3}/lib)
128 endif()
129
130 set(PNG_LIBRARIES png)
131 set(JPEG_LIBRARIES jpeg)
132
133 set(ZLIB /usr)
134 set(ZLIB_INCLUDE_DIRS "${ZLIB}/include")
135 set(ZLIB_LIBRARIES z bz2)
136
137 set(FREETYPE ${LIBDIR}/freetype)
138 set(FREETYPE_INCLUDE_DIRS ${FREETYPE}/include ${FREETYPE}/include/freetype2)
139 set(FREETYPE_LIBPATH ${FREETYPE}/lib)
140 set(FREETYPE_LIBRARY freetype)
141
142 if(WITH_IMAGE_OPENEXR)
143         set(OPENEXR ${LIBDIR}/openexr)
144         set(OPENEXR_INCLUDE_DIR ${OPENEXR}/include)
145         set(OPENEXR_INCLUDE_DIRS ${OPENEXR_INCLUDE_DIR} ${OPENEXR}/include/OpenEXR)
146         set(OPENEXR_POSTFIX -2_2)
147         set(OPENEXR_LIBRARIES
148                 Iex${OPENEXR_POSTFIX}
149                 Half
150                 IlmImf${OPENEXR_POSTFIX}
151                 Imath${OPENEXR_POSTFIX}
152                 IlmThread${OPENEXR_POSTFIX})
153         set(OPENEXR_LIBPATH ${OPENEXR}/lib)
154 endif()
155
156 if(WITH_CODEC_FFMPEG)
157         set(FFMPEG ${LIBDIR}/ffmpeg)
158         set(FFMPEG_INCLUDE_DIRS ${FFMPEG}/include)
159         set(FFMPEG_LIBRARIES
160                 avcodec avdevice avformat avutil
161                 mp3lame swscale x264 xvidcore theora theoradec theoraenc vorbis vorbisenc vorbisfile ogg
162                 )
163               # commenting out until libs are updated on svn. schroedinger and orc
164               # will be removed then
165               # set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} vpx webp swresample)
166         set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} schroedinger orc vpx webp swresample)
167         set(FFMPEG_LIBPATH ${FFMPEG}/lib)
168 endif()
169
170 if(WITH_IMAGE_OPENJPEG OR WITH_CODEC_FFMPEG)
171         # use openjpeg from libdir that is linked into ffmpeg
172         set(OPENJPEG ${LIBDIR}/openjpeg)
173         set(WITH_SYSTEM_OPENJPEG ON)
174         set(OPENJPEG_INCLUDE_DIRS ${OPENJPEG}/include)
175         # same as with ffmpeg libs, update when svn are updated
176         #set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjp2.a)
177         set(OPENJPEG_LIBRARIES ${OPENJPEG}/lib/libopenjpeg.a)
178 endif()
179
180 find_library(SYSTEMSTUBS_LIBRARY
181         NAMES
182         SystemStubs
183         PATHS
184 )
185 mark_as_advanced(SYSTEMSTUBS_LIBRARY)
186 if(SYSTEMSTUBS_LIBRARY)
187         list(APPEND PLATFORM_LINKLIBS SystemStubs)
188 endif()
189
190 set(PLATFORM_CFLAGS "-pipe -funsigned-char")
191 set(PLATFORM_LINKFLAGS
192         "-fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -framework CoreAudio"
193 )
194
195 list(APPEND PLATFORM_LINKLIBS c++)
196
197 if(WITH_JACK)
198         set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -F/Library/Frameworks -weak_framework jackmp")
199 endif()
200
201 if(WITH_PYTHON_MODULE OR WITH_PYTHON_FRAMEWORK)
202         # force cmake to link right framework
203         set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} /Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/Python")
204 endif()
205
206 if(WITH_OPENCOLLADA)
207         set(OPENCOLLADA ${LIBDIR}/opencollada)
208
209         set(OPENCOLLADA_INCLUDE_DIRS
210                 ${LIBDIR}/opencollada/include/COLLADAStreamWriter
211                 ${LIBDIR}/opencollada/include/COLLADABaseUtils
212                 ${LIBDIR}/opencollada/include/COLLADAFramework
213                 ${LIBDIR}/opencollada/include/COLLADASaxFrameworkLoader
214                 ${LIBDIR}/opencollada/include/GeneratedSaxParser
215         )
216
217         set(OPENCOLLADA_LIBPATH ${OPENCOLLADA}/lib)
218         set(OPENCOLLADA_LIBRARIES
219                 OpenCOLLADASaxFrameworkLoader
220                 -lOpenCOLLADAFramework
221                 -lOpenCOLLADABaseUtils
222                 -lOpenCOLLADAStreamWriter
223                 -lMathMLSolver
224                 -lGeneratedSaxParser
225                 -lxml2 -lbuffer -lftoa
226         )
227         # Use UTF functions from collada if LLVM is not enabled
228         if(NOT WITH_LLVM)
229                 list(APPEND OPENCOLLADA_LIBRARIES -lUTF)
230         endif()
231         # pcre is bundled with openCollada
232         #set(PCRE ${LIBDIR}/pcre)
233         #set(PCRE_LIBPATH ${PCRE}/lib)
234         set(PCRE_LIBRARIES pcre)
235         #libxml2 is used
236         #set(EXPAT ${LIBDIR}/expat)
237         #set(EXPAT_LIBPATH ${EXPAT}/lib)
238         set(EXPAT_LIB)
239 endif()
240
241 if(WITH_SDL)
242         set(SDL ${LIBDIR}/sdl)
243         set(SDL_INCLUDE_DIR ${SDL}/include)
244         set(SDL_LIBRARY SDL2)
245         set(SDL_LIBPATH ${SDL}/lib)
246         set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -framework ForceFeedback")
247 endif()
248
249 set(PNG "${LIBDIR}/png")
250 set(PNG_INCLUDE_DIRS "${PNG}/include")
251 set(PNG_LIBPATH ${PNG}/lib)
252
253 set(JPEG "${LIBDIR}/jpeg")
254 set(JPEG_INCLUDE_DIR "${JPEG}/include")
255 set(JPEG_LIBPATH ${JPEG}/lib)
256
257 if(WITH_IMAGE_TIFF)
258         set(TIFF ${LIBDIR}/tiff)
259         set(TIFF_INCLUDE_DIR ${TIFF}/include)
260         set(TIFF_LIBRARY tiff)
261         set(TIFF_LIBPATH ${TIFF}/lib)
262 endif()
263
264 if(WITH_BOOST)
265         set(BOOST ${LIBDIR}/boost)
266         set(BOOST_INCLUDE_DIR ${BOOST}/include)
267         set(BOOST_POSTFIX)
268         set(BOOST_LIBRARIES
269                 boost_date_time${BOOST_POSTFIX}
270                 boost_filesystem${BOOST_POSTFIX}
271                 boost_regex${BOOST_POSTFIX}
272                 boost_system${BOOST_POSTFIX}
273                 boost_thread${BOOST_POSTFIX}
274                 boost_wave${BOOST_POSTFIX}
275         )
276         if(WITH_INTERNATIONAL)
277                 list(APPEND BOOST_LIBRARIES boost_locale${BOOST_POSTFIX})
278         endif()
279         if(WITH_CYCLES_NETWORK)
280                 list(APPEND BOOST_LIBRARIES boost_serialization${BOOST_POSTFIX})
281         endif()
282         if(WITH_OPENVDB)
283                 list(APPEND BOOST_LIBRARIES boost_iostreams${BOOST_POSTFIX})
284         endif()
285         set(BOOST_LIBPATH ${BOOST}/lib)
286         set(BOOST_DEFINITIONS)
287 endif()
288
289 if(WITH_INTERNATIONAL OR WITH_CODEC_FFMPEG)
290         set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -liconv") # boost_locale and ffmpeg needs it !
291 endif()
292
293 if(WITH_OPENIMAGEIO)
294         set(OPENIMAGEIO ${LIBDIR}/openimageio)
295         set(OPENIMAGEIO_INCLUDE_DIRS ${OPENIMAGEIO}/include)
296         set(OPENIMAGEIO_LIBRARIES
297                 ${OPENIMAGEIO}/lib/libOpenImageIO.a
298                 ${PNG_LIBRARIES}
299                 ${JPEG_LIBRARIES}
300                 ${TIFF_LIBRARY}
301                 ${OPENEXR_LIBRARIES}
302                 ${OPENJPEG_LIBRARIES}
303                 ${ZLIB_LIBRARIES}
304         )
305         set(OPENIMAGEIO_LIBRARIES ${OPENIMAGEIO_LIBRARIES} ${LIBDIR}/ffmpeg/lib/libwebp.a)
306         set(OPENIMAGEIO_LIBPATH
307                 ${OPENIMAGEIO}/lib
308                 ${JPEG_LIBPATH}
309                 ${PNG_LIBPATH}
310                 ${TIFF_LIBPATH}
311                 ${OPENEXR_LIBPATH}
312                 ${ZLIB_LIBPATH}
313         )
314         set(OPENIMAGEIO_DEFINITIONS "-DOIIO_STATIC_BUILD")
315         set(OPENIMAGEIO_IDIFF "${LIBDIR}/openimageio/bin/idiff")
316 endif()
317
318 if(WITH_OPENCOLORIO)
319         set(OPENCOLORIO ${LIBDIR}/opencolorio)
320         set(OPENCOLORIO_INCLUDE_DIRS ${OPENCOLORIO}/include)
321         set(OPENCOLORIO_LIBRARIES OpenColorIO tinyxml yaml-cpp)
322         set(OPENCOLORIO_LIBPATH ${OPENCOLORIO}/lib)
323 endif()
324
325 if(WITH_OPENVDB)
326         set(OPENVDB ${LIBDIR}/openvdb)
327         set(OPENVDB_INCLUDE_DIRS ${OPENVDB}/include)
328         set(TBB_INCLUDE_DIRS ${LIBDIR}/tbb/include)
329         set(TBB_LIBRARIES ${LIBDIR}/tbb/lib/libtbb.a)
330         set(OPENVDB_LIBRARIES openvdb blosc ${TBB_LIBRARIES})
331         set(OPENVDB_LIBPATH ${LIBDIR}/openvdb/lib)
332         set(OPENVDB_DEFINITIONS)
333 endif()
334
335 if(WITH_LLVM)
336         set(LLVM_ROOT_DIR ${LIBDIR}/llvm)
337         set(LLVM_VERSION 3.4)
338         if(EXISTS "${LLVM_ROOT_DIR}/bin/llvm-config")
339                 set(LLVM_CONFIG "${LLVM_ROOT_DIR}/bin/llvm-config")
340         else()
341                 set(LLVM_CONFIG llvm-config)
342         endif()
343         execute_process(COMMAND ${LLVM_CONFIG} --version
344                         OUTPUT_VARIABLE LLVM_VERSION
345                         OUTPUT_STRIP_TRAILING_WHITESPACE)
346         execute_process(COMMAND ${LLVM_CONFIG} --prefix
347                         OUTPUT_VARIABLE LLVM_ROOT_DIR
348                         OUTPUT_STRIP_TRAILING_WHITESPACE)
349         execute_process(COMMAND ${LLVM_CONFIG} --libdir
350                         OUTPUT_VARIABLE LLVM_LIBPATH
351                         OUTPUT_STRIP_TRAILING_WHITESPACE)
352         find_library(LLVM_LIBRARY
353                       NAMES LLVMAnalysis # first of a whole bunch of libs to get
354                       PATHS ${LLVM_LIBPATH})
355
356         if(LLVM_LIBRARY AND LLVM_ROOT_DIR AND LLVM_LIBPATH)
357                 if(LLVM_STATIC)
358                         # if static LLVM libraries were requested, use llvm-config to generate
359                         # the list of what libraries we need, and substitute that in the right
360                         # way for LLVM_LIBRARY.
361                         execute_process(COMMAND ${LLVM_CONFIG} --libfiles
362                                         OUTPUT_VARIABLE LLVM_LIBRARY
363                                         OUTPUT_STRIP_TRAILING_WHITESPACE)
364                         string(REPLACE ".a /" ".a;/" LLVM_LIBRARY ${LLVM_LIBRARY})
365                 else()
366                         set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -lLLVM-3.4")
367                 endif()
368         else()
369                 message(FATAL_ERROR "LLVM not found.")
370         endif()
371 endif()
372
373 if(WITH_CYCLES_OSL)
374         set(CYCLES_OSL ${LIBDIR}/osl)
375
376         find_library(OSL_LIB_EXEC NAMES oslexec PATHS ${CYCLES_OSL}/lib)
377         find_library(OSL_LIB_COMP NAMES oslcomp PATHS ${CYCLES_OSL}/lib)
378         find_library(OSL_LIB_QUERY NAMES oslquery PATHS ${CYCLES_OSL}/lib)
379         # WARNING! depends on correct order of OSL libs linking
380         list(APPEND OSL_LIBRARIES ${OSL_LIB_COMP} -force_load ${OSL_LIB_EXEC} ${OSL_LIB_QUERY})
381         find_path(OSL_INCLUDE_DIR OSL/oslclosure.h PATHS ${CYCLES_OSL}/include)
382         find_program(OSL_COMPILER NAMES oslc PATHS ${CYCLES_OSL}/bin)
383
384         if(OSL_INCLUDE_DIR AND OSL_LIBRARIES AND OSL_COMPILER)
385                 set(OSL_FOUND TRUE)
386         else()
387                 message(STATUS "OSL not found")
388                 set(WITH_CYCLES_OSL OFF)
389         endif()
390 endif()
391
392 if(WITH_OPENMP)
393         execute_process(COMMAND ${CMAKE_C_COMPILER} --version OUTPUT_VARIABLE COMPILER_VENDOR)
394         string(SUBSTRING "${COMPILER_VENDOR}" 0 5 VENDOR_NAME) # truncate output
395         if(${VENDOR_NAME} MATCHES "Apple") # Apple does not support OpenMP reliable with gcc and not with clang
396                 set(WITH_OPENMP OFF)
397         else() # vanilla gcc or clang_omp support OpenMP
398                 message(STATUS "Using special OpenMP enabled compiler !") # letting find_package(OpenMP) module work for gcc
399         endif()
400 endif()
401
402 set(EXETYPE MACOSX_BUNDLE)
403
404 set(CMAKE_C_FLAGS_DEBUG "-fno-strict-aliasing -g")
405 set(CMAKE_CXX_FLAGS_DEBUG "-fno-strict-aliasing -g")
406 if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64" OR CMAKE_OSX_ARCHITECTURES MATCHES "i386")
407         set(CMAKE_CXX_FLAGS_RELEASE "-O2 -mdynamic-no-pic -msse -msse2 -msse3 -mssse3")
408         set(CMAKE_C_FLAGS_RELEASE "-O2 -mdynamic-no-pic  -msse -msse2 -msse3 -mssse3")
409         if(NOT CMAKE_C_COMPILER_ID MATCHES "Clang")
410                 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -ftree-vectorize  -fvariable-expansion-in-unroller")
411                 set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ftree-vectorize  -fvariable-expansion-in-unroller")
412         endif()
413 else()
414         set(CMAKE_C_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing")
415         set(CMAKE_CXX_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing")
416 endif()
417
418 if(${XCODE_VERSION} VERSION_EQUAL 5 OR ${XCODE_VERSION} VERSION_GREATER 5)
419         # Xcode 5 is always using CLANG, which has too low template depth of 128 for libmv
420         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
421 endif()
422 # Get rid of eventually clashes, we export some symbols explicite as local
423 set(PLATFORM_LINKFLAGS
424         "${PLATFORM_LINKFLAGS} -Xlinker -unexported_symbols_list -Xlinker '${CMAKE_SOURCE_DIR}/source/creator/osx_locals.map'"
425 )
426
427 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
428 set(PLATFORM_LINKFLAGS "${PLATFORM_LINKFLAGS} -stdlib=libc++")
429
430 # Suppress ranlib "has no symbols" warnings (workaround for T48250)
431 set(CMAKE_C_ARCHIVE_CREATE   "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
432 set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
433 set(CMAKE_C_ARCHIVE_FINISH   "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
434 set(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")