CFLAGS += `pkg-config --cflags cairo xcb lua53` LDFLAGS := `pkg-config --libs cairo xcb lua53` OBJECTS := obj/common.o obj/rootwindow.o obj/cairo_context.o obj/api_draw.o livewp: lib $(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o livewp testrun: all ./livewp all: livewp lib: $(OBJECTS) clean: $(RM) $(OBJECTS) livewp obj/%.o: src/%.c $(CC) $(CFLAGS) -c $^ -o $@