-# XXX work-around glapi.c build failure for DRI builds:
-ifeq ($(WINDOW_SYSTEM), dri)
-GLAPI_LIB =
-else
GLAPI_LIB = libglapi.a
-endif
# Default: build dependencies, then asm_subdirs, then convenience
# Make archive of gl* API dispatcher functions only
$(GLAPI_LIB): $(GLAPI_OBJECTS) asm_subdirs
- @ $(TOP)/bin/mklib -o glapi -static $(GLAPI_OBJECTS)
+ if [ "${WINDOW_SYSTEM}" = "dri" ] ; then \
+ $(TOP)/bin/mklib -o glapi -static ; \
+ else \
+ $(TOP)/bin/mklib -o glapi -static $(GLAPI_OBJECTS) ; \
+ fi
######################################################################