Fix incorrect variable for OS

This commit is contained in:
benn 2025-04-24 11:20:01 +02:00
parent c82be63ed3
commit f5cdcbbd5b

View file

@ -56,13 +56,13 @@ endif
# OS dependent flags
#
OS := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
ifeq ($(OS),Linux)
# installed by system and in PATH
CPPCHECK := cppcheck
DBG_REL +=
endif
# OpenIndiana and flavours
ifeq ($(UNAME_S),SunOS)
ifeq ($(OS),SunOS)
# local installation
CPPCHECK := $(HOME)/devl/cppcheck/bin/cppcheck
DBG_REL +=
@ -119,11 +119,13 @@ $(APP): $(OBJS)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
$(CXX) $(CXXFLAGS) -o $@ -c $<
DIRS: obj bin
.PHONEY: DIRS
DIRS:
mkdir -p obj bin
cppcheck.out: $(SRC)
$(info output to cppcheck.out)
$(info Check using: : $(CPPCHECK))
$(CPPCHECK) $(CHECKFLAGS) $^ > $@ 2>&1
.PHONY: clean