make miniglx use libdrm and libpciaccess
authorDave Airlie <airliedfreedesktop.org>
Mon, 3 Apr 2006 07:30:23 +0000 (07:30 +0000)
committerDave Airlie <airliedfreedesktop.org>
Mon, 3 Apr 2006 07:30:23 +0000 (07:30 +0000)
src/glx/mini/Makefile

index e87905acba4473b552bc1f1d4e58b62fafcf68c2..3a95849d1a6d4bf9840d8f4b359a84d68b5ea64a 100644 (file)
@@ -12,9 +12,6 @@ C_SOURCES = \
          $(TOP)/src/mesa/glapi/glapi.c \
          $(TOP)/src/mesa/glapi/glthread.c \
          $(TOP)/src/mesa/drivers/dri/common/glcontextmodes.c \
-         $(DRM_SOURCE_PATH)/libdrm/xf86drm.c \
-         $(DRM_SOURCE_PATH)/libdrm/xf86drmHash.c \
-         $(DRM_SOURCE_PATH)/libdrm/xf86drmRandom.c \
          miniglx.c \
          miniglx_events.c
 
@@ -57,7 +54,7 @@ default: depend $(LIB_DIR)/$(GL_LIB_NAME)
 $(LIB_DIR)/$(GL_LIB_NAME):  $(OBJECTS) Makefile
        $(TOP)/bin/mklib -o $(GL_LIB) -linker '$(CC)' \
                -major 1 -minor 2 $(MKLIB_OPTIONS) \
-               -install $(LIB_DIR) $(GL_LIB_DEPS) $(OBJECTS)
+               -install $(LIB_DIR) $(GL_LIB_DEPS) $(OBJECTS) `/usr/bin/pkg-config --libs libdrm` `/usr/bin/pkg-config --libs pciaccess`
        rm -f $(LIB_DIR)/miniglx.conf
        install example.miniglx.conf $(LIB_DIR)/miniglx.conf