From 062827d797e46f8819bab1fa9c71a855fc5db5f3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 5 Sep 2020 11:12:38 +0200 Subject: Make code nice MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 58867b4..2023518 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,7 @@ WARN = -Wall -Wextra -pedantic -Wdouble-promotion -Wformat=2 -Winit-self -Wmissi -Wunsuffixed-float-constants -Wsuggest-attribute=const -Wsuggest-attribute=noreturn \ -Wsuggest-attribute=pure -Wsuggest-attribute=format -Wnormalized=nfkc -Wconversion \ -fstrict-aliasing -fstrict-overflow -fipa-pure-const -ftree-vrp -fstack-usage \ - -funsafe-loop-optimizations -# excluded: -Wdeclaration-after-statement + -funsafe-loop-optimizations -Wdeclaration-after-statement all: hungarian @@ -17,14 +16,11 @@ all: hungarian hungarian: hungarian.c gcc -std=gnu99 $(OPTIMISE) $(WARN) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -o $@ $< -test: - ./"hungarian" - -valgrind: - valgrind --tool=memcheck --leak-check=full ./"hungarian" +test: hungarian + ./hungarian clean: - -rm hungarian + -rm -f -- hungarian .PHONY: all test valgrind clean -- cgit v1.2.3-70-g09d2