# Helper libraries used by many drivers:
# Make archive of core mesa object files
-libmesa.a: $(MESA_OBJECTS)
+libmesa.a: $(MESA_OBJECTS) asm_subdirs
@ $(TOP)/bin/mklib -o mesa -static $(MESA_OBJECTS)
# Make archive of gl* API dispatcher functions only
-libglapi.a: $(GLAPI_OBJECTS)
+libglapi.a: $(GLAPI_OBJECTS) asm_subdirs
@ $(TOP)/bin/mklib -o glapi -static $(GLAPI_OBJECTS)
######################################################################
# Device drivers
-driver_subdirs:
+driver_subdirs: libmesa.a libglapi.a
(cd drivers && $(MAKE))