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

Makefile 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. tri-tex.c \
  9. point-position.c \
  10. tri-depth.c \
  11. tri-depth2.c \
  12. tri-depthwrite.c \
  13. tri-depthwrite2.c \
  14. tri-param.c \
  15. fp-tri.c
  16. NOTDONE=\
  17. tri-txb.c \
  18. tri-txp.c \
  19. tri-depthwrite.c \
  20. tri-fogoption.c
  21. PROGS = $(SOURCES:%.c=%)
  22. INCLUDES = -I. -I$(TOP)/include -I../samples
  23. UTIL_FILES = readtex.h readtex.c
  24. ##### RULES #####
  25. .SUFFIXES:
  26. .SUFFIXES: .c
  27. .c:
  28. $(CC) $(INCLUDES) $(CFLAGS) $< $(LIBS) -o $@
  29. .c.o:
  30. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  31. .S.o:
  32. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  33. ##### TARGETS #####
  34. default: $(UTIL_FILES) $(PROGS)
  35. clean:
  36. rm -f $(PROGS)
  37. rm -f *.o
  38. rm -f getproclist.h
  39. # auto code generation
  40. getprocaddress: getprocaddress.c getproclist.h
  41. getproclist.h: $(TOP)/src/mesa/glapi/gl_API.xml getprocaddress.c getprocaddress.py
  42. python getprocaddress.py > getproclist.h
  43. texrect: texrect.o readtex.o
  44. $(CC) texrect.o readtex.o $(LIBS) -o $@
  45. texrect.o: texrect.c readtex.h
  46. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  47. invert: invert.o readtex.o
  48. $(CC) invert.o readtex.o $(LIBS) -o $@
  49. invert.o: invert.c readtex.h
  50. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  51. readtex.o: readtex.c
  52. $(CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  53. readtex.h: $(TOP)/progs/util/readtex.h
  54. ln -s $(TOP)/progs/util/readtex.h .
  55. readtex.c: $(TOP)/progs/util/readtex.c
  56. ln -s $(TOP)/progs/util/readtex.c .
  57. # Emacs tags
  58. tags:
  59. etags `find . -name \*.[ch]` `find ../include`