diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |