Make a couple minor corrections to gl_API.xml. Fixes the name of an
[mesa.git] / src / glx / x11 / Makefile
index 2ef1b966fd8ba80da455fa92680e0d792b735035..0a488e444f48c7841f406b70573b5ab368566b28 100644 (file)
@@ -24,16 +24,16 @@ C_SOURCES = \
          compsize.c \
          dispatch.c \
          eval.c \
-         g_render.c \
-         g_single.c \
-         g_vendpriv.c \
          glxcmds.c \
          glxext.c \
          glxextensions.c \
+         indirect.c \
          indirect_init.c \
          indirect_size.c \
          indirect_window_pos.c \
          indirect_transpose_matrix.c \
+         indirect_vertex_array.c \
+         indirect_vertex_program.c \
          pixel.c \
          pixelstore.c \
          render2.c \
@@ -55,9 +55,7 @@ X86_SOURCES = $(TOP)/src/mesa/x86/glapi_x86.S
 OBJECTS = $(C_SOURCES:.c=.o) \
          $(ASM_SOURCES:.S=.o)
 
-INCLUDES = -I. $(INCLUDE_DIRS)
-
-INCLUDE_DIRS = \
+INCLUDES = -I. \
        -I$(TOP)/include \
        -I$(TOP)/include/GL/internal \
        -I$(TOP)/src/mesa \
@@ -69,7 +67,8 @@ INCLUDE_DIRS = \
        -I$(TOP)/src/mesa/swrast_setup \
        -I$(TOP)/src/mesa/drivers/dri/common \
        -I$(DRM_SOURCE_PATH)/libdrm \
-       -I$(DRM_SOURCE_PATH)/shared
+       -I$(DRM_SOURCE_PATH)/shared \
+       $(X11_INCLUDES)
 
 
 ##### RULES #####
@@ -87,9 +86,12 @@ default: depend $(LIB_DIR)/$(GL_LIB_NAME)
 glcontextmodes.c:
        ln -s $(TOP)/src/mesa/drivers/dri/common/glcontextmodes.c .
 
+dispatch.c:
+       ln -s $(TOP)/src/mesa/main/dispatch.c .
+
 # Make libGL
 $(LIB_DIR)/$(GL_LIB_NAME):  $(OBJECTS) Makefile
-       CC=$(CC) CXX=$(CXX) $(TOP)/bin/mklib -o $(GL_LIB) -major 1 -minor 2 $(MKLIB_OPTIONS) \
+       CC="$(CC)" CXX="$(CXX)" $(TOP)/bin/mklib -o $(GL_LIB) -major 1 -minor 2 $(MKLIB_OPTIONS) \
                -install $(LIB_DIR) $(GL_LIB_DEPS) $(OBJECTS)
 
 
@@ -97,10 +99,9 @@ drmtest: xf86drm.o drmtest.o
        rm -f drmtest && $(CC) -o drmtest xf86drm.o drmtest.o
 
 
-depend: $(C_SOURCES) $(ASM_SOURCES)
+depend: $(C_SOURCES) $(ASM_SOURCES) Makefile
        touch depend
-       $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) \
-               > /dev/null 2>&1
+       $(MKDEP) $(MKDEP_OPTIONS) $(INCLUDES) $(C_SOURCES) $(ASM_SOURCES) 
 
 
 # Emacs tags