diff --git a/Makefile b/Makefile index 8e9e03c15..d4ba41d9f 100644 --- a/Makefile +++ b/Makefile @@ -75,5 +75,8 @@ udev: sudo udevadm control --reload-rules sudo adduser $USER dialout +# easy printing of MAKE VARIABLES +print-%: ; @echo $* = $($*) + # Dummy target to test for GNU make availability _test: diff --git a/armsrc/Makefile b/armsrc/Makefile index 9199051ef..c7937b490 100644 --- a/armsrc/Makefile +++ b/armsrc/Makefile @@ -159,5 +159,4 @@ help: @echo Multi-OS Makefile, you are running on $(DETECTED_OS) @echo Possible targets: @echo + all - Build the full image $(OBJDIR)/fullimage.s19 - @echo + clean - Clean $(OBJDIR) - + @echo + clean - Clean $(OBJDIR) \ No newline at end of file diff --git a/client/Makefile b/client/Makefile index 1248e4021..45aa079b9 100644 --- a/client/Makefile +++ b/client/Makefile @@ -269,7 +269,9 @@ lua_build: cd ../liblua && make $(LUAPLATFORM) .PHONY: all clean -print-%: ; @echo $* = $($*) + +# easy printing of MAKE VARIABLES +print-%: ; @echo $* = $($*) $(OBJDIR)/%_NOSIMD.o : %.c $(OBJDIR)/%.d $(CC) $(DEPFLAGS) $(CFLAGS) $(HARD_SWITCH_NOSIMD) -c -o $@ $< diff --git a/common/Makefile.common b/common/Makefile.common index c223e0858..367fc18cb 100644 --- a/common/Makefile.common +++ b/common/Makefile.common @@ -109,6 +109,9 @@ $(OBJDIR)/%.s19: $(OBJDIR)/%.elf version.c: default_version.c perl ../tools/mkversion.pl .. > $@ || $(COPY) $^ $@ +# easy printing of MAKE VARIABLES +print-%: ; @echo $* = $($*) + # Automatic dependency generation DEPENDENCY_FILES = $(patsubst %.c,$(OBJDIR)/%.d,$(notdir $(THUMBSRC))) \ $(patsubst %.c,$(OBJDIR)/%.d,$(notdir $(ARMSRC))) \