aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-22 13:36:00 -0400
committeriamcheeseman <[email protected]>2026-05-22 13:36:00 -0400
commitd9ed80ff077fe893800e4c32876567824a87390f (patch)
tree2a32ceb2ede8f04aeaa0ab272c6020412631d84c
parentb0fa516fae1eb5cac20515ab0994b68c62fabc79 (diff)
makefile: add echo and full-clean targets
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a5d1c86..ebbae51 100644
--- a/Makefile
+++ b/Makefile
@@ -5,10 +5,16 @@ SRC+=$(wildcard teensy/platform/${PLATFORM}/**/*.c)
SRC+=$(wildcard teensy/platform/${PLATFORM}/*.c)
OBJ=$(SRC:%.c=.obj/%.o)
-.PHONY: all run clean
+.PHONY: all echo run clean full-clean
all: Makefile.dep ${OUT}
+echo:
+ @echo CFLAGS=${CFLAGS}
+ @echo LDFLAGS=${LDFLAGS}
+ @echo SRC=${SRC}
+ @echo OBJ=${OBJ}
+
${OUT}: ${OBJ}
${CC} -o $@ ${LDFLAGS} ${OBJ}
@@ -28,4 +34,8 @@ run: all
clean:
rm -f ${OBJ} ${OUT}
+# Don't use this unless you are fine with your custom config getting deleted
+full-clean: clean
+ rm -rf .obj config.mk
+
include Makefile.dep