diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-11-03 18:48:19 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-11-03 18:48:19 +0100 |
commit | 1cea3af2e617bce30ee4629a6c7b8a7c652a2618 (patch) | |
tree | 2de9a2bd4aeb01ca703a4096933025f439295e1f | |
parent | 8d0b59b71c896bd8abbd2d14ce55f4de513f11e0 (diff) |
Add a simple Makefile
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a21b1c3 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +WAYLAND_EGL_PROGRAMS = egl-wayland-window egl-wayland-window-legacy \ + egl-wayland-pixmap-image egl-wayland-pixmap-surface +VAAPI_PROGRAMS = va-egl va-attach + +.PHONY: all +all: $(WAYLAND_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 + +$(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 $(VAAPI_PROGRAMS) |