CFLAGS = LDLIBS = -lX11 -lm -lXinerama .PHONY: all clean all: bgdraw clean: rm bgdraw bgdraw: bgdraw.c $(CC) -o $@ $^ $(CFLAGS) $(LDLIBS)