about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-28 23:52:07 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-28 23:52:07 -0700
commitc5d5431990361c921dc850d078d85a797d219e06 (patch)
treea1a61461c1dd8b8ed7751dcec27dd075af44f04e /makefile
parent4e39c6bb082d6f7c0aaab9767b9b279490bce290 (diff)
downloadmu-c5d5431990361c921dc850d078d85a797d219e06.tar.gz
3275
Follow convention more closely by using CXXFLAGS for C++ files.
Diffstat (limited to 'makefile')
-rw-r--r--makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/makefile b/makefile
index 66b92ba9..af4dfe81 100644
--- a/makefile
+++ b/makefile
@@ -1,12 +1,12 @@
 all: mu_bin core.mu
 
 CXX ?= c++
-CFLAGS ?= -g -O3
+CXXFLAGS ?= -g -O3
 # reduce memory usage for small servers
-CFLAGS := ${CFLAGS} --param ggc-min-expand=1 --param ggc-min-heapsize=32768
+CXXFLAGS := ${CXXFLAGS} --param ggc-min-expand=1 --param ggc-min-heapsize=32768
 
 mu_bin: makefile mu.cc termbox/libtermbox.a
-	${CXX} ${CFLAGS} -Wall -Wextra -ftrapv -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin
+	${CXX} ${CXXFLAGS} -Wall -Wextra -ftrapv -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin
 
 # To see what the program looks like after all layers have been applied, read
 # mu.cc