Mesa (master): egl: Install EGL headers.

Chia-I Wu olv at kemper.freedesktop.org
Sun Jan 24 19:50:44 PST 2010


Module: Mesa
Branch: master
Commit: 3f932a444021958d632e3e6334d7b168304dfd74
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f932a444021958d632e3e6334d7b168304dfd74

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Mon Jan 25 11:34:09 2010 +0800

egl: Install EGL headers.

Install EGL (and KHR) headers along with the library.

---

 src/egl/main/Makefile |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/egl/main/Makefile b/src/egl/main/Makefile
index 5b83b43..31f214c 100644
--- a/src/egl/main/Makefile
+++ b/src/egl/main/Makefile
@@ -74,7 +74,15 @@ $(TOP)/$(LIB_DIR)/$(EGL_LIB_NAME): $(OBJECTS)
 		-install $(TOP)/$(LIB_DIR) $(MKLIB_OPTIONS) \
 		$(EGL_LIB_DEPS) $(OBJECTS)
 
-install: default
+install-headers:
+	$(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/KHR
+	$(INSTALL) -m 644 $(TOP)/include/KHR/*.h \
+		$(DESTDIR)$(INSTALL_INC_DIR)/KHR
+	$(INSTALL) -d $(DESTDIR)$(INSTALL_INC_DIR)/EGL
+	$(INSTALL) -m 644 $(TOP)/include/EGL/*.h \
+		$(DESTDIR)$(INSTALL_INC_DIR)/EGL
+
+install: default install-headers
 	$(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
 	$(MINSTALL) $(TOP)/$(LIB_DIR)/$(EGL_LIB_GLOB) \
 		$(DESTDIR)$(INSTALL_LIB_DIR)



More information about the mesa-commit mailing list