livewp/Makefile

20 lines
378 B
Makefile
Raw Normal View History

2024-04-10 15:09:57 +03:00
CFLAGS += `pkg-config --cflags cairo xcb lua54`
LDFLAGS := `pkg-config --libs cairo xcb lua54`
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 $@