From 268bb50e8013469bb61eb0e3beeddce365eb7755 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 1 Mar 2009 15:33:22 -0800 Subject: Enabled more warnings, fixed the warnings. --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 98bbb06..91e58c5 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,15 @@ .PHONY: all clean +CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic all: pbstream.o pbstruct.o tests clean: rm -f pbstream.o pbstruct.o tests pbstream.o: pbstream.c pbstream.h - gcc -std=c99 -O3 -Wall -o pbstream.o -c pbstream.c + gcc $(CFLAGS) -o pbstream.o -c pbstream.c pbstruct.o: pbstruct.c pbstruct.h - gcc -std=c99 -O3 -Wall -o pbstruct.o -c pbstruct.c + gcc $(CFLAGS) -o pbstruct.o -c pbstruct.c tests: tests.c pbstream.c pbstream.h - gcc -std=c99 -O3 -Wall -o tests tests.c + gcc $(CFLAGS) -o tests tests.c -- cgit v1.2.3