vmware/xorg: Clean Makefile a bit
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 24 Nov 2009 18:16:37 +0000 (19:16 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Tue, 24 Nov 2009 18:16:37 +0000 (19:16 +0100)
src/gallium/winsys/drm/vmware/xorg/Makefile

index 383a6f975b480f9be238cc3f93b2aa873324a918..ea0ce18fd1e4c7658dfa430ab6bf29b09e1120ff 100644 (file)
@@ -20,6 +20,9 @@ LIBS = \
        $(TOP)/src/gallium/drivers/svga/libsvga.a \
        $(GALLIUM_AUXILIARIES)
 
+LINKS = \
+       $(shell pkg-config --libs libdrm)
+
 DRIVER_DEFINES = \
        -DHAVE_CONFIG_H
 
@@ -31,9 +34,8 @@ TARGET_STAGING = $(TOP)/$(LIB_DIR)/gallium/$(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)
+$(TARGET): $(OBJECTS) Makefile $(LIBS)
+       $(MKLIB) -noprefix -o $@ $(OBJECTS) $(LIBS) $(LINKS)
 
 $(TOP)/$(LIB_DIR)/gallium:
        mkdir -p $@