## MIG ##
-MIGFLAGS=$(Extra_MIG_Flags)
+MIGFLAGS=$(CFLAGS) $(Extra_MIG_Flags)
ifneq ($(USERDEFS),)
CFILES += $(foreach FILE, $(USERDEFS:.defs=_user.c), $(OBJROOT)/$(Project)/$(notdir $(FILE)))
endif
ifneq ($(SDKROOT),)
Extra_CC_Flags += -isysroot $(SDKROOT)
Extra_LD_Flags += -Wl,-syslibroot,$(SDKROOT)
+export MIGCC = $(shell xcrun -find -sdk $(SDKROOT) cc)
endif
## Dylib Support ##
RELEASE_ALL_OFILES = $(foreach OFILE, \
$(CFILES:.c=.o) \
$(MFILES:.m=.o) \
- $(CXXFILES:.%=.o) \
+ $(CXXFILES:.cc=.o) \
$(OTHER_OFILES), \
$(OBJROOT)/$(Project)/$(notdir $(OFILE)))
DEBUG_ALL_OFILES = $(RELEASE_ALL_OFILES:.o=$(DEBUG_OFILE_SUFFIX))
@make install-launchd-plists
endif
@make after_install
- @$(MAKE) compress_man_pages
migdefs::
@$(MKDIR) $(OBJROOT)/$(Project)