macosx.mk (afa18672) macosx.mk (7501fd1b)
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

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

289 $(T_LDFLAGS) $(gb_macos_LDFLAGS) \
290 $(call gb_LinkTarget__get_liblinkflags,$(LINKED_LIBS)) \
291 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
292 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
293 $(foreach object,$(OBJCXXOBJECTS),$(call gb_ObjCxxObject_get_target,$(object))) \
294 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
295 $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
296 $(LIBS) \
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

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

289 $(T_LDFLAGS) $(gb_macos_LDFLAGS) \
290 $(call gb_LinkTarget__get_liblinkflags,$(LINKED_LIBS)) \
291 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \
292 $(foreach object,$(CXXOBJECTS),$(call gb_CxxObject_get_target,$(object))) \
293 $(foreach object,$(OBJCXXOBJECTS),$(call gb_ObjCxxObject_get_target,$(object))) \
294 $(foreach object,$(GENCXXOBJECTS),$(call gb_GenCxxObject_get_target,$(object))) \
295 $(foreach lib,$(LINKED_STATIC_LIBS),$(call gb_StaticLibrary_get_target,$(lib))) \
296 $(LIBS) \
297 -o $(if $(call gb_Library_is_udk_versioned,$(1)),$(1).$(gb_UDK_MAJOR),$(1)) \
297 -o $(1) \
298 `cat $${DYLIB_FILE}` && \
299 $(if $(filter Library,$(TARGETTYPE)),\
300 $(PERL) $(SOLARENV)/bin/macosx-change-install-names.pl Library $(LAYER) $(1) && \
298 `cat $${DYLIB_FILE}` && \
299 $(if $(filter Library,$(TARGETTYPE)),\
300 $(PERL) $(SOLARENV)/bin/macosx-change-install-names.pl Library $(LAYER) $(1) && \
301 ln -shf $(if $(call gb_Library_is_udk_versioned,$(1)),$(1).$(gb_UDK_MAJOR),$(1)) \
302 $(patsubst %.dylib,%.jnilib,$(1)) &&) \
301 ln -f $(1) $(patsubst %.dylib,%.jnilib,$(1)) &&) \
303 rm -f $${DYLIB_FILE})
304endef
305
306define gb_LinkTarget__command_symlink_udk_versioned_library
307 $(if $(call gb_Library_is_udk_versioned,$(1)),
308 $(call gb_Helper_abbreviate_dirs,\
302 rm -f $${DYLIB_FILE})
303endef
304
305define gb_LinkTarget__command_symlink_udk_versioned_library
306 $(if $(call gb_Library_is_udk_versioned,$(1)),
307 $(call gb_Helper_abbreviate_dirs,\
309 rm -f $(1) && ln -s $(notdir $(1)).$(gb_UDK_MAJOR) $(1)))
308 rm -f $(1).$(gb_UDK_MAJOR) && \
309 mv $(1) $(1).$(gb_UDK_MAJOR) && \
310 ln -shf $(1).$(gb_UDK_MAJOR) $(1)))
310endef
311
312# parameters: 1-linktarget 2-cobjects 3-cxxobjects
313define gb_LinkTarget__command_staticlink
314$(call gb_Helper_abbreviate_dirs,\
315 mkdir -p $(dir $(1)) && \
316 $(gb_AR) -rsu $(1) \
317 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \

--- 179 unchanged lines hidden ---
311endef
312
313# parameters: 1-linktarget 2-cobjects 3-cxxobjects
314define gb_LinkTarget__command_staticlink
315$(call gb_Helper_abbreviate_dirs,\
316 mkdir -p $(dir $(1)) && \
317 $(gb_AR) -rsu $(1) \
318 $(foreach object,$(COBJECTS),$(call gb_CObject_get_target,$(object))) \

--- 179 unchanged lines hidden ---