APPNAME=hello_w
$(APPNAME): $(APPNAME).c
cc -g -std=c11 -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
all: $(APPNAME) lint memcheck helgrind
.PHONY: lint
lint:
cpplint --filter=-readability/casting $(APPNAME).c
.PHONY: memcheck
memcheck:
valgrind --quiet --tool=memcheck ./$(APPNAME)
.PHONY: helgrind
helgrind:
valgrind --quiet --tool=helgrind ./$(APPNAME)
.PHONY: clean
clean:
rm -f $(APPNAME)