From a08b006b985644816fac4b9eba801ed4d7287ebd Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Thu, 6 Jul 2023 12:19:00 +0200 Subject: [PATCH] Add pre-processor and assembly generation --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index c09ea96..0bf21b3 100644 --- a/Makefile +++ b/Makefile @@ -116,6 +116,16 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c $(DEPDIR)/%.d | $(OBJDIR) $(DEPDIR) @echo compiling $<. @$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) -I $(INCDIR) -o $@ $< +##################################### pre-processed (.i) and assembler (.s) output +%.i: %.c + @echo generating $@ + @$(CC) -E $(CFLAGS) -I $(INCDIR) $< -o $@ + +%.s: %.c + @echo generating $@ + @$(CC) -S -fverbose-asm $(CFLAGS) -I $(INCDIR) $< -o $@ + + ##################################### br library .PHONY: cleanlib libs