From 8d2a9518ef406f43caeb8bfea483949c7d93a903 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Sat, 10 Aug 2024 10:59:02 +0200 Subject: Major rewrite of streamer (WIP) --- makefile | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) (limited to 'makefile') 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 -- cgit v1.2.3