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

Makefile 3.1KB

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