livewp/Makefile

20 lines
303 B
Makefile

CFLAGS +=
LDFLAGS := -lm -lX11 -lSDL2 -lSDL2_image
OBJECTS := obj/rootwindow.o obj/sdl_xroot.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 $@