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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. 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. $(CC) $(CFLAGS) $(LDFLAGS) texrect.o readtex.o $(LIBS) -o $@
  45. # $(APP_CC) texrect.o readtex.o $(LIBS) -o $@
  46. texrect.o: texrect.c readtex.h
  47. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  48. invert: invert.o readtex.o
  49. $(CC) $(CFLAGS) $(LDFLAGS) invert.o readtex.o $(LIBS) -o $@
  50. # $(APP_CC) invert.o readtex.o $(LIBS) -o $@
  51. invert.o: invert.c readtex.h
  52. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  53. readtex.o: readtex.c
  54. $(APP_CC) -c $(INCLUDES) $(CFLAGS) $(DEFINES) $< -o $@
  55. readtex.h: $(TOP)/progs/util/readtex.h
  56. ln -s $(TOP)/progs/util/readtex.h .
  57. readtex.c: $(TOP)/progs/util/readtex.c
  58. ln -s $(TOP)/progs/util/readtex.c .
  59. # Emacs tags
  60. tags:
  61. etags `find . -name \*.[ch]` `find ../include`