modify gcc_makefile template to use c preprocessor on assembly files

pull/1205/head
sg- 2015-06-20 13:43:14 -05:00
parent 85bf37b778
commit 73bfa3dd29
1 changed files with 5 additions and 1 deletions

View File

@ -65,8 +65,12 @@ clean:
rm -f $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS) rm -f $(PROJECT).bin $(PROJECT).elf $(PROJECT).hex $(PROJECT).map $(PROJECT).lst $(OBJECTS) $(DEPS)
{% endblock %} {% endblock %}
.asm.o:
$(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
.s.o: .s.o:
$(AS) $(CPU) -o $@ $< $(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
.S.o:
$(CC) $(CPU) -c -x assembler-with-cpp -o $@ $<
.c.o: .c.o:
$(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $< $(CC) $(CC_FLAGS) $(CC_SYMBOLS) -std=gnu99 $(INCLUDE_PATHS) -o $@ $<