livewp/Makefile

20 lines
303 B
Makefile
Raw Normal View History

2024-04-04 14:45:55 +03:00
CFLAGS +=
2024-04-09 12:13:23 +03:00
LDFLAGS := -lm -lX11 -lSDL2 -lSDL2_image
OBJECTS := obj/rootwindow.o obj/sdl_xroot.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 $@