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.

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