Sfoglia il codice sorgente

Makefile: Add parameter for stack size

bel2125 7 anni fa
parent
commit
0a54197b03
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Makefile

+ 2 - 1
Makefile

@@ -39,6 +39,7 @@ RMRF = rm -rf
 # later becomes /.
 DOCUMENT_ROOT = $(HTMLDIR)
 PORTS = 8080
+USE_STACK_SIZE ?= 102400
 
 BUILD_DIRS = $(BUILD_DIR) $(BUILD_DIR)/src $(BUILD_DIR)/resources
 
@@ -63,7 +64,7 @@ BUILD_DIRS += $(BUILD_DIR)/test
 endif
 
 # only set main compile options if none were chosen
-CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=102400
+CFLAGS += -Wall -Wextra -Wshadow -Wformat-security -Winit-self -Wmissing-prototypes -D$(TARGET_OS) -Iinclude $(COPT) -DUSE_STACK_SIZE=$(USE_STACK_SIZE)
 
 LIBS = -lpthread -lm