Fix incorrect variable for OS
This commit is contained in:
parent
c82be63ed3
commit
f5cdcbbd5b
1 changed files with 5 additions and 3 deletions
8
Makefile
8
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue