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.

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