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 1.7KB

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