From 40f152e11fb4a89546e459861ac0348c58c8d449 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 8 Mar 2009 21:05:24 -0500 Subject: [PATCH] allow users to override CFLAGS This fixes an issue with the Makefile that was not allowing users to override cflags and keeping -Wall in the flags when compiling. --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b1add9b..f65e5a9 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ INSTALL = install -CFLAGS = -Wall - SRCS = \ cli.c \ espeakup.c \ @@ -42,3 +40,6 @@ queue.o: queue.c espeakup.h softsynth.o: softsynth.c espeakup.h synth.o: synth.c espeakup.h + +%.o: %.c + $(CC) -c -Wall $(CFLAGS) $(CPPFLAGS) -o $@ $<