diff options
Diffstat (limited to 'src/mesa/Makefile')
-rw-r--r-- | src/mesa/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile index 6b4057030ef..274010c54f5 100644 --- a/src/mesa/Makefile +++ b/src/mesa/Makefile @@ -3,8 +3,7 @@ TOP = ../.. include $(TOP)/configs/current -include sources - +include sources.mak .SUFFIXES : .cpp @@ -19,6 +18,7 @@ include sources + # Default: build dependencies, then asm_subdirs, then convenience # libs (.a) and finally the device drivers: default: depend asm_subdirs libmesa.a libglapi.a driver_subdirs @@ -36,6 +36,13 @@ libmesa.a: $(MESA_OBJECTS) libglapi.a: $(GLAPI_OBJECTS) @ $(MKLIB) -o glapi -static $(GLAPI_OBJECTS) +# Make archive of gl* API dispatcher functions only +$(GLAPI_LIB): $(GLAPI_OBJECTS) + @if [ "${WINDOW_SYSTEM}" = "dri" ] ; then \ + touch libglapi.a ; \ + else \ + $(TOP)/bin/mklib -o glapi -static $(GLAPI_OBJECTS) ; \ + fi ###################################################################### # Device drivers |