There are use cases where additional flags should be added to CFLAGS or
LDFLAGS, e.g. when using Conda environment.
include variables.mak
-CC = gcc
-CFLAGS = -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE)
-LDFLAGS = -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent
+CC ?= gcc
+CFLAGS += -Wall -$(OPT_LEVEL) -ggdb $(if $(COVERAGE), -DVM_COVERAGE)
+LDFLAGS += -lpthread -Wl,--no-as-needed -ljson-c -lm -lstdc++ -Wl,--no-as-needed -ldl -levent
CC_SRCS ?= "--cc dut.v"
-CC = gcc
-CFLAGS = -Wall -O3 -ggdb -fPIC -Werror
-LDFLAGS = -levent -shared -fPIC
+CC ?= gcc
+CFLAGS += -Wall -O3 -ggdb -fPIC -Werror
+LDFLAGS += -levent -shared -fPIC
OBJ_DIR ?= .