vmware/xorg: Stage driver in lib/gallium
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 24 Nov 2009 17:44:39 +0000 (18:44 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 24 Nov 2009 17:46:40 +0000 (18:46 +0100)
src/gallium/winsys/drm/vmware/xorg/Makefile

index e152263256a8067ce93177730d84d7f028eb7d0e..4f6ec11418d0cec8311c3a880287a75dae05dc92 100644 (file)
@@ -23,17 +23,24 @@ LIBS = \
 DRIVER_DEFINES = \
        -DHAVE_CONFIG_H
 
+TARGET_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(TARGET)
 
 #############################################
 
 
 
-all default: $(TARGET)
+all default: $(TARGET) $(TARGET_STAGING)
 
 $(TARGET): $(OBJECTS) Makefile $(TOP)/src/gallium/state_trackers/xorg/libxorgtracker.a $(LIBS)
        $(TOP)/bin/mklib -noprefix -o $@ \
        $(OBJECTS) $(LIBS) $(shell pkg-config --libs libdrm) -ldrm_intel
 
+$(TOP)/$(LIB_DIR)/gallium:
+       mkdir -p $@
+
+$(TARGET_STAGING): $(TARGET) $(TOP)/$(LIB_DIR)/gallium
+       $(INSTALL) $(TARGET) $(TOP)/$(LIB_DIR)/gallium
+
 clean:
        rm -rf $(OBJECTS) $(TARGET)