summaryrefslogtreecommitdiff
path: root/lib/libdrm/mk/include
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-02-11 10:34:52 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-02-11 10:34:52 +0000
commitbe78449b8f432727284419721a0ab771c692d829 (patch)
treeff8416d35b0f758e18a88d5d0595d4ea565384f9 /lib/libdrm/mk/include
parentffee5617b8194d3eb43883b13f044d9e7632d928 (diff)
add Makefiles to replace upstream use of meson
Diffstat (limited to 'lib/libdrm/mk/include')
-rw-r--r--lib/libdrm/mk/include/Makefile70
1 files changed, 70 insertions, 0 deletions
diff --git a/lib/libdrm/mk/include/Makefile b/lib/libdrm/mk/include/Makefile
new file mode 100644
index 000000000..c1dd8ca98
--- /dev/null
+++ b/lib/libdrm/mk/include/Makefile
@@ -0,0 +1,70 @@
+# $OpenBSD: Makefile,v 1.1 2021/02/11 10:34:51 jsg Exp $
+
+.include "../Makefile.inc"
+
+BASE_FILES= libsync.h \
+ xf86drm.h \
+ xf86drmMode.h
+DRM_FILES= amdgpu_drm.h \
+ drm.h \
+ drm_fourcc.h \
+ drm_mode.h \
+ drm_sarea.h \
+ i915_drm.h \
+ mach64_drm.h \
+ mga_drm.h \
+ msm_drm.h \
+ nouveau_drm.h \
+ qxl_drm.h \
+ r128_drm.h \
+ radeon_drm.h \
+ savage_drm.h \
+ sis_drm.h \
+ tegra_drm.h \
+ vc4_drm.h \
+ via_drm.h \
+ virtgpu_drm.h \
+ vmwgfx_drm.h
+RADEON_FILES= r600_pci_ids.h \
+ radeon_bo.h \
+ radeon_bo_gem.h \
+ radeon_bo_int.h \
+ radeon_cs.h \
+ radeon_cs_gem.h \
+ radeon_cs_int.h \
+ radeon_surface.h
+INTEL_FILES= intel_aub.h \
+ intel_bufmgr.h \
+ intel_debug.h
+AMDGPU_FILES= amdgpu.h
+
+includes:
+ cd ${DRM_SRC} && for i in ${BASE_FILES}; do \
+ cmp -s $$i ${DESTDIR}${X11BASE}/include/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 $$i ${DESTDIR}${X11BASE}/include/$$i; \
+ done
+ cd ${DRM_SRC}/include/drm && for i in ${DRM_FILES}; do \
+ cmp -s $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i; \
+ done
+ cd ${DRM_SRC}/radeon && for i in ${RADEON_FILES}; do \
+ cmp -s $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i; \
+ done
+ cd ${DRM_SRC}/amdgpu && for i in ${AMDGPU_FILES}; do \
+ cmp -s $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i; \
+ done
+.if ${WITH_INTEL} == "yes"
+ cd ${DRM_SRC}/intel && for i in ${INTEL_FILES}; do \
+ cmp -s $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i || \
+ ${INSTALL} ${INSTALL_COPY} -m 444 $$i ${DESTDIR}${X11BASE}/include/libdrm/$$i; \
+ done
+.endif
+
+beforeinstall: includes
+
+obj: _xenocara_obj
+
+.include <bsd.prog.mk>
+.include <bsd.xorg.mk>