livewp/Makefile

20 lines
378 B
Makefile
Raw Permalink Normal View History

CFLAGS += `pkg-config --cflags cairo xcb lua53`
LDFLAGS := `pkg-config --libs cairo xcb lua53`
2024-04-09 18:33:54 +03:00
OBJECTS := obj/common.o obj/rootwindow.o obj/cairo_context.o obj/api_draw.o
2024-04-04 14:45:55 +03:00
livewp: lib
$(CC) $(CFLAGS) $(OBJECTS) src/main.c $(LDFLAGS) -o livewp
2024-04-09 12:13:23 +03:00
testrun: all
./livewp
2024-04-04 14:45:55 +03:00
all: livewp
lib: $(OBJECTS)
clean:
$(RM) $(OBJECTS) livewp
obj/%.o: src/%.c
$(CC) $(CFLAGS) -c $^ -o $@