From e34b87146d28c1efcf607cf3755059fe4cf124f5 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Wed, 12 Dec 2018 03:20:33 +0100 Subject: Update makefile to allow disablig -Xmx flag --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a3f220e..26cecdc 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ SOURCES := $(shell find src -iname '*.java') # debug or release mode DEBUG=1 +LIMIT_RAM=1 # java compiler configuraton JAVAC := javac @@ -18,7 +19,10 @@ USE_JDB := 0 # java runtime configuration JAVA := java -JAVA_ARGS := -cp ../lib/gson-2.6.2.jar:. -Xmx2G +JAVA_ARGS := -cp ../lib/gson-2.6.2.jar:. +ifeq ($(LIMIT_RAM),1) + JAVA_ARGS += -Xmx2G +endif ifeq ($(USE_JDB),1) JAVA_ARGS += -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 endif -- cgit v1.2.1