diff options
author | Mikhail Burakov <mburakov@mailbox.org> | 2024-08-10 10:59:02 +0200 |
---|---|---|
committer | Mikhail Burakov <mburakov@mailbox.org> | 2024-08-11 13:13:38 +0200 |
commit | 8d2a9518ef406f43caeb8bfea483949c7d93a903 (patch) | |
tree | 2e2a9eef65fc334fa8865c123083e8228fc1fbb2 /makefile | |
parent | 15377d5ca4a5283d53b2d5373fa15e4374735bf4 (diff) |
Major rewrite of streamer (WIP)
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 30 |
1 files changed, 5 insertions, 25 deletions
@@ -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 |