Make game layer compile before platform layer
This commit is contained in:
parent
23bafb943f
commit
01988b866a
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
|
@ -1,6 +1,9 @@
|
||||||
INTERFACEDIR:=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
INTERFACEDIR:=$(shell pkg-config --variable=pkgdatadir wayland-protocols)
|
||||||
CFLAGS=-Wall -Wextra -Og -ggdb3 -Wno-unused-but-set-variable -Wno-unused-parameter -Wl,--export-dynamic
|
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
|
LIBS=-lwayland-client -lwayland-egl -lEGL -lOpenGL -lxkbcommon -levdev
|
||||||
|
|
||||||
|
default: game.so 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
|
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
|
gcc $(CFLAGS) $(LIBS) $^ -o wayland
|
||||||
|
|
||||||
|
|
@ -17,5 +20,6 @@ xdg-decoration-unstable-v1.c:
|
||||||
wayland-scanner private-code $(INTERFACEDIR)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml xdg-decoration-unstable-v1.c
|
wayland-scanner private-code $(INTERFACEDIR)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml xdg-decoration-unstable-v1.c
|
||||||
xdg-decoration-unstable-v1.h:
|
xdg-decoration-unstable-v1.h:
|
||||||
wayland-scanner client-header $(INTERFACEDIR)/unstable/xdg-decoration/xdg-decoration-unstable-v1.xml 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
|
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