Clone of mesa.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Makefile 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  7. SOURCES = \
  8. afsmultiarb.c \
  9. antialias.c \
  10. arbfpspec.c \
  11. arbfptest1.c \
  12. arbfptexture.c \
  13. arbfptrig.c \
  14. arbgpuprog.c \
  15. arbnpot.c \
  16. arbnpot-mipmap.c \
  17. arbvptest1.c \
  18. arbvptest3.c \
  19. arbvptorus.c \
  20. arbvpwarpmesh.c \
  21. arraytexture.c \
  22. auxbuffer.c \
  23. blendminmax.c \
  24. blendsquare.c \
  25. blendxor.c \
  26. blitfb.c \
  27. bufferobj.c \
  28. bumpmap.c \
  29. bug_3050.c \
  30. bug_3101.c \
  31. bug_3195.c \
  32. bug_texstore_i8.c \
  33. calibrate_rast.c \
  34. condrender.c \
  35. copypixrate.c \
  36. crossbar.c \
  37. cva.c \
  38. cylwrap.c \
  39. drawbuffers.c \
  40. drawbuffers2.c \
  41. exactrast.c \
  42. ext422square.c \
  43. floattex.c \
  44. fbotest1.c \
  45. fbotest2.c \
  46. fbotest3.c \
  47. fillrate.c \
  48. fog.c \
  49. fogcoord.c \
  50. fptest1.c \
  51. fptexture.c \
  52. getprocaddress.c \
  53. getteximage.c \
  54. glutfx.c \
  55. interleave.c \
  56. invert.c \
  57. jkrahntest.c \
  58. lineclip.c \
  59. manytex.c \
  60. mapbufrange.c \
  61. mapvbo.c \
  62. minmag.c \
  63. mipgen.c \
  64. mipmap_comp.c \
  65. mipmap_comp_tests.c \
  66. mipmap_limits.c \
  67. mipmap_view.c \
  68. multipal.c \
  69. multitexarray.c \
  70. multiwindow.c \
  71. no_s3tc.c \
  72. packedpixels.c \
  73. pbo.c \
  74. persp_hint.c \
  75. prim.c \
  76. prog_parameter.c \
  77. quads.c \
  78. random.c \
  79. readrate.c \
  80. rubberband.c \
  81. scissor.c \
  82. scissor-viewport.c \
  83. seccolor.c \
  84. shader_api.c \
  85. sharedtex.c \
  86. stencil_twoside.c \
  87. stencilwrap.c \
  88. stencil_wrap.c \
  89. streaming_rect \
  90. subtex \
  91. subtexrate.c \
  92. tex1d.c \
  93. texcmp.c \
  94. texcompress2.c \
  95. texcompsub.c \
  96. texdown \
  97. texfilt.c \
  98. texgenmix.c \
  99. texleak.c \
  100. texline.c \
  101. texobj.c \
  102. texobjshare.c \
  103. texrect.c \
  104. texwrap.c \
  105. unfilledclip.c \
  106. vao-01.c \
  107. vao-02.c \
  108. vparray.c \
  109. vpeval.c \
  110. vptest1.c \
  111. vptest2.c \
  112. vptest3.c \
  113. vptorus.c \
  114. vpwarpmesh.c \
  115. yuvrect.c \
  116. yuvsquare.c \
  117. zbitmap.c \
  118. zcomp.c \
  119. zdrawpix.c \
  120. zreaddraw.c
  121. PROGS = $(SOURCES:%.c=%)
  122. INCLUDES = -I. -I$(TOP)/include
  123. UTIL_FILES = readtex.h readtex.c
  124. ##### TARGETS #####
  125. default: $(UTIL_FILES) $(PROGS)
  126. clean:
  127. -rm -f $(PROGS)
  128. -rm -f *.o
  129. -rm -f getproclist.h
  130. ##### RULES #####
  131. .SUFFIXES:
  132. .SUFFIXES: .c
  133. .c:
  134. $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  135. .c.o:
  136. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  137. .S.o:
  138. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  139. # auto code generation
  140. getprocaddress: getprocaddress.c getproclist.h
  141. getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
  142. python getprocaddress.py > getproclist.h
  143. arraytexture: arraytexture.o readtex.o
  144. $(APP_CC) $(CFLAGS) arraytexture.o readtex.o $(LIBS) -o $@
  145. arraytexture.o: arraytexture.c readtex.h
  146. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) arraytexture.c -o $@
  147. afsmultiarb: afsmultiarb.o readtex.o
  148. $(APP_CC) $(CFLAGS) $(LDFLAGS) afsmultiarb.o readtex.o $(LIBS) -o $@
  149. afsmultiarb.o: afsmultiarb.c readtex.h
  150. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) afsmultiarb.c -o $@
  151. bumpmap: bumpmap.o readtex.o
  152. $(CC) $(CFLAGS) $(LDFLAGS) bumpmap.o readtex.o $(LIBS) -o $@
  153. bumpmap.o: bumpmap.c readtex.h
  154. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bumpmap.c -o $@
  155. drawbuffers: drawbuffers.o
  156. $(APP_CC) $(CFLAGS) $(LDFLAGS) drawbuffers.o $(LIBS) -o $@
  157. drawbuffers.o: drawbuffers.c extfuncs.h
  158. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) drawbuffers.c -o $@
  159. texrect: texrect.o readtex.o
  160. $(APP_CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
  161. texrect.o: texrect.c readtex.h
  162. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) texrect.c -o $@
  163. bug_3195: bug_3195.o readtex.o
  164. $(APP_CC) $(CFLAGS) $(LDFLAGS) bug_3195.o readtex.o $(LIBS) -o $@
  165. bug_3195.o: bug_3195.c readtex.h
  166. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) bug_3195.c -o $@
  167. invert: invert.o readtex.o
  168. $(APP_CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
  169. invert.o: invert.c readtex.h
  170. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) invert.c -o $@
  171. mipmap_view: mipmap_view.o readtex.o
  172. $(APP_CC) $(CFLAGS) mipmap_view.o readtex.o $(LIBS) -o $@
  173. mipmap_view.o: mipmap_view.c readtex.h
  174. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  175. mipmap_limits: mipmap_limits.o readtex.o
  176. $(APP_CC) $(CFLAGS) mipmap_limits.o readtex.o $(LIBS) -o $@
  177. mipmap_limits.o: mipmap_limits.c readtex.h
  178. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  179. fillrate: fillrate.o readtex.o
  180. $(APP_CC) $(CFLAGS) fillrate.o readtex.o $(LIBS) -o $@
  181. fillrate.o: fillrate.c readtex.h
  182. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  183. floattex: floattex.o readtex.o shaderutil.o
  184. $(APP_CC) $(CFLAGS) $(LDFLAGS) floattex.o readtex.o shaderutil.o $(LIBS) -o $@
  185. floattex.o: floattex.c readtex.h shaderutil.h
  186. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) floattex.c -o $@
  187. readtex.o: readtex.c
  188. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) readtex.c -o $@
  189. readtex.h: $(TOP)/progs/util/readtex.h
  190. ln -s $(TOP)/progs/util/readtex.h .
  191. readtex.c: $(TOP)/progs/util/readtex.c
  192. ln -s $(TOP)/progs/util/readtex.c .
  193. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  194. ln -s $(TOP)/progs/util/extfuncs.h .
  195. shaderutil.c: $(TOP)/progs/util/shaderutil.c
  196. cp $< .
  197. shaderutil.h: $(TOP)/progs/util/shaderutil.h
  198. cp $< .
  199. shaderutil.o: shaderutil.c shaderutil.h
  200. $(APP_CC) -c -I$(INCDIR) $(INCLUDES) $(CFLAGS) shaderutil.c
  201. # Emacs tags
  202. tags:
  203. etags `find . -name \*.[ch]` `find ../include`