+
+# -- deps
+
+PHP_PSI_DEPEND = $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(PHP_PSI_SOURCES:.c=.dep))
+
+.PHONY: psi-clean-depend
+psi-clean-depend:
+ -rm -f $(PHP_PSI_DEPEND)
+
+psi-clean: psi-clean-depend
+
+$(PHP_PSI_BUILDDIR)/%.dep: $(PHP_PSI_SRCDIR)/%.c
+ $(CC) -MM -MG -MF $@ -MT $(patsubst $(PHP_PSI_SRCDIR)/%,$(PHP_PSI_BUILDDIR)/%,$(@:.dep=.lo)) \
+ $(CPPFLAGS) $(DEFS) $(INCLUDES) $< \
+ || touch $@
+
+php_psi_stdinc.h:
+
+ifneq ($(findstring clean,$(MAKECMDGOALS)),clean)
+ifneq ($(PSI_DEPS),)
+-include $(PHP_PSI_DEPEND)
+endif
+endif
+
+
+# -- deps