Clone of mesa.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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$(GLU_LIB) -l$(GL_LIB) $(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. $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  29. .c.o:
  30. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  31. .S.o:
  32. $(APP_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. <<<<<<< HEAD:progs/fp/Makefile
  45. $(CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
  46. =======
  47. $(APP_CC) texrect.o readtex.o $(LIBS) -o $@
  48. >>>>>>> origin/gallium-0.1:progs/fp/Makefile
  49. texrect.o: texrect.c readtex.h
  50. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  51. invert: invert.o readtex.o
  52. <<<<<<< HEAD:progs/fp/Makefile
  53. $(CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
  54. =======
  55. $(APP_CC) invert.o readtex.o $(LIBS) -o $@
  56. >>>>>>> origin/gallium-0.1:progs/fp/Makefile
  57. invert.o: invert.c readtex.h
  58. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  59. readtex.o: readtex.c
  60. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  61. readtex.h: $(TOP)/progs/util/readtex.h
  62. ln -s $(TOP)/progs/util/readtex.h .
  63. readtex.c: $(TOP)/progs/util/readtex.c
  64. ln -s $(TOP)/progs/util/readtex.c .
  65. # Emacs tags
  66. tags:
  67. etags `find . -name \*.[ch]` `find ../include`