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