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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. sub-tex.c \
  88. tex-quads.c \
  89. tri-alpha.c \
  90. tri-alpha-tex.c \
  91. tri-array-interleaved.c \
  92. tri-blend-color.c \
  93. tri-blend-max.c \
  94. tri-blend-min.c \
  95. tri-blend-revsub.c \
  96. tri-blend-sub.c \
  97. tri-blend.c \
  98. tri-clear.c \
  99. tri-clip.c \
  100. tri-cull-both.c \
  101. tri-cull.c \
  102. tri-logicop-none.c \
  103. tri-logicop-xor.c \
  104. tri-dlist.c \
  105. tri-edgeflag.c \
  106. tri-fbo-tex-mip.c \
  107. tri-fbo-tex.c \
  108. tri-fbo.c \
  109. tri-flat-clip.c \
  110. tri-flat.c \
  111. tri-fog.c \
  112. tri-fp.c \
  113. tri-fp-const-imm.c \
  114. tri-lit.c \
  115. tri-lit-material.c \
  116. tri-mask-tri.c \
  117. tri-orig.c \
  118. tri-point-line-clipped.c \
  119. tri-query.c \
  120. tri-repeat.c \
  121. tri-scissor-tri.c \
  122. tri-square.c \
  123. tri-stencil.c \
  124. tri-stipple.c \
  125. tri-multitex-vbo.c \
  126. tri-tex.c \
  127. tri-tex-3d.c \
  128. tri-tri.c \
  129. tri-unfilled-fog.c \
  130. tri-unfilled-edgeflag.c \
  131. tri-unfilled-clip.c \
  132. tri-unfilled-point.c \
  133. tri-unfilled-smooth.c \
  134. tri-unfilled-tri.c \
  135. tri-unfilled-tri-lit.c \
  136. tri-unfilled-userclip-stip.c \
  137. tri-unfilled-userclip.c \
  138. tri-unfilled.c \
  139. tri-userclip.c \
  140. tri-viewport.c \
  141. tri-z-9.c \
  142. tri-z-eq.c \
  143. tri-z.c \
  144. tri.c \
  145. trifan-flat.c \
  146. trifan-flat-clip.c \
  147. trifan-flat-unfilled-clip.c \
  148. trifan-unfilled.c \
  149. trifan.c \
  150. tristrip-clip.c \
  151. tristrip-flat.c \
  152. tristrip.c \
  153. vbo-tri.c \
  154. vbo-drawarrays.c \
  155. vbo-noninterleaved.c \
  156. vbo-drawelements.c \
  157. vbo-drawrange.c \
  158. vp-array.c \
  159. vp-array-hf.c \
  160. vp-array-int.c \
  161. vp-clip.c \
  162. vp-line-clip.c \
  163. vp-tri.c \
  164. vp-tri-invariant.c \
  165. vp-tri-swap.c \
  166. vp-tri-tex.c \
  167. vp-tri-imm.c \
  168. vp-tri-cb.c \
  169. vp-tri-cb-pos.c \
  170. vp-tri-cb-tex.c \
  171. vp-unfilled.c
  172. PROGS = $(SOURCES:%.c=%)
  173. INCLUDES = -I. -I$(TOP)/include -I../samples
  174. UTIL_FILES = readtex.h readtex.c
  175. ##### RULES #####
  176. .SUFFIXES:
  177. .SUFFIXES: .c
  178. .c:
  179. $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  180. .c.o:
  181. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  182. .S.o:
  183. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  184. ##### TARGETS #####
  185. default: $(UTIL_FILES) $(PROGS)
  186. clean:
  187. -rm -f $(PROGS)
  188. -rm -f *.o
  189. -rm -f getproclist.h
  190. # auto code generation
  191. getprocaddress: getprocaddress.c getproclist.h
  192. getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
  193. python getprocaddress.py > getproclist.h
  194. texrect: texrect.o readtex.o
  195. $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
  196. texrect.o: texrect.c readtex.h
  197. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  198. invert: invert.o readtex.o
  199. $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
  200. invert.o: invert.c readtex.h
  201. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  202. readtex.o: readtex.c
  203. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  204. readtex.h: $(TOP)/progs/util/readtex.h
  205. ln -s $(TOP)/progs/util/readtex.h .
  206. readtex.c: $(TOP)/progs/util/readtex.c
  207. ln -s $(TOP)/progs/util/readtex.c .
  208. fs-tri: fs-tri.c extfuncs.h
  209. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  210. cp $< .
  211. # Emacs tags
  212. tags:
  213. etags `find . -name \*.[ch]` `find ../include`