aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-20 00:36:29 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-20 00:36:29 -0400
commitc4585d7cfd92a295e17500a0d3ddfedf95d92cdd (patch)
tree1241d96ac7c10cbf5bfe47d700bb3479088e2ac7 /Makefile
parent43a28773cf1ddc52d5ab605d056092eb47ee3b0c (diff)
Deduplicate Num code using the same templating technique as integers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c6cd808e..6b71a346 100644
--- a/Makefile
+++ b/Makefile
@@ -163,6 +163,9 @@ config.mk: configure.sh
# Integer implementations depend on the shared header:
src/stdlib/int64.o src/stdlib/int32.o src/stdlib/int16.o src/stdlib/int8.o: src/stdlib/intX.c.h
+# Num implementations depend on the shared header:
+src/stdlib/num32.o src/stdlib/num64.o: src/stdlib/numX.c.h
+
# Specifically src/tomo.c needs to recompile if CHANGES.md changes:
src/tomo.o: src/tomo.c src/ast.h src/environment.h src/types.h config.mk src/changes.md.h
@$(ECHO) $(CC) $(CFLAGS_PLACEHOLDER) -c $< -o $@