From a2fd34f81fe4259d5ef27f1684177753a03f0f90 Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Wed, 26 Apr 2017 10:53:48 +0200 Subject: [PATCH] Debug: Add a Makefile rule for assembler intermediates. The main Makefile rules directly compile to object files; this target is only for debug purposes. --- Makefile.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.in b/Makefile.in index a5e80ff4..25af140c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -99,6 +99,17 @@ $(objdir)/%.o: $(objdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h $(E)echo CC -o $@ -c $< $(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -c $< + +$(objdir)/%.S: $(srcdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h + $(E)echo CC -o $@ -S $< + $(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -S $< + +$(objdir)/%.S: $(objdir)/%.c $(objdir)/.dir-stamp $(objdir)/sysdep/paths.h + $(E)echo CC -o $@ -S $< + $(Q)$(CC) $(CFLAGS) -MMD -MP -o $@ -S $< + + + $(objdir)/.dir-stamp: $(E)echo MKDIR -p $(addprefix $(objdir)/,$(dirs) doc) $(Q)mkdir -p $(addprefix $(objdir)/,$(dirs) doc)