multiple files
This commit is contained in:
parent
5943b483ce
commit
864df46d69
6 changed files with 324 additions and 296 deletions
14
Makefile
14
Makefile
|
|
@ -2,8 +2,16 @@ LIBS=sdl3 opengl wayland-client
|
|||
CFLAGS=-g -Wall -Wextra $(shell pkg-config --cflags $(LIBS))
|
||||
LDFLAGS=$(shell pkg-config --libs $(LIBS))
|
||||
|
||||
all:
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o glonkers main.c
|
||||
objects = renderer.o
|
||||
|
||||
run: all
|
||||
glonkers: $(objects) glonkers.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -o glonkers $^
|
||||
|
||||
$(objects): %.o: %.c
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) -c $^ -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.o glonkers
|
||||
|
||||
run: glonkers
|
||||
SDL_VIDEODRIVER="wayland,x11" ./glonkers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue