Functional hot reloading
This commit is contained in:
parent
9a4c57d4c2
commit
23bafb943f
4 changed files with 58 additions and 13 deletions
8
Makefile
8
Makefile
|
|
@ -1,8 +1,8 @@
|
|||
INTERFACEDIR:=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
||||
CFLAGS=-Wall -Wextra -Og -ggdb3 -Wno-unused-but-set-variable -Wno-unused-parameter
|
||||
CFLAGS=-Wall -Wextra -Og -ggdb3 -Wno-unused-but-set-variable -Wno-unused-parameter -Wl,--export-dynamic
|
||||
LIBS=-lwayland-client -lwayland-egl -lEGL -lOpenGL -lxkbcommon -levdev
|
||||
wayland: wayland.c xdg-shell-protocol.c xdg-shell-client-protocol.h zwp-text-input-unstable-v3-client-protocol.c zwp-text-input-unstable-v3-protocol.h xdg-decoration-unstable-v1.c xdg-decoration-unstable-v1.h
|
||||
gcc $(CFLAGS) $(LIBS) wayland.c xdg-shell-protocol.c xdg-decoration-unstable-v1.c zwp-text-input-unstable-v3-client-protocol.c -o wayland
|
||||
wayland: wayland.c xdg-shell-protocol.c xdg-shell-client-protocol.h zwp-text-input-unstable-v3-client-protocol.c zwp-text-input-unstable-v3-protocol.h xdg-decoration-unstable-v1.c xdg-decoration-unstable-v1.h game.h
|
||||
gcc $(CFLAGS) $(LIBS) $^ -o wayland
|
||||
|
||||
# TODO: Normalize these annoying names
|
||||
xdg-shell-protocol.c:
|
||||
|
|
@ -18,4 +18,4 @@ xdg-decoration-unstable-v1.c:
|
|||
xdg-decoration-unstable-v1.h:
|
||||
wayland-scanner client-header $(INTERFACEDIR)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml xdg-decoration-unstable-v1.h
|
||||
game.so: game.c game.h
|
||||
gcc $(CFLAGS) game.c --shared -o game.so
|
||||
gcc $(CFLAGS) game.c -shared -o game.so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue