]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/Makefile
xnu-4903.270.47.tar.gz
[apple/xnu.git] / tools / lldbmacros / Makefile
index 26e79ffb4effd7bddff7d97a1bd9982bd48c2083..aec946f227246c6f3206cbcd2fe2e1a865907398 100644 (file)
@@ -15,7 +15,7 @@ LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSD
 LLDBMACROS_DEST:=$(LLDBMACROS_BOOTSTRAP_DEST)/lldbmacros/
 LLDBMACROS_USERDEBUG_FILES=
 ifeq ($(BUILD_STATIC_LINK),1)
-KERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros
+KERNEL_STATIC_DSYM_LLDBMACROS := $(OBJPATH)/$(KERNEL_FILE_NAME).link/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)/lldbmacros/
 endif
 
 LLDBMACROS_USERDEBUG_FILES:= \
@@ -96,7 +96,13 @@ $(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHO
 $(eval $(call INSTALLPYTHON_RULE_template,$(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbsdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS)/../))
 endif
 
-lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME)
+ifeq ($(BUILD_STATIC_LINK),1)
+STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS := \
+       $(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES) \
+       $(KERNEL_STATIC_DSYM_LLDBMACROS)/../$(KERNEL_LLDBBOOTSTRAP_NAME)
+endif
+
+lldbmacros_install: $(INSTALL_LLDBMACROS_PYTHON_FILES) $(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME) $(STATIC_DSYM_LLDBMACROS_INSTALL_TARGETS)
        $(_v)$(MKDIR) $(LLDBMACROS_DEST)/builtinkexts
 ifeq ($(BUILD_STATIC_LINK),1)
        $(_v)$(MKDIR) $(KERNEL_STATIC_DSYM_LLDBMACROS)/builtinkexts