Fix makefile

This commit is contained in:
YohannDR 2022-12-24 16:05:28 +01:00
parent 38c334ba8f
commit 2c0df81fbb

View File

@ -123,8 +123,8 @@ $(ELF) $(MAP): $(OBJ) linker.ld
%.s: %.c
$(MSG) CC $@
# $Q$(PREPROC) $< | $(CPP) $(CPPFLAGS) $< | $(CC) -o $@ $(CFLAGS) && printf '\t.align 2, 0 @ dont insert nops\n' >> $@
$Q$(CPP) $(CPPFLAGS) $< | $(CC) -o $@ $(CFLAGS) && printf '\t.align 2, 0 @ dont insert nops\n' >> $@
$Q$(PREPROC) $< | $(CPP) $(CPPFLAGS) | $(CC) -o $@ $(CFLAGS) && printf '\t.align 2, 0 @ dont insert nops\n' >> $@
# $Q$(CPP) $(CPPFLAGS) | $(CC) -o $@ $(CFLAGS) && printf '\t.align 2, 0 @ dont insert nops\n' >> $@
src/sram/%.s: CFLAGS = -O1 -mthumb-interwork -fhex-asm
src/sram/%.s: src/sram/%.c