livewp/Makefile

20 lines
332 B
Makefile

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