From c82be63ed359a82733324223503a3f1ee774d8ea Mon Sep 17 00:00:00 2001 From: benn Date: Sat, 5 Apr 2025 22:51:15 +0200 Subject: [PATCH] cppcheck for Linux and OI --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a7a0661..4cbc821 100755 --- a/Makefile +++ b/Makefile @@ -57,18 +57,18 @@ endif # OS := $(shell uname -s) ifeq ($(UNAME_S),Linux) + # installed by system and in PATH + CPPCHECK := cppcheck DBG_REL += endif # OpenIndiana and flavours ifeq ($(UNAME_S),SunOS) + # local installation + CPPCHECK := $(HOME)/devl/cppcheck/bin/cppcheck DBG_REL += endif - -# CPPCHECK = $(HOME)/devl/cppcheck/bin/cppcheck -CPPCHECK := cppcheck - SRC_DIR := src OBJ_DIR := obj SRC := $(wildcard $(SRC_DIR)/*.cpp) @@ -119,8 +119,8 @@ $(APP): $(OBJS) $(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(CXX) $(CXXFLAGS) -o $@ -c $< -DIRS: - mkdir -p ./obj ./bin +DIRS: obj bin + mkdir -p obj bin cppcheck.out: $(SRC) $(info output to cppcheck.out)