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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. dinoshade \
  18. drawpix \
  19. engine \
  20. fbo_firecube \
  21. fbotexture \
  22. fire \
  23. fogcoord \
  24. fplight \
  25. fslight \
  26. gamma \
  27. gearbox \
  28. gears \
  29. geartrain \
  30. glinfo \
  31. gloss \
  32. gltestperf \
  33. isosurf \
  34. ipers \
  35. lodbias \
  36. morph3d \
  37. multiarb \
  38. paltex \
  39. pointblast \
  40. projtex \
  41. rain \
  42. ray \
  43. readpix \
  44. reflect \
  45. renormal \
  46. shadowtex \
  47. singlebuffer \
  48. spectex \
  49. spriteblast \
  50. stex3d \
  51. teapot \
  52. terrain \
  53. tessdemo \
  54. texcyl \
  55. texenv \
  56. textures \
  57. trispd \
  58. tunnel \
  59. tunnel2 \
  60. vao_demo \
  61. winpos
  62. ##### RULES #####
  63. .SUFFIXES:
  64. .SUFFIXES: .c
  65. .SUFFIXES: .cxx
  66. # make executable from .c file:
  67. .c: $(LIB_DEP) readtex.o
  68. $(APP_CC) -I$(INCDIR) $(CFLAGS) $(LDFLAGS) $< readtex.o $(LIBS) -o $@
  69. ##### TARGETS #####
  70. default: $(PROGS)
  71. $(PROGS): readtex.o
  72. readtex.c: $(TOP)/progs/util/readtex.c
  73. cp $< .
  74. readtex.h: $(TOP)/progs/util/readtex.h
  75. cp $< .
  76. readtex.o: readtex.c readtex.h
  77. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) readtex.c
  78. showbuffer.c: $(TOP)/progs/util/showbuffer.c
  79. cp $< .
  80. showbuffer.h: $(TOP)/progs/util/showbuffer.h
  81. cp $< .
  82. showbuffer.o: showbuffer.c showbuffer.h
  83. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) showbuffer.c
  84. trackball.c: $(TOP)/progs/util/trackball.c
  85. cp $< .
  86. trackball.h: $(TOP)/progs/util/trackball.h
  87. cp $< .
  88. trackball.o: trackball.c trackball.h
  89. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) trackball.c
  90. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  91. cp $< .
  92. reflect: reflect.o showbuffer.o readtex.o
  93. $(APP_CC) $(CFLAGS) $(LDFLAGS) reflect.o showbuffer.o readtex.o $(LIBS) -o $@
  94. reflect.o: reflect.c showbuffer.h
  95. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) reflect.c
  96. gloss: gloss.o trackball.o readtex.o
  97. $(APP_CC) $(CFLAGS) $(LDFLAGS) gloss.o trackball.o readtex.o $(LIBS) -o $@
  98. gloss.o: gloss.c trackball.h
  99. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) gloss.c
  100. engine: engine.o trackball.o readtex.o
  101. $(APP_CC) $(CFLAGS) $(LDFLAGS) engine.o trackball.o readtex.o $(LIBS) -o $@
  102. engine.o: engine.c trackball.h
  103. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) engine.c
  104. fbotexture: fbotexture.o
  105. $(APP_CC) $(CFLAGS) $(LDFLAGS) fbotexture.o $(LIBS) -o $@
  106. fbotexture.o: fbotexture.c extfuncs.h
  107. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) fbotexture.c
  108. fslight: fslight.o
  109. $(APP_CC) $(CFLAGS) $(LDFLAGS) fslight.o $(LIBS) -o $@
  110. fslight.o: fslight.c extfuncs.h
  111. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) fslight.c
  112. rain: particles.o rain.o readtex.o
  113. $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ $(LIBS) -o $@
  114. rain.o: rain.cxx readtex.h
  115. $(CXX) -c -I$(INCDIR) $(CXXFLAGS) $<
  116. particles.o: particles.cxx
  117. $(CXX) -c -I$(INCDIR) $(CXXFLAGS) $<
  118. viewdds: viewdds.c
  119. $(CC) -I$(INCDIR) $(CFLAGS) $< readtex.o $(LIBS) -L. -lgltc -o $@
  120. clean:
  121. -rm -f $(PROGS)
  122. -rm -f *.o *~
  123. -rm -f readtex.[ch] showbuffer.[ch]