@@ -1,22 +1,22 @@
|
|
1 |
-
APPNAME=
|
2 |
|
3 |
$(APPNAME): $(APPNAME).c
|
4 |
cc -g -std=c11 -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
|
5 |
|
6 |
all: $(APPNAME) lint memcheck helgrind
|
7 |
|
8 |
.PHONY: lint
|
9 |
lint:
|
10 |
cpplint --filter=-readability/casting $(APPNAME).c
|
11 |
|
12 |
.PHONY: memcheck
|
13 |
memcheck:
|
14 |
-
valgrind --
|
15 |
|
16 |
.PHONY: helgrind
|
17 |
helgrind:
|
18 |
valgrind --quiet --tool=helgrind ./$(APPNAME)
|
19 |
|
20 |
.PHONY: clean
|
21 |
clean:
|
22 |
rm -f $(APPNAME)
|
1 |
+
APPNAME=hello_i_of_w_pri
|
2 |
|
3 |
$(APPNAME): $(APPNAME).c
|
4 |
cc -g -std=c11 -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
|
5 |
|
6 |
all: $(APPNAME) lint memcheck helgrind
|
7 |
|
8 |
.PHONY: lint
|
9 |
lint:
|
10 |
cpplint --filter=-readability/casting $(APPNAME).c
|
11 |
|
12 |
.PHONY: memcheck
|
13 |
memcheck:
|
14 |
+
valgrind --tool=memcheck ./$(APPNAME)
|
15 |
|
16 |
.PHONY: helgrind
|
17 |
helgrind:
|
18 |
valgrind --quiet --tool=helgrind ./$(APPNAME)
|
19 |
|
20 |
.PHONY: clean
|
21 |
clean:
|
22 |
rm -f $(APPNAME)
|