Commit Diff


commit - 2728e3ac013c5b2b361c5e58d295b13748f96753
commit + fc1da1d1f8ac2cd6eee51391d2b2e25869d13e72
blob - 0b0ba30b6172eaba4730b9ad43e4f92816041951
blob + 15f8ad7f8ec3daf894a763515678e24f8b7c5038
--- Makefile
+++ Makefile
@@ -1,18 +1,21 @@
-# Makefile for bxnotify
+# Makefile
 #
-# A very basic X notification tool, a.k.a. Brett's X notify.
+# bxnotify
+# A very basic X notification utility, a.k.a. Brett's X notify.
 # See LICENSE.md and README.md for details.
 
 PREFIX ?= $(HOME)/.local
 CC ?= cc
-CFLAGS = -std=c99 -Wall -Wextra $(shell pkg-config --cflags x11)
+CFLAGS = -std=c11 -pedantic -Wall -Wextra $(shell pkg-config --cflags xft)
 # Enable debug output (uncomment to use):
 # CFLAGS += -DDEBUG
-LDFLAGS = $(shell pkg-config -libs x11)
-LIBS = -lX11
+LDFLAGS = 
+LDLIBS = $(shell pkg-config --libs xft x11)
 
+all: bxnotify
+
 bxnotify: bxnotify.o
-	$(CC) $(LDFLAGS) -o $@ bxnotify.o $(LIBS)
+	$(CC) $(LDFLAGS) -o $@ bxnotify.o $(LDLIBS)
 
 config.h:
 	[ -f config.h ] || cp config.def.h config.h
@@ -30,5 +33,5 @@ install:
 uninstall:
 	rm -f $(DESTDIR)$(PREFIX)/bin/bxnotify
 
-.PHONY: clean install uninstall
+.PHONY: all clean install uninstall