Minor update of the configuration file parsing, and some cosmetics to make the code...
[breezed.git] / Makefile
index 54a818e..2a4b9e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,12 +22,12 @@ BINARY_PATH = $(DESTDIR)/usr/bin
 MAN_PATH = $(DESTDIR)/usr/share/man/man1
 PM_SLEEPD = $(DESTDIR)/usr/lib/pm-utils/sleep.d
 
-CFLAGS = -Wall -ansi -pedantic $(OPTIMIZE_FLAG)
+CFLAGS = -Wall -D_GNU_SOURCE -ansi -pedantic $(OPTIMIZE_FLAG)
 
 all: breezed
 
 breezed: breezed.c
-       $(CC) -o $@ $^ $(LDFLAGS)
+       $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
 
 install: breezed $(DESTDIR)/etc/breezed.conf
        install -m 755 breezed $(BINARY_PATH)