[DEV] compile and link objective-c code for mac

This commit is contained in:
Edouard DUPIN 2013-04-07 13:11:34 +02:00
parent dfc960939e
commit fa06553c5e

View File

@ -558,7 +558,7 @@ $(Q)$(CCACHE) $(TARGET_CXX) \
$(PRIVATE_CFLAGS) $(PRIVATE_CPPFLAGS) \ $(PRIVATE_CFLAGS) $(PRIVATE_CPPFLAGS) \
-D__EWOL_APPL_NAME__="$(PROJECT_NAME2)" \ -D__EWOL_APPL_NAME__="$(PROJECT_NAME2)" \
-c -MMD -MP -g \ -c -MMD -MP -g \
-fgnu-runtime \ -x objective-c \
$(call path-from-top,$<) $(call path-from-top,$<)
endef endef
@ -568,7 +568,7 @@ endef
define transform-m-to-o define transform-m-to-o
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
@echo "$(DISPLAY_ARM_MODE)m++: $(PRIVATE_MODULE) <== $(call path-from-top,$<)" @echo "$(DISPLAY_ARM_MODE)m: $(PRIVATE_MODULE) <== $(call path-from-top,$<)"
$(call check-pwd-is-top-dir) $(call check-pwd-is-top-dir)
$(Q)$(CCACHE) $(TARGET_CC) \ $(Q)$(CCACHE) $(TARGET_CC) \
-o $@ \ -o $@ \
@ -579,7 +579,7 @@ $(Q)$(CCACHE) $(TARGET_CC) \
$(PRIVATE_CFLAGS) $(PRIVATE_CPPFLAGS) \ $(PRIVATE_CFLAGS) $(PRIVATE_CPPFLAGS) \
-D__EWOL_APPL_NAME__="$(PROJECT_NAME2)" \ -D__EWOL_APPL_NAME__="$(PROJECT_NAME2)" \
-c -MMD -MP -g \ -c -MMD -MP -g \
-fgnu-runtime \ -x objective-c \
$(call path-from-top,$<) $(call path-from-top,$<)
endef endef
@ -702,7 +702,7 @@ endif
############################################################################### ###############################################################################
## Commands for running gcc to link an executable. ## Commands for running gcc to link an executable.
############################################################################### ###############################################################################
ifeq ("$(TARGET_OS)","MacOs") ifneq ("$(TARGET_OS)","MacOs")
define transform-o-to-executable define transform-o-to-executable
@mkdir -p $(dir $@) @mkdir -p $(dir $@)
@echo "Executable (mac): $(PRIVATE_MODULE) ==> $(call path-from-top,$@)" @echo "Executable (mac): $(PRIVATE_MODULE) ==> $(call path-from-top,$@)"