Clone of mesa.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. # progs/tests/Makefile
  2. # These programs aren't intended to be included with the normal distro.
  3. # They're not too interesting but they're good for testing.
  4. TOP = ../..
  5. include $(TOP)/configs/current
  6. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  7. SOURCES = \
  8. afsmultiarb.c \
  9. antialias.c \
  10. arbfpspec.c \
  11. arbfptest1.c \
  12. arbfptexture.c \
  13. arbfptrig.c \
  14. arbnpot.c \
  15. arbnpot-mipmap.c \
  16. arbvptest1.c \
  17. arbvptest3.c \
  18. arbvptorus.c \
  19. arbvpwarpmesh.c \
  20. arraytexture.c \
  21. blendminmax.c \
  22. blendsquare.c \
  23. blendxor.c \
  24. bufferobj.c \
  25. bumpmap.c \
  26. bug_3050.c \
  27. bug_3101.c \
  28. bug_3195.c \
  29. bug_texstore_i8.c \
  30. calibrate_rast.c \
  31. copypixrate.c \
  32. crossbar.c \
  33. cva.c \
  34. drawbuffers.c \
  35. exactrast.c \
  36. floattex.c \
  37. fbotest1.c \
  38. fbotest2.c \
  39. fillrate.c \
  40. fog.c \
  41. fogcoord.c \
  42. fptest1.c \
  43. fptexture.c \
  44. getprocaddress.c \
  45. glutfx \
  46. interleave.c \
  47. invert.c \
  48. jkrahntest.c \
  49. lineclip.c \
  50. manytex.c \
  51. mapbufrange.c \
  52. mapvbo.c \
  53. minmag.c \
  54. mipgen.c \
  55. mipmap_comp.c \
  56. mipmap_limits.c \
  57. mipmap_view.c \
  58. multipal.c \
  59. no_s3tc.c \
  60. packedpixels.c \
  61. pbo.c \
  62. prog_parameter.c \
  63. quads.c \
  64. random.c \
  65. readrate.c \
  66. rubberband.c \
  67. seccolor.c \
  68. shader_api.c \
  69. sharedtex.c \
  70. stencil_twoside.c \
  71. stencilwrap.c \
  72. stencil_wrap.c \
  73. streaming_rect \
  74. subtex \
  75. subtexrate.c \
  76. tex1d.c \
  77. texcompress2.c \
  78. texdown \
  79. texfilt.c \
  80. texline.c \
  81. texobj.c \
  82. texobjshare.c \
  83. texrect.c \
  84. texwrap.c \
  85. unfilledclip.c \
  86. vao-01.c \
  87. vao-02.c \
  88. vparray.c \
  89. vptest1.c \
  90. vptest2.c \
  91. vptest3.c \
  92. vptorus.c \
  93. vpwarpmesh.c \
  94. yuvrect.c \
  95. yuvsquare.c \
  96. zcomp.c \
  97. zdrawpix.c \
  98. zreaddraw.c
  99. PROGS = $(SOURCES:%.c=%)
  100. INCLUDES = -I. -I$(TOP)/include
  101. UTIL_FILES = readtex.h readtex.c
  102. ##### TARGETS #####
  103. default: $(UTIL_FILES) $(PROGS)
  104. clean:
  105. -rm -f $(PROGS)
  106. -rm -f *.o
  107. -rm -f getproclist.h
  108. ##### RULES #####
  109. .SUFFIXES:
  110. .SUFFIXES: .c
  111. .c:
  112. $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  113. .c.o:
  114. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  115. .S.o:
  116. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  117. # auto code generation
  118. getprocaddress: getprocaddress.c getproclist.h
  119. getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
  120. python getprocaddress.py > getproclist.h
  121. arraytexture: arraytexture.o readtex.o
  122. $(APP_CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
  123. arraytexture.o: arraytexture.c readtex.h
  124. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) arraytexture.c -o $@
  125. afsmultiarb: afsmultiarb.o readtex.o
  126. $(APP_CC) $(CFLAGS) $(LDFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
  127. afsmultiarb.o: afsmultiarb.c readtex.h
  128. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) afsmultiarb.c -o $@
  129. bumpmap: bumpmap.o readtex.o
  130. $(CC) $(CFLAGS) $(LDFLAGS) bumpmap.o readtex.o $(LIBS) -o $@
  131. bumpmap.o: bumpmap.c readtex.h
  132. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bumpmap.c -o $@
  133. drawbuffers: drawbuffers.o
  134. $(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
  135. drawbuffers.o: drawbuffers.c extfuncs.h
  136. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) drawbuffers.c -o $@
  137. texrect: texrect.o readtex.o
  138. $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
  139. texrect.o: texrect.c readtex.h
  140. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) texrect.c -o $@
  141. bug_3195: bug_3195.o readtex.o
  142. $(APP_CC) $(CFLAGS) $(LDFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
  143. bug_3195.o: bug_3195.c readtex.h
  144. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bug_3195.c -o $@
  145. invert: invert.o readtex.o
  146. $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
  147. invert.o: invert.c readtex.h
  148. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) invert.c -o $@
  149. mipmap_view: mipmap_view.o readtex.o
  150. $(APP_CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
  151. mipmap_view.o: mipmap_view.c readtex.h
  152. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  153. mipmap_limits: mipmap_limits.o readtex.o
  154. $(APP_CC) $(CFLAGS) mipmap_limits.o readtex.o $(LIBS) -o $@
  155. mipmap_limits.o: mipmap_limits.c readtex.h
  156. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  157. fillrate: fillrate.o readtex.o
  158. $(APP_CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
  159. fillrate.o: fillrate.c readtex.h
  160. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  161. floattex: floattex.o readtex.o shaderutil.o
  162. $(APP_CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
  163. floattex.o: floattex.c readtex.h shaderutil.h
  164. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
  165. readtex.o: readtex.c
  166. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) readtex.c -o $@
  167. readtex.h: $(TOP)/progs/util/readtex.h
  168. ln -s $(TOP)/progs/util/readtex.h .
  169. readtex.c: $(TOP)/progs/util/readtex.c
  170. ln -s $(TOP)/progs/util/readtex.c .
  171. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  172. ln -s $(TOP)/progs/util/extfuncs.h .
  173. shaderutil.c: $(TOP)/progs/util/shaderutil.c
  174. cp $< .
  175. shaderutil.h: $(TOP)/progs/util/shaderutil.h
  176. cp $< .
  177. shaderutil.o: shaderutil.c shaderutil.h
  178. $(APP_CC) -c -I$(INCDIR) $(INCLUDES) $(CFLAGS) shaderutil.c
  179. # Emacs tags
  180. tags:
  181. etags `find . -name \*.[ch]` `find ../include`