aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-09-05 11:12:38 +0200
committerMattias Andrée <maandree@kth.se>2020-09-05 11:43:56 +0200
commit062827d797e46f8819bab1fa9c71a855fc5db5f3 (patch)
tree34a8ad2f22cc9280ec6e3c9000f43c700fabcdc8 /Makefile
parentbump year (diff)
downloadhungarian-algorithm-n3-062827d797e46f8819bab1fa9c71a855fc5db5f3.tar.gz
hungarian-algorithm-n3-062827d797e46f8819bab1fa9c71a855fc5db5f3.tar.bz2
hungarian-algorithm-n3-062827d797e46f8819bab1fa9c71a855fc5db5f3.tar.xz
Make code nice
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 4 insertions, 8 deletions
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