WAYLAND_EGL_PROGRAMS = egl-wayland-window egl-wayland-window-legacy \ egl-wayland-pixmap-image egl-wayland-pixmap-surface CAIRO_EGL_PROGRAMS = cairo-egl-wayland-window-surface VAAPI_PROGRAMS = va-egl va-attach .PHONY: all all: $(WAYLAND_EGL_PROGRAMS) $(CAIRO_EGL_PROGRAMS) # verbosity stuff DEFAULT_VERBOSITY=0 V_CC = $(v_cc_$(V)) v_cc_ = $(v_cc_$(DEFAULT_VERBOSITY)) v_cc_0 = @echo " CC " $@; $(WAYLAND_EGL_PROGRAMS): %: %.c $(V_CC) $(CC) -o $@ $< `pkg-config --cflags --libs wayland-client wayland-egl egl gl` -lm $(CAIRO_EGL_PROGRAMS): %: %.c $(V_CC) $(CC) -o $@ $< `pkg-config --cflags --libs wayland-client wayland-egl egl gl cairo-egl` $(VAAPI_PROGRAMS): %: %.c $(V_CC) $(CC) -o $@ $< `pkg-config --cflags --libs wayland-client wayland-egl libva libva-wayland` clean: rm -rf $(WAYLAND_EGL_PROGRAMS) rm -rf $(CAIRO_EGL_PROGRAMS) rm -rf $(VAAPI_PROGRAMS)