APPNAME=hello_i_of_w_shr
$(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 --tool=memcheck ./$(APPNAME)
.PHONY: helgrind
helgrind:
valgrind --quiet --tool=helgrind ./$(APPNAME)
.PHONY: clean
clean:
rm -f $(APPNAME)