From 8d11183e27f116057bed713c8f0d224af6427302 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 24 Feb 2014 02:12:22 +0100 Subject: Enable extra warnings --- src/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/Makefile b/src/Makefile index c36fa56..6d40c6b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,23 +1,24 @@ BINARIES=../bin/extract_version_1 ../bin/extract_version_2 ../bin/extract_version_3 ../bin/split_version_2 ../bin/map_coords ../bin/convert_coords binaries: $(BINARIES) +CFLAGS+=-Wextra ../bin/extract_version_3: export/extract_version_3.c export/mystdlib.c - @$(CC) -O2 -o ../bin/extract_version_3 export/extract_version_3.c export/mystdlib.c -lz -I export + @$(CC) $(CFLAGS) -O2 -o ../bin/extract_version_3 export/extract_version_3.c export/mystdlib.c -lz -I export ../bin/extract_version_2: export/extract_version_2.c export/mystdlib.c - @$(CC) -O3 -o ../bin/extract_version_2 export/extract_version_2.c export/mystdlib.c -I export + @$(CC) $(CFLAGS) -O3 -o ../bin/extract_version_2 export/extract_version_2.c export/mystdlib.c -I export ../bin/extract_version_1: export/extract_version_1.c export/mystdlib.c - @$(CC) -O3 -o ../bin/extract_version_1 export/extract_version_1.c export/mystdlib.c -I export + @$(CC) $(CFLAGS) -O3 -o ../bin/extract_version_1 export/extract_version_1.c export/mystdlib.c -I export ../bin/split_version_2: export/split_version_2.c - @$(CC) -O3 -o ../bin/split_version_2 export/split_version_2.c + @$(CC) $(CFLAGS) -O3 -o ../bin/split_version_2 export/split_version_2.c ../bin/map_coords: export/map_coords.c export/mystdlib.c - @$(CC) -O3 -o ../bin/map_coords export/map_coords.c export/mystdlib.c -I export + @$(CC) $(CFLAGS) -O3 -o ../bin/map_coords export/map_coords.c export/mystdlib.c -I export ../bin/convert_coords: export/convert_coords.c - @$(CC) -O3 -o ../bin/convert_coords export/convert_coords.c -lm + @$(CC) $(CFLAGS) -O3 -o ../bin/convert_coords export/convert_coords.c -lm clean: @rm -f $(BINARIES) -- cgit v1.2.3