summaryrefslogtreecommitdiffstats
path: root/src/egl/wayland/wayland-drm
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-01-24 20:38:01 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-01-26 10:07:11 +0100
commit8b902056d53e0e14f7d58ac7f95091ab06abc72e (patch)
tree5910a2c884eb8cecf8d91943bea1874798689cf5 /src/egl/wayland/wayland-drm
parentdc435ae774b1deed3d00b7c7d33133c08b626737 (diff)
downloadexternal_mesa3d-8b902056d53e0e14f7d58ac7f95091ab06abc72e.zip
external_mesa3d-8b902056d53e0e14f7d58ac7f95091ab06abc72e.tar.gz
external_mesa3d-8b902056d53e0e14f7d58ac7f95091ab06abc72e.tar.bz2
automake: src/egl/wayland
So we can use the wayland scanner makro, which is way better than our previous runtime-pkgconfig hack. Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/egl/wayland/wayland-drm')
-rw-r--r--src/egl/wayland/wayland-drm/.gitignore3
-rw-r--r--src/egl/wayland/wayland-drm/Makefile47
-rw-r--r--src/egl/wayland/wayland-drm/Makefile.am15
3 files changed, 15 insertions, 50 deletions
diff --git a/src/egl/wayland/wayland-drm/.gitignore b/src/egl/wayland/wayland-drm/.gitignore
deleted file mode 100644
index f4ed848..0000000
--- a/src/egl/wayland/wayland-drm/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-wayland-drm-client-protocol.h
-wayland-drm-server-protocol.h
-wayland-drm-protocol.c
diff --git a/src/egl/wayland/wayland-drm/Makefile b/src/egl/wayland/wayland-drm/Makefile
deleted file mode 100644
index 42222a9..0000000
--- a/src/egl/wayland/wayland-drm/Makefile
+++ /dev/null
@@ -1,47 +0,0 @@
-# src/egl/wayland/wayland-drm/Makefile
-
-TOP = ../../../..
-include $(TOP)/configs/current
-
-GEN_SOURCES = wayland-drm-protocol.c
-
-GEN_HEADERS = wayland-drm-client-protocol.h wayland-drm-server-protocol.h
-
-wayland_drm_SOURCES = wayland-drm.c $(GEN_SOURCES)
-wayland_drm_OBJECTS = $(wayland_drm_SOURCES:.c=.o)
-
-wayland_drm_INCLUDES = \
- $(WAYLAND_CFLAGS) \
- -I$(TOP)/src/egl/main \
- -I$(TOP)/include
-
-# Generate protocol sources
-prefix=$(shell $(PKG_CONFIG) --variable=prefix wayland-server)
-exec_prefx=$(shell $(PKG_CONFIG) --variable=exec_prefix wayland-server)
-wayland_protocoldir = $(PWD)/protocol
-wayland_scanner=$(exec_prefix)/bin/wayland-scanner
-
-default: depend libwayland-drm.a $(GEN_SOURCES) $(GEN_HEADERS)
-
-libwayland-drm.a: $(wayland_drm_OBJECTS) Makefile
- $(MKLIB) -o wayland-drm -static $(wayland_drm_OBJECTS)
-
-depend:
- rm -f depend
- touch depend
- $(MKDEP) $(MKDEP_OPTIONS) $(wayland_drm_INCLUDES) $(wayland_drm_SOURCES) 2> /dev/null
-
-clean:
- rm -rf libwayland-drm.a $(wayland_drm_OBJECTS) \
- $(GEN_SOURCES) $(GEN_HEADERS)
- rm -f depend depend.bak
-
-install:
- @echo -n ""
-
-$(wayland_drm_OBJECTS): %.o: %.c $(GEN_HEADERS)
- $(CC) -c $(wayland_drm_INCLUDES) $(CFLAGS) $< -o $@
-
-include $(prefix)/share/aclocal/wayland-scanner.mk
-
-sinclude depend
diff --git a/src/egl/wayland/wayland-drm/Makefile.am b/src/egl/wayland/wayland-drm/Makefile.am
new file mode 100644
index 0000000..cf15eda
--- /dev/null
+++ b/src/egl/wayland/wayland-drm/Makefile.am
@@ -0,0 +1,15 @@
+AM_CFLAGS = -I$(top_srcdir)/src/egl/main \
+ -I$(top_srcdir)/include \
+ $(DEFINES) \
+ $(WAYLAND_CFLAGS)
+
+noinst_LTLIBRARIES = libwayland-drm.la
+libwayland_drm_la_SOURCES = wayland-drm.c wayland-drm-protocol.c
+noinst_HEADERS = wayland-drm.h
+
+BUILT_SOURCES = wayland-drm-protocol.c \
+ wayland-drm-client-protocol.h \
+ wayland-drm-server-protocol.h
+CLEANFILES = $(BUILT_SOURCES)
+
+@wayland_scanner_rules@