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)
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue