livewp/Makefile

20 lines
329 B
Makefile

CFLAGS +=
LDFLAGS := -lm -lcairo -lxcb -llua
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 $@