spkp

Stacking wayland compositor
git clone git://git.z3bra.org/sp:kp.git
Log | Files | Refs

commit 9f817e64de62b1853ef5d79737d0ea9a013764c3
parent d9297195a41fb19b58a494f2a74b2fa0247ee43c
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue, 10 Nov 2020 11:05:01 +0100

Add makefile for unaware people

Diffstat:
Amakefile | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/makefile b/makefile @@ -0,0 +1,30 @@ +-include config.mk + +all: compositor + +compositor: compositor.o proto/xdg-shell-protocol.o + $(LD) $(LDFLAGS) compositor.o proto/xdg-shell-protocol.o $(WL_LIBS) -o $@ + +compositor.o: config.h proto/xdg-shell-protocol.h +.c.o: + $(CC) $(CPPFLAGS) $(CFLAGS) $(WL_CFLAGS) -c $< -o $@ + +config.h: config.def.h + cp config.def.h $@ + +proto/xdg-shell-protocol.c: $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml + wayland-scanner public-code < $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml > $@ + +proto/xdg-shell-protocol.h: $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml + wayland-scanner server-header < $(WL_PROTO)/stable/xdg-shell/xdg-shell.xml > $@ + +clean: + rm -f compositor *.o proto/* + +install: compositor + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp compositor $(DESTDIR)$(PREFIX)/bin/compositor + chmod 755 $(DESTDIR)$(PREFIX)/bin/compositor + +uninstall: + rm $(DESTDIR)$(PREFIX)/bin/compositor