Download Makefile source code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
hello: hello.c
	cc -g -std=c11 -Wall -Wextra hello.c -o hello -pthread

all: hello lint memcheck helgrind

.PHONY: lint
lint:
	cpplint --filter=-readability/casting hello.c

.PHONY: memcheck
memcheck:
	valgrind --quiet --tool=memcheck ./hello

.PHONY: helgrind
helgrind:
	valgrind --quiet --tool=helgrind ./hello

.PHONY: clean
clean:
	rm -f hello