summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-03-01 15:33:22 -0800
committerJoshua Haberman <joshua@reverberate.org>2009-03-01 15:33:22 -0800
commit268bb50e8013469bb61eb0e3beeddce365eb7755 (patch)
treecd1f9d3a4d0ba5dd798ae20a5c1c057a73d25d14 /Makefile
parent2d41d385f331b1e55a02917593a6a2464dfe38cd (diff)
Enabled more warnings, fixed the warnings.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
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
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback