Clone of mesa.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

Makefile 4.3KB

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