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