mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
chg: easy printing of MAKE variables
Usage:: make print-FLASHTOOL cd bootrom; make print-APP_CFLAGS cd client; make print-GCC_VERSION
This commit is contained in:
parent
3839ce006d
commit
28f1f23d48
4 changed files with 10 additions and 3 deletions
3
Makefile
3
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:
|
||||
|
|
|
@ -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)
|
|
@ -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 $@ $<
|
||||
|
|
|
@ -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))) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue