Skip to content

Commit

Permalink
emit build/.d files through a separate command to enable compatibilit…
Browse files Browse the repository at this point in the history
…y with sdcc 4.3.0
  • Loading branch information
carlossless authored and whitequark committed Jan 26, 2024
1 parent 9167386 commit 0aac428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/library/fx2rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ $(LIBFX2)/.stamp: $(wildcard $(LIBFX2)/*.c $(LIBFX2)/*.asm $(LIBFX2)/include/*.h
-include build/*.d
build/%.rel: %.c
@mkdir -p $(dir $@)
$(SDCC) -Wp,-MQ,$@,-MMD,build/$*.d -c -o $@ $<
$(SDCC) -MQ $@ -MMD -o build/$*.d $<
$(SDCC) -c -o $@ $<

build/%.rel: %.asm
@mkdir -p $(dir $@)
Expand Down

0 comments on commit 0aac428

Please sign in to comment.