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.

Makefile 5.3KB

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