README: mention also pkg-config as a build dependency
[xicursorset.git] / Makefile
index 3fff7f7..407d4cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 CFLAGS := -ansi -Wall -pedantic
 CFLAGS += -ggdb
+CFLAGS += $(shell pkg-config --cflags x11 xi xcursor)
 
-LDFLAGS := $(shell pkg-config --cflags --libs xi xcursor)
+LDLIBS := $(shell pkg-config --libs x11 xi xcursor)
 
-xicursorset: xicursorset.c
-       $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS)
+all: xicursorset
 
 clean:
        rm -f xicursorset *.o