summaryrefslogtreecommitdiff
path: root/am-pat-rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'am-pat-rules.mk')
-rw-r--r--am-pat-rules.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/am-pat-rules.mk b/am-pat-rules.mk
new file mode 100644
index 0000000000..fe44940103
--- /dev/null
+++ b/am-pat-rules.mk
@@ -0,0 +1,15 @@
+$(outdir)/%.o: $(srcdir)/%.c | $(outdir)/.deps
+ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
+ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+ $(am__mv) $$depbase.Tpo $$depbase.Po
+
+$(outdir)/%.lo: $(srcdir)/%.c | $(outdir)/.deps
+ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
+ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
+ $(am__mv) $$depbase.Tpo $$depbase.Plo
+
+$(outdir)/.deps:
+ $(AM_V_at)$(MKDIR_P) $@
+
+$(outdir)/%.la:
+ $(AM_V_CCLD)$(LINK) $^