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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. # progs/demos/Makefile
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. INCDIR = $(TOP)/include
  5. OSMESA_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa -lGLU -lGL $(APP_LIB_DEPS)
  6. OSMESA16_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa16 -lGLU -lGL $(APP_LIB_DEPS)
  7. OSMESA32_LIBS = -L$(TOP)/$(LIB_DIR) -lglut -lOSMesa32 -lGLU -lGL $(APP_LIB_DEPS)
  8. LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
  9. PROGS = \
  10. arbfplight \
  11. arbfslight \
  12. arbocclude \
  13. bounce \
  14. clearspd \
  15. cubemap \
  16. drawpix \
  17. engine \
  18. fire \
  19. fogcoord \
  20. fplight \
  21. fslight \
  22. gamma \
  23. gearbox \
  24. gears \
  25. geartrain \
  26. glinfo \
  27. gloss \
  28. glslnoise \
  29. gltestperf \
  30. glutfx \
  31. isosurf \
  32. ipers \
  33. lodbias \
  34. morph3d \
  35. multiarb \
  36. paltex \
  37. pointblast \
  38. ray \
  39. readpix \
  40. reflect \
  41. renormal \
  42. shadowtex \
  43. singlebuffer \
  44. streaming_rect \
  45. spectex \
  46. spriteblast \
  47. stex3d \
  48. teapot \
  49. terrain \
  50. tessdemo \
  51. texcyl \
  52. texdown \
  53. texenv \
  54. texobj \
  55. trispd \
  56. tunnel \
  57. tunnel2 \
  58. vao_demo \
  59. winpos
  60. ##### RULES #####
  61. .SUFFIXES:
  62. .SUFFIXES: .c
  63. # make executable from .c file:
  64. .c: $(LIB_DEP) readtex.o
  65. $(APP_CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(APP_LIB_DEPS) -o $@
  66. ##### TARGETS #####
  67. default: $(PROGS)
  68. $(PROGS): readtex.o
  69. readtex.c: $(TOP)/progs/util/readtex.c
  70. cp $< .
  71. readtex.h: $(TOP)/progs/util/readtex.h
  72. cp $< .
  73. readtex.o: readtex.c readtex.h
  74. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) readtex.c
  75. showbuffer.c: $(TOP)/progs/util/showbuffer.c
  76. cp $< .
  77. showbuffer.h: $(TOP)/progs/util/showbuffer.h
  78. cp $< .
  79. showbuffer.o: showbuffer.c showbuffer.h
  80. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) showbuffer.c
  81. trackball.c: $(TOP)/progs/util/trackball.c
  82. cp $< .
  83. trackball.h: $(TOP)/progs/util/trackball.h
  84. cp $< .
  85. trackball.o: trackball.c trackball.h
  86. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) trackball.c
  87. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  88. cp $< .
  89. reflect: reflect.o showbuffer.o readtex.o
  90. $(APP_CC) reflect.o showbuffer.o readtex.o $(APP_LIB_DEPS) $(ARCH_FLAGS) -o $@
  91. reflect.o: reflect.c showbuffer.h
  92. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) reflect.c
  93. shadowtex: shadowtex.o showbuffer.o
  94. $(APP_CC) shadowtex.o showbuffer.o $(APP_LIB_DEPS) $(ARCH_FLAGS) -o $@
  95. shadowtex.o: shadowtex.c showbuffer.h
  96. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) shadowtex.c
  97. gloss: gloss.o trackball.o readtex.o
  98. $(APP_CC) gloss.o trackball.o readtex.o $(APP_LIB_DEPS) $(ARCH_FLAGS) -o $@
  99. gloss.o: gloss.c trackball.h
  100. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) gloss.c
  101. engine: engine.o trackball.o readtex.o
  102. $(APP_CC) engine.o trackball.o readtex.o $(APP_LIB_DEPS) $(ARCH_FLAGS) -o $@
  103. engine.o: engine.c trackball.h
  104. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) engine.c
  105. fslight: fslight.o
  106. $(APP_CC) fslight.o $(APP_LIB_DEPS) $(ARCH_FLAGS) -o $@
  107. fslight.o: fslight.c extfuncs.h
  108. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) fslight.c
  109. clean:
  110. -rm -f $(PROGS)
  111. -rm -f *.o *~
  112. -rm -f readtex.[ch] showbuffer.[ch]