mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-01-18 16:51:08 +00:00
add conditional override var LOG_USE_COLOR to makefile
This commit is contained in:
parent
50271edd8f
commit
25bf542b46
5
makefile
5
makefile
@ -9,7 +9,12 @@ EXE := $(BIN_DIR)/$(program).exe
|
|||||||
SRC := $(wildcard $(SRC_DIR)/*.c)
|
SRC := $(wildcard $(SRC_DIR)/*.c)
|
||||||
OBJ := $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
OBJ := $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
||||||
|
|
||||||
|
LOG_USE_COLOR ?= yes
|
||||||
|
ifeq ($(LOG_USE_COLOR), yes)
|
||||||
|
CPPFLAGS := -Iinclude -MMD -MP -DLOG_USE_COLOR
|
||||||
|
else
|
||||||
CPPFLAGS := -Iinclude -MMD -MP
|
CPPFLAGS := -Iinclude -MMD -MP
|
||||||
|
endif
|
||||||
CFLAGS = -O -Wall -W -pedantic -ansi -std=c99
|
CFLAGS = -O -Wall -W -pedantic -ansi -std=c99
|
||||||
LDFLAGS := -Llib
|
LDFLAGS := -Llib
|
||||||
LDLIBS := -lm
|
LDLIBS := -lm
|
||||||
|
Loading…
Reference in New Issue
Block a user