aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-05-08 17:11:40 +0530
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-05-08 17:11:40 +0530
commit02b20e353366afcd8890bf8991e09bf653df5bf3 (patch)
tree1bbf378f43f15e566856f95229d1b0273543ec2b /Makefile
parent3679b80216741e6c2c03080762865872daff967b (diff)
downloadsnek-master.tar.gz
snek-master.tar.bz2
snek-master.zip
Added README and release flagsHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5bfc6d1..678a38e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,12 @@
CC=g++
-CFLAGS=-Wall -Wextra -Werror -Wswitch-enum -ggdb -fsanitize=address -fsanitize=undefined -std=c++17
+GFLAGS=-Wall -Wextra -Werror -Wswitch-enum -std=c++17
+DFLAGS=-ggdb -fsanitize=address -fsanitize=undefined
+RFLAGS=-O3
+ifdef RELEASE
+CFLAGS=$(GFLAGS) $(RFLAGS)
+else
+CFLAGS=$(GFLAGS) $(DFLAGS)
+endif
LIBS=-lm -lraylib
ARGS=