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.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. # progs/demos/Makefile
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. INCDIR = $(TOP)/include
  5. LIB_DEP = \
  6. $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) \
  7. $(TOP)/$(LIB_DIR)/$(GLU_LIB_NAME) \
  8. $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
  9. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLEW_LIB) -l$(GLU_LIB) -l$(GL_LIB) $(APP_LIB_DEPS)
  10. INCLUDE_DIRS = -I$(TOP)/progs/util
  11. DEMO_SOURCES = \
  12. array.c \
  13. bitmap.c \
  14. brick.c \
  15. bump.c \
  16. convolutions.c \
  17. deriv.c \
  18. fragcoord.c \
  19. identity.c \
  20. linktest.c \
  21. mandelbrot.c \
  22. multinoise.c \
  23. multitex.c \
  24. noise.c \
  25. noise2.c \
  26. pointcoord.c \
  27. points.c \
  28. samplers.c \
  29. shadow_sampler.c \
  30. skinning.c \
  31. texaaline.c \
  32. texdemo1.c \
  33. toyball.c \
  34. trirast.c \
  35. twoside.c \
  36. vert-or-frag-only.c \
  37. vert-tex.c
  38. UTIL_HEADERS = \
  39. extfuncs.h \
  40. shaderutil.h \
  41. readtex.h
  42. UTIL_SOURCES = \
  43. shaderutil.c \
  44. readtex.c
  45. UTIL_OBJS = $(UTIL_SOURCES:.c=.o)
  46. PROGS = $(DEMO_SOURCES:%.c=%)
  47. ##### RULES #####
  48. # make .o file from .c file:
  49. .c.o:
  50. $(APP_CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@
  51. # make executable from .o files
  52. .o:
  53. $(APP_CC) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(UTIL_OBJS) $(LIBS) -o $@
  54. ##### TARGETS #####
  55. default: $(PROGS)
  56. clean:
  57. -rm -f $(PROGS)
  58. -rm -f *.o *~
  59. -rm -f extfuncs.h
  60. -rm -f shaderutil.*
  61. -rm -f readtex.*
  62. ##### Extra dependencies
  63. extfuncs.h: $(TOP)/progs/util/extfuncs.h
  64. cp $< .
  65. readtex.c: $(TOP)/progs/util/readtex.c
  66. cp $< .
  67. readtex.h: $(TOP)/progs/util/readtex.h
  68. cp $< .
  69. shaderutil.c: $(TOP)/progs/util/shaderutil.c
  70. cp $< .
  71. shaderutil.h: $(TOP)/progs/util/shaderutil.h
  72. cp $< .
  73. array.o: $(UTIL_HEADERS)
  74. array: array.o $(UTIL_OBJS)
  75. bitmap.o: $(UTIL_HEADERS)
  76. bitmap: bitmap.o $(UTIL_OBJS)
  77. brick.o: $(UTIL_HEADERS)
  78. brick: brick.o $(UTIL_OBJS)
  79. bump.o: $(UTIL_HEADERS)
  80. bump: bump.o $(UTIL_OBJS)
  81. convolutions.o: $(UTIL_HEADERS)
  82. convolutions: convolutions.o $(UTIL_OBJS)
  83. deriv.o: deriv.c $(UTIL_HEADERS)
  84. deriv: deriv.o $(UTIL_OBJS)
  85. identity.o: $(UTIL_HEADERS)
  86. identity: identity.o $(UTIL_OBJS)
  87. fragcoord.o: $(UTIL_HEADERS)
  88. fragcoord: fragcoord.o $(UTIL_OBJS)
  89. linktest.o: $(UTIL_HEADERS)
  90. linktest: linktest.o $(UTIL_OBJS)
  91. mandelbrot.o: $(UTIL_HEADERS)
  92. mandelbrot: mandelbrot.o $(UTIL_OBJS)
  93. multinoise.o: $(UTIL_HEADERS)
  94. multinoise: multinoise.o $(UTIL_OBJS)
  95. multitex.o: $(UTIL_HEADERS)
  96. multitex: multitex.o $(UTIL_OBJS)
  97. noise.o: $(UTIL_HEADERS)
  98. noise: noise.o $(UTIL_OBJS)
  99. noise2.o: $(UTIL_HEADERS)
  100. noise2: noise2.o $(UTIL_OBJS)
  101. points.o: $(UTIL_HEADERS)
  102. points: points.o $(UTIL_OBJS)
  103. pointcoord.o: $(UTIL_HEADERS)
  104. pointcoord: pointcoord.o $(UTIL_OBJS)
  105. samplers.o: $(UTIL_HEADERS)
  106. samplers: samplers.o $(UTIL_OBJS)
  107. samplers_array.o: $(UTIL_HEADERS)
  108. samplers_array: samplers_array.o $(UTIL_OBJS)
  109. shadow_sampler.o: $(UTIL_HEADERS)
  110. shadow_sampler: shadow_sampler.o $(UTIL_OBJS)
  111. skinning.o: $(UTIL_HEADERS)
  112. skinning: skinning.o $(UTIL_OBJS)
  113. texaaline.o: $(UTIL_HEADERS)
  114. texaaline: texaaline.o $(UTIL_OBJS)
  115. texdemo1.o: $(UTIL_HEADERS)
  116. texdemo1: texdemo1.o $(UTIL_OBJS)
  117. toyball.o: $(UTIL_HEADERS)
  118. toyball: toyball.o $(UTIL_OBJS)
  119. twoside.o: $(UTIL_HEADERS)
  120. twoside: twoside.o $(UTIL_OBJS)
  121. trirast.o: $(UTIL_HEADERS)
  122. trirast: trirast.o $(UTIL_OBJS)
  123. vert-or-frag-only.o: $(UTIL_HEADERS)
  124. vert-or-frag-only: vert-or-frag-only.o $(UTIL_OBJS)
  125. vert-tex.o: $(UTIL_HEADERS)
  126. vert-tex: vert-tex.o $(UTIL_OBJS)