From 0fb1eb3403a1442ff5bc5fc3f32f252e6509b8ac Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 7 Oct 2019 20:13:05 -0700 Subject: [PATCH] Added compile-time constants to Makefile. --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 0525ac0..b045e6a 100644 --- a/Makefile +++ b/Makefile @@ -131,6 +131,13 @@ endif # For missing strrchr() #NO_STRRCHR = yes +# Assorted constants +MAX_UNDO_SLOTS = 500 +MAX_FILE_NAME = 80 +TEXT_BUFFER_SIZE = 512 +INPUT_BUFFER_SIZE = 200 +STACK_SIZE = 1024 + ######################################################################### # This section is where Frotz is actually built. @@ -307,6 +314,7 @@ $(SUB_CLEAN): # Compile-time generated defines and strings # +defs: common_defines common_defines: $(COMMON_DEFINES) $(COMMON_DEFINES): ifeq ($(wildcard $(COMMON_DEFINES)), ) @@ -316,6 +324,11 @@ ifeq ($(wildcard $(COMMON_DEFINES)), ) ifeq ($(OS_TYPE), unix) @echo "#define UNIX" >> $@ endif + @echo "#define MAX_UNDO_SLOTS $(MAX_UNDO_SLOTS)" >> $@ + @echo "#define MAX_FILE_NAME $(MAX_FILE_NAME)" >> $@ + @echo "#define TEXT_BUFFER_SIZE $(TEXT_BUFFER_SIZE)" >> $@ + @echo "#define INPUT_BUFFER_SIZE $(INPUT_BUFFER_SIZE)" >> $@ + @echo "#define STACK_SIZE $(STACK_SIZE)" >> $@ ifdef NO_BLORB @echo "#define NO_BLORB" >> $@ endif -- 2.34.1