Add pre-processor and assembly generation
This commit is contained in:
10
Makefile
10
Makefile
@@ -116,6 +116,16 @@ $(OBJDIR)/%.o: $(SRCDIR)/%.c $(DEPDIR)/%.d | $(OBJDIR) $(DEPDIR)
|
|||||||
@echo compiling $<.
|
@echo compiling $<.
|
||||||
@$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEPFLAGS) -I $(INCDIR) -o $@ $<
|
@$(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
|
##################################### br library
|
||||||
.PHONY: cleanlib libs
|
.PHONY: cleanlib libs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user