cppcheck for Linux and OI
This commit is contained in:
parent
42815c0bab
commit
c82be63ed3
1 changed files with 6 additions and 6 deletions
12
Makefile
12
Makefile
|
|
@ -57,18 +57,18 @@ endif
|
||||||
#
|
#
|
||||||
OS := $(shell uname -s)
|
OS := $(shell uname -s)
|
||||||
ifeq ($(UNAME_S),Linux)
|
ifeq ($(UNAME_S),Linux)
|
||||||
|
# installed by system and in PATH
|
||||||
|
CPPCHECK := cppcheck
|
||||||
DBG_REL +=
|
DBG_REL +=
|
||||||
endif
|
endif
|
||||||
# OpenIndiana and flavours
|
# OpenIndiana and flavours
|
||||||
ifeq ($(UNAME_S),SunOS)
|
ifeq ($(UNAME_S),SunOS)
|
||||||
|
# local installation
|
||||||
|
CPPCHECK := $(HOME)/devl/cppcheck/bin/cppcheck
|
||||||
DBG_REL +=
|
DBG_REL +=
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# CPPCHECK = $(HOME)/devl/cppcheck/bin/cppcheck
|
|
||||||
CPPCHECK := cppcheck
|
|
||||||
|
|
||||||
SRC_DIR := src
|
SRC_DIR := src
|
||||||
OBJ_DIR := obj
|
OBJ_DIR := obj
|
||||||
SRC := $(wildcard $(SRC_DIR)/*.cpp)
|
SRC := $(wildcard $(SRC_DIR)/*.cpp)
|
||||||
|
|
@ -119,8 +119,8 @@ $(APP): $(OBJS)
|
||||||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
|
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
|
||||||
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
$(CXX) $(CXXFLAGS) -o $@ -c $<
|
||||||
|
|
||||||
DIRS:
|
DIRS: obj bin
|
||||||
mkdir -p ./obj ./bin
|
mkdir -p obj bin
|
||||||
|
|
||||||
cppcheck.out: $(SRC)
|
cppcheck.out: $(SRC)
|
||||||
$(info output to cppcheck.out)
|
$(info output to cppcheck.out)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue