aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-29 16:59:37 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-29 16:59:37 +0000
commitc534a53b6fe1de24374c2957cedf5940cae84f6c (patch)
tree62886b508a58d1d8eb8be8164fb07cac0486ff8f /Makefile
parent157c79d53c4d04f6c6af1103a2db3a652b240edb (diff)
downloadovm-c534a53b6fe1de24374c2957cedf5940cae84f6c.tar.gz
ovm-c534a53b6fe1de24374c2957cedf5940cae84f6c.tar.bz2
ovm-c534a53b6fe1de24374c2957cedf5940cae84f6c.zip
Make Verbose a universal flag
All objects target LIB anyway, so VERBOSE is a universal macro for this code base.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index ae48255..d0d8c00 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
CC=gcc
+VERBOSE=0
GENERAL-FLAGS=-Wall -Wextra -Werror -Wswitch-enum -std=c11 -I.
DEBUG-FLAGS=-ggdb -fsanitize=address
RELEASE-FLAGS=-O3
-CFLAGS:=$(GENERAL-FLAGS) $(DEBUG-FLAGS)
+CFLAGS:=$(GENERAL-FLAGS) $(DEBUG-FLAGS) -D VERBOSE=$(VERBOSE)
LIBS=
DIST=build
TERM_YELLOW:=$(shell echo -e "\e[0;33m")
@@ -24,8 +25,7 @@ VM_SRC=vm
VM_CODE:=$(addprefix $(VM_SRC)/, inst.c runtime.c)
VM_OBJECTS:=$(VM_CODE:$(VM_SRC)/%.c=$(VM_DIST)/%.o)
VM_DEPS:=$(VM_OBJECTS:%.o=%.d) $(VM_DIST)/main.d
-VM_VERBOSE=0
-VM_CFLAGS:=$(CFLAGS) -D VERBOSE=$(VM_VERBOSE)
+VM_CFLAGS:=$(CFLAGS)
VM_OUT=$(DIST)/ovm.out
## ASSEMBLY setup