Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  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 $(GLEW_LIB) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  7. SOURCES = \
  8. clear-fbo-tex.c \
  9. clear-fbo.c \
  10. clear-scissor.c \
  11. clear-undefined.c \
  12. clear-repeat.c \
  13. clear-random.c \
  14. clear.c \
  15. createwin.c \
  16. dlist-dangling.c \
  17. dlist-flat-tri.c \
  18. dlist-mat-tri.c \
  19. dlist-tri-flat-tri.c \
  20. dlist-tri-mat-tri.c \
  21. dlist-recursive-call.c \
  22. dlist-begin-call-end.c \
  23. dlist-edgeflag-dangling.c \
  24. dlist-edgeflag.c \
  25. dlist-degenerate.c \
  26. drawarrays.c \
  27. draw2arrays.c \
  28. drawelements.c \
  29. drawrange.c \
  30. flat-clip.c \
  31. fs-tri.c \
  32. line-clip.c \
  33. line-cull.c \
  34. line-flat.c \
  35. line-smooth.c \
  36. line-stipple-wide.c \
  37. line-userclip-clip.c \
  38. line-userclip-nop-clip.c \
  39. line-userclip-nop.c \
  40. line-userclip.c \
  41. line-wide.c \
  42. line.c \
  43. lineloop-clip.c \
  44. lineloop-elts.c \
  45. lineloop.c \
  46. linestrip-clip.c \
  47. linestrip-flat-stipple.c \
  48. linestrip-stipple-wide.c \
  49. linestrip-stipple.c \
  50. linestrip.c \
  51. long-fixed-func.c \
  52. pgon-mode.c \
  53. point-clip.c \
  54. point-param.c \
  55. point-sprite.c \
  56. point-wide.c \
  57. point-wide-smooth.c \
  58. point.c \
  59. poly-flat.c \
  60. poly-flat-clip.c \
  61. poly-flat-unfilled-clip.c \
  62. poly-unfilled.c \
  63. poly.c \
  64. quad-clip-all-vertices.c \
  65. quad-clip-nearplane.c \
  66. quad-clip.c \
  67. quad-degenerate.c \
  68. quad-flat.c \
  69. quad-offset-factor.c \
  70. quad-offset-unfilled.c \
  71. quad-offset-units.c \
  72. quad-tex-2d.c \
  73. quad-tex-3d.c \
  74. quad-tex-alpha.c \
  75. quad-tex-pbo.c \
  76. quad-tex-sub.c \
  77. quad-unfilled-clip.c \
  78. quad-unfilled-stipple.c \
  79. quad-unfilled.c \
  80. quad.c \
  81. quads.c \
  82. quadstrip-clip.c \
  83. quadstrip-cont.c \
  84. quadstrip-flat.c \
  85. quadstrip.c \
  86. readpixels.c \
  87. tri-alpha.c \
  88. tri-alpha-tex.c \
  89. tri-array-interleaved.c \
  90. tri-blend-color.c \
  91. tri-blend-max.c \
  92. tri-blend-min.c \
  93. tri-blend-revsub.c \
  94. tri-blend-sub.c \
  95. tri-blend.c \
  96. tri-clear.c \
  97. tri-clip.c \
  98. tri-cull-both.c \
  99. tri-cull.c \
  100. tri-logicop-none.c \
  101. tri-logicop-xor.c \
  102. tri-dlist.c \
  103. tri-edgeflag.c \
  104. tri-fbo-tex-mip.c \
  105. tri-fbo-tex.c \
  106. tri-fbo.c \
  107. tri-flat-clip.c \
  108. tri-flat.c \
  109. tri-fog.c \
  110. tri-fp.c \
  111. tri-fp-const-imm.c \
  112. tri-lit.c \
  113. tri-lit-material.c \
  114. tri-mask-tri.c \
  115. tri-orig.c \
  116. tri-query.c \
  117. tri-repeat.c \
  118. tri-scissor-tri.c \
  119. tri-square.c \
  120. tri-stencil.c \
  121. tri-stipple.c \
  122. tri-multitex-vbo.c \
  123. tri-tex.c \
  124. tri-tex-3d.c \
  125. tri-tri.c \
  126. tri-unfilled-fog.c \
  127. tri-unfilled-edgeflag.c \
  128. tri-unfilled-clip.c \
  129. tri-unfilled-point.c \
  130. tri-unfilled-smooth.c \
  131. tri-unfilled-tri.c \
  132. tri-unfilled-tri-lit.c \
  133. tri-unfilled-userclip-stip.c \
  134. tri-unfilled-userclip.c \
  135. tri-unfilled.c \
  136. tri-userclip.c \
  137. tri-viewport.c \
  138. tri-z-9.c \
  139. tri-z-eq.c \
  140. tri-z.c \
  141. tri.c \
  142. trifan-flat.c \
  143. trifan-flat-clip.c \
  144. trifan-flat-unfilled-clip.c \
  145. trifan-unfilled.c \
  146. trifan.c \
  147. tristrip-clip.c \
  148. tristrip-flat.c \
  149. tristrip.c \
  150. vbo-drawarrays.c \
  151. vbo-noninterleaved.c \
  152. vbo-drawelements.c \
  153. vbo-drawrange.c \
  154. vp-array.c \
  155. vp-array-int.c \
  156. vp-clip.c \
  157. vp-line-clip.c \
  158. vp-tri.c \
  159. vp-tri-invariant.c \
  160. vp-tri-swap.c \
  161. vp-tri-tex.c \
  162. vp-tri-imm.c \
  163. vp-tri-cb.c \
  164. vp-tri-cb-pos.c \
  165. vp-tri-cb-tex.c \
  166. vp-unfilled.c
  167. PROGS = $(SOURCES:%.c=%)
  168. INCLUDES = -I. -I$(TOP)/include -I../samples
  169. UTIL_FILES = readtex.h readtex.c
  170. ##### RULES #####
  171. .SUFFIXES:
  172. .SUFFIXES: .c
  173. .c:
  174. $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  175. .c.o:
  176. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  177. .S.o:
  178. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  179. ##### TARGETS #####
  180. default: $(UTIL_FILES) $(PROGS)
  181. clean:
  182. -rm -f $(PROGS)
  183. -rm -f *.o
  184. -rm -f getproclist.h
  185. # auto code generation
  186. getprocaddress: getprocaddress.c getproclist.h
  187. getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
  188. python getprocaddress.py > getproclist.h
  189. texrect: texrect.o readtex.o
  190. $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
  191. texrect.o: texrect.c readtex.h
  192. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  193. invert: invert.o readtex.o
  194. $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
  195. invert.o: invert.c readtex.h
  196. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  197. readtex.o: readtex.c
  198. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  199. readtex.h: $(TOP)/progs/util/readtex.h
  200. ln -s $(TOP)/progs/util/readtex.h .
  201. readtex.c: $(TOP)/progs/util/readtex.c
  202. ln -s $(TOP)/progs/util/readtex.c .
  203. fs-tri: fs-tri.c extfuncs.h
  204. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  205. cp $< .
  206. # Emacs tags
  207. tags:
  208. etags `find . -name \*.[ch]` `find ../include`