20 lines
378 B
Makefile
20 lines
378 B
Makefile
CFLAGS += `pkg-config --cflags cairo xcb lua54`
|
|
LDFLAGS := `pkg-config --libs cairo xcb lua54`
|
|
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 $@
|