livewp/Makefile

20 lines
295 B
Makefile

CFLAGS +=
LDFLAGS := -lm -lcairo -lxcb
OBJECTS := obj/rootwindow.o obj/cairo_context.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 $@