Add install target for egl
authorJohannes Engel <jcnengel@googlemail.com>
Wed, 11 Feb 2009 10:31:05 +0000 (11:31 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 11 Feb 2009 06:01:40 +0000 (07:01 +0100)
Signed-off-by: Johannes Engel <jcnengel@googlemail.com>
Acked-by: Jakob Bornecrantz <jakob@vmware.com>
src/egl/Makefile
src/egl/drivers/Makefile
src/egl/drivers/demo/Makefile
src/egl/drivers/dri/Makefile
src/egl/drivers/glx/Makefile
src/egl/drivers/xdri/Makefile
src/egl/main/Makefile

index 024453f8bb1cec9a872371e7508d02aa98522384..5b09e178c63b6f8a5fa09a5d617fbb0f7d96c56e 100644 (file)
@@ -1,6 +1,7 @@
 # src/egl/Makefile
 
 TOP = ../..
+include $(TOP)/configs/current
 
 SUBDIRS = main drivers
 
@@ -15,6 +16,12 @@ subdirs:
                fi \
        done
 
+install:
+       @for dir in $(SUBDIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir && $(MAKE) install) || exit 1 ; \
+               fi \
+       done
 
 clean:
        -@for dir in $(SUBDIRS) ; do \
index f0538f563f7ff93a28f6734cfbe7ef27e7894445..dde4ee22551d231d69db0931d52313d52faba2a3 100644 (file)
@@ -16,6 +16,12 @@ subdirs:
                fi \
        done
 
+install:
+       @ for dir in $(SUBDIRS) ; do \
+               if [ -d $$dir ] ; then \
+                       (cd $$dir ; $(MAKE) install) || exit 1 ; \
+               fi \
+       done
 
 clean:
        @for dir in $(SUBDIRS) ; do \
index 6ca25aa5d656a60abfe9efc447cfc35dc4b632fa..d908cdb4b25197fc84deecab62506ce619f50d06 100644 (file)
@@ -25,7 +25,9 @@ $(TOP)/$(LIB_DIR)/demodriver.so: $(OBJECTS)
                -ldflags '$(LDFLAGS)' -install $(TOP)/$(LIB_DIR) \
                $(OBJECTS)
 
-
+install:
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
+       $(INSTALL) $(TOP)/$(LIB_DIR)/demodriver.so $(DESTDIR)$(INSTALL_LIB_DIR)
 
 clean:
        -rm -f *.o
index d7eba653b2d6919c61e283d33a1a96aa490ba73e..be2f9b6bea39a1102fbb10eefb381452f18c14dc 100644 (file)
@@ -48,6 +48,8 @@ $(TOP)/$(LIB_DIR)/libEGLdri.so: $(OBJECTS)
                -major 1 -minor 0 \
                -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS) $(LIBS)
 
+install: $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
+       $(INSTALL) $(TOP)/$(LIB_DIR)/libEGLdri.so $(DESTDIR)$(INSTALL_LIB_DIR)
 
 clean:
        -rm -f *.o
index 3cd5276513300e1c2bd533d658252061822c19ce..090a230ca34c926bb03ca75a34069a051cee6feb 100644 (file)
@@ -56,6 +56,8 @@ $(TOP)/$(LIB_DIR)/$(DRIVER_NAME): $(OBJECTS)
                -install $(TOP)/$(LIB_DIR) \
                $(OBJECTS) $(DRM_LIB) $(MISC_LIBS)
 
+install: $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
+       $(INSTALL) $(TOP)/$(LIB_DIR)/$(DRIVER_NAME) $(DESTDIR)$(INSTALL_LIB_DIR)
 
 clean:
        rm -f *.o
index a721b997e6963c2b2220e9c7f2934c414d72b7a3..db4b7100027b1262362c99c8acce7e7c5f7848a9 100644 (file)
@@ -52,6 +52,8 @@ $(TOP)/$(LIB_DIR)/$(DRIVER_NAME): $(OBJECTS)
                -install $(TOP)/$(LIB_DIR) \
                $(OBJECTS) $(DRM_LIB) $(MISC_LIBS)
 
+install: $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
+       $(INSTALL) $(TOP)/$(LIB_DIR)/$(DRIVER_NAME) $(DESTDIR)$(INSTALL_LIB_DIR)
 
 clean:
        rm -f *.o
index 8ea60c0199df8e095e476036e112c12b031bc5fe..89b4a200bcd9750c99763cb78e66964646f0aad9 100644 (file)
@@ -65,7 +65,9 @@ $(TOP)/$(LIB_DIR)/libEGL.so: $(OBJECTS)
                -major 1 -minor 0 \
                -install $(TOP)/$(LIB_DIR) -ldl $(OBJECTS) $(LIBS)
 
-
+install:
+       $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)
+       $(INSTALL) $(TOP)/$(LIB_DIR)/libEGL.so* $(DESTDIR)$(INSTALL_LIB_DIR)
 
 clean:
        -rm -f *.o *.so*