浏览代码

build fixes, rh9

tags/R300_DRIVER_0
Keith Whitwell 22 年前
父节点
当前提交
8525fae3b8
共有 5 个文件被更改,包括 10 次插入6 次删除
  1. 4
    3
      progs/tests/Makefile.X11
  2. 2
    1
      progs/tests/cva.c
  3. 1
    0
      progs/tests/dinoshade.c
  4. 1
    1
      progs/tests/fptexture.c
  5. 2
    1
      progs/tests/multipal.c

+ 4
- 3
progs/tests/Makefile.X11 查看文件

# distro. They're not too interesting but they're good for testing. # distro. They're not too interesting but they're good for testing.


TOP = ../.. TOP = ../..
LIBDIR = $(TOP)/lib


LIBS = $(APP_LIB_DEPS)
LIBS = -L$(LIBDIR) $(APP_LIB_DEPS)


SOURCES = antialias.c \ SOURCES = antialias.c \
bufferobj.c \ bufferobj.c \
$(CC) texrect.o readtex.o $(LIBS) -o $@ $(CC) texrect.o readtex.o $(LIBS) -o $@


texrect.o: texrect.c readtex.h texrect.o: texrect.c readtex.h
$(CC) -c $(CFLAGS) $< -o $@
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@


readtex.o: readtex.c readtex.o: readtex.c
$(CC) -c $(CFLAGS) $< -o $@
$(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@




readtex.h: $(TOP)/progs/util/readtex.h readtex.h: $(TOP)/progs/util/readtex.h

+ 2
- 1
progs/tests/cva.c 查看文件

/* $Id: cva.c,v 1.5 2003/01/28 15:31:35 brianp Exp $ */
/* $Id: cva.c,v 1.6 2003/11/23 10:27:10 keithw Exp $ */


/* /*
* Trivial CVA test, good for testing driver fastpaths (especially * Trivial CVA test, good for testing driver fastpaths (especially
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <malloc.h> /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#endif #endif

+ 1
- 0
progs/tests/dinoshade.c 查看文件

#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <math.h> /* for cos(), sin(), and sqrt() */ #include <math.h> /* for cos(), sin(), and sqrt() */
#include <malloc.h> /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#endif #endif

+ 1
- 1
progs/tests/fptexture.c 查看文件

#define GL_GLEXT_PROTOTYPES #define GL_GLEXT_PROTOTYPES
#include <GL/glut.h> #include <GL/glut.h>


#include "readtex.c"
#include "../util/readtex.c"




#define TEXTURE_FILE "../images/girl.rgb" #define TEXTURE_FILE "../images/girl.rgb"

+ 2
- 1
progs/tests/multipal.c 查看文件

/* $Id: multipal.c,v 1.4 2002/10/18 17:47:36 kschultz Exp $ */
/* $Id: multipal.c,v 1.5 2003/11/23 10:27:10 keithw Exp $ */


/* /*
* Test multitexture and paletted textures. * Test multitexture and paletted textures.
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <malloc.h> /* for ptrdiff_t, referenced by GL.h when GL_GLEXT_LEGACY defined */
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#endif #endif

正在加载...
取消
保存