summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile30
1 files changed, 5 insertions, 25 deletions
diff --git a/makefile b/makefile
index fddd5a0..6f46d1b 100644
--- a/makefile
+++ b/makefile
@@ -2,18 +2,9 @@ bin:=$(notdir $(shell pwd))
src:=$(wildcard *.c)
obj:=$(src:.c=.o)
-obj+=\
- toolbox/buffer.o \
- toolbox/io_muxer.o \
- toolbox/perf.o
-
libs:=\
- egl \
- gbm \
- glesv2 \
- libdrm \
- libva \
- libva-drm
+ libpipewire-0.3 \
+ wayland-client
protocols_dir:=\
wlr-protocols/unstable
@@ -26,19 +17,9 @@ res:=\
luma.glsl \
chroma.glsl
-ifdef USE_WAYLAND
- obj:=$(patsubst %,%.o,$(protocols)) $(obj)
- headers:=$(patsubst %,%.h,$(protocols))
- libs+=wayland-client
- CFLAGS+=-DUSE_WAYLAND
-endif
-
-ifdef USE_PIPEWIRE
- libs+=libpipewire-0.3
- CFLAGS+=-DUSE_PIPEWIRE
-endif
+obj:=$(patsubst %,%.o,$(protocols)) $(obj)
+headers:=$(patsubst %,%.h,$(protocols))
-#CFLAGS+=-DUSE_EGL_MESA_PLATFORM_SURFACELESS
CFLAGS+=$(shell pkg-config --cflags $(libs))
LDFLAGS+=$(shell pkg-config --libs $(libs))
@@ -63,8 +44,7 @@ $(bin): $(obj)
wayland-scanner private-code $< $@
clean:
- -rm $(bin) $(obj) $(headers) \
- $(foreach proto,$(protocols),$(proto).h $(proto).o)
+ -rm $(bin) $(obj) $(headers)
.PHONY: all clean