diff options
| author | Stacy Harper <contact@stacyharper.net> | 2021-08-24 18:52:05 +0200 |
|---|---|---|
| committer | John Sullivan <jsullivan@csumb.edu> | 2021-10-19 23:12:01 -0700 |
| commit | f559b3d999ea185b35a165eeef3e56004fbc5d78 (patch) | |
| tree | 0d4d9b76c593e906e5a4e9da2f579a518760280d /Makefile | |
| parent | 2d6610e3bfb8bbc9d1236eb49e0b1b399df0f24a (diff) | |
| download | suggpicker-f559b3d999ea185b35a165eeef3e56004fbc5d78.tar.gz | |
Drop wld and implement our own pangocairo renderer
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Makefile b/Makefile index 3afd46e..a498597 100644 --- a/Makefile +++ b/Makefile @@ -3,16 +3,15 @@ include config.mk NAME=wvkbd BIN=${NAME}-${LAYOUT} SRC=. -WLDSRC=wld -PKGS = fontconfig wayland-client xkbcommon pixman-1 +PKGS = wayland-client xkbcommon pangocairo WVKBD_SOURCES += $(wildcard $(SRC)/*.c) WVKBD_HEADERS += $(wildcard $(SRC)/*.h) CFLAGS += -std=gnu99 -Wall -g -DWITH_WAYLAND_SHM -DLAYOUT=\"layout.${LAYOUT}.h\" CFLAGS += $(shell pkg-config --cflags $(PKGS)) -LDFLAGS =wld/libwld.a $(shell pkg-config --libs $(PKGS)) -lm -lutil +LDFLAGS =$(shell pkg-config --libs $(PKGS)) -lm -lutil -lrt WAYLAND_HEADERS = $(wildcard proto/*.xml) @@ -22,7 +21,7 @@ SOURCES = $(WVKBD_SOURCES) $(WAYLAND_SRC) OBJECTS = $(SOURCES:.c=.o) -all: wld ${BIN} +all: ${BIN} proto/%-client-protocol.c: proto/%.xml wayland-scanner code < $? > $@ @@ -35,14 +34,8 @@ $(OBJECTS): $(HDRS) $(WVKBD_HEADERS) wvkbd-${LAYOUT}: $(OBJECTS) layout.${LAYOUT}.h $(CC) -o wvkbd-${LAYOUT} $(OBJECTS) $(LDFLAGS) -wld: wld/libwld.a - -wld/libwld.a: - $(MAKE) -C wld ENABLE_DRM=0 - clean: rm -f $(OBJECTS) $(HDRS) $(WAYLAND_SRC) ${BIN} - $(MAKE) -C wld clean format: clang-format -i $(WVKBD_SOURCES) $(WVKBD_HEADERS) |
