Just write a few lines and it saves so much time. Don't try to automate it too much though.
10 lines
155 B
Makefile
10 lines
155 B
Makefile
CC=clang++
|
|
CFLAGS=-pedantic -Wall
|
|
|
|
list: list.cpp
|
|
$(CC) $(CFLAGS) $^ -o $@
|
|
|
|
.PHONY: memcheck_list
|
|
memcheck_list: list
|
|
valgrind --leak-check=full ./list;
|