]> git.saurik.com Git - apple/xnu.git/blobdiff - tools/lldbmacros/Makefile
xnu-4903.221.2.tar.gz
[apple/xnu.git] / tools / lldbmacros / Makefile
index 30383a3dbe1bc891bf253fd8cfd18a8fc2a6341d..26e79ffb4effd7bddff7d97a1bd9982bd48c2083 100644 (file)
@@ -14,6 +14,9 @@ LLDBMACROS_SOURCE:=$(SRCROOT)/tools/lldbmacros/
 LLDBMACROS_BOOTSTRAP_DEST:=$(OBJPATH)/$(KERNEL_FILE_NAME).dSYM/$(DSYMLLDBMACROSDIR)
 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
+endif
 
 LLDBMACROS_USERDEBUG_FILES:= \
        usertaskdebugging/__init__.py \
@@ -37,7 +40,9 @@ LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
        plugins/zprint_perf_log.py \
        atm.py \
        bank.py \
+       turnstile.py \
        kevent.py \
+       workqueue.py \
        xnu.py \
        xnudefines.py \
        ktrace.py \
@@ -55,6 +60,7 @@ LLDBMACROS_PYTHON_FILES = $(LLDBMACROS_USERDEBUG_FILES) \
        memory.py \
        mbufs.py \
        net.py \
+       skywalk.py \
        ioreg.py \
        utils.py \
        kdp.py \
@@ -77,21 +83,21 @@ ifneq ($(PLATFORM),MacOSX)
                plugins/iosspeedtracer.sh
 endif
 
+include $(MakeInc_rule)
+include $(MakeInc_dir)
 
 INSTALL_LLDBMACROS_PYTHON_FILES=$(addprefix $(LLDBMACROS_DEST), $(LLDBMACROS_PYTHON_FILES))
+$(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,pydir,$(DATA_UNIFDEF),$(LLDBMACROS_DEST)))
+$(eval $(call INSTALLPYTHON_RULE_template,$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME),$(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py,kbpydir,$(DATA_UNIFDEF),$(LLDBMACROS_BOOTSTRAP_DEST)/))
 
-$(INSTALL_LLDBMACROS_PYTHON_FILES): $(LLDBMACROS_DEST)% : $(LLDBMACROS_SOURCE)%
-       $(_v)$(MKDIR) $(dir $@)
-       $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
-       $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
-       $(_v)$(TOUCH) $(LLDBMACROS_DEST)
-
-$(LLDBMACROS_BOOTSTRAP_DEST)/$(KERNEL_LLDBBOOTSTRAP_NAME): $(LLDBMACROS_SOURCE)/core/xnu_lldb_init.py
-       $(_v)$(MKDIR) $(dir $@)
-       $(_v)$(PYTHON) $(LLDBMACROS_SOURCE)/core/syntax_checker.py $< $(_vstdout)
-       $(_v)$(INSTALL) $(DATA_INSTALL_FLAGS) $< $@
+ifeq ($(BUILD_STATIC_LINK),1)
+INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES=$(addprefix $(KERNEL_STATIC_DSYM_LLDBMACROS), $(LLDBMACROS_PYTHON_FILES))
+$(eval $(call INSTALLPYTHON_RULE_template,$(INSTALL_STATIC_DSYM_LLDBMACROS_PYTHON_FILES),$(LLDBMACROS_SOURCE)%,sdpydir,$(DATA_UNIFDEF),$(KERNEL_STATIC_DSYM_LLDBMACROS)))
+$(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)
-
-include $(MakeInc_rule)
-include $(MakeInc_dir)
+       $(_v)$(MKDIR) $(LLDBMACROS_DEST)/builtinkexts
+ifeq ($(BUILD_STATIC_LINK),1)
+       $(_v)$(MKDIR) $(KERNEL_STATIC_DSYM_LLDBMACROS)/builtinkexts
+endif