Clone of mesa.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Makefile 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. # progs/xdemos/Makefile
  2. TOP = ../..
  3. include $(TOP)/configs/current
  4. INCDIR = $(TOP)/include
  5. LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
  6. # Add X11 and pthread libs to satisfy GNU gold.
  7. APP_LIB_DEPS += $(X_LIBS) -lpthread
  8. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(APP_LIB_DEPS)
  9. PROGS = \
  10. corender \
  11. glsync \
  12. glthreads \
  13. glxdemo \
  14. glxgears \
  15. glxgears_fbconfig \
  16. glxgears_pixmap \
  17. glxcontexts \
  18. glxheads \
  19. glxinfo \
  20. glxpixmap \
  21. glxpbdemo \
  22. glxsnoop \
  23. glxswapcontrol \
  24. manywin \
  25. msctest \
  26. multictx \
  27. offset \
  28. omlsync \
  29. overlay \
  30. pbinfo \
  31. pbdemo \
  32. sharedtex \
  33. sharedtex_mt \
  34. texture_from_pixmap \
  35. wincopy \
  36. xfont \
  37. xrotfontdemo
  38. # Don't build these by default because of extra library dependencies
  39. EXTRA_PROGS = \
  40. shape \
  41. yuvrect_client \
  42. xdemo
  43. ##### RULES #####
  44. .SUFFIXES:
  45. .SUFFIXES: .c
  46. .c: $(LIB_DEP)
  47. $(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  48. ##### TARGETS #####
  49. default: $(PROGS)
  50. extra: $(EXTRA_PROGS)
  51. clean:
  52. -rm -f $(PROGS) $(EXTRA_PROGS)
  53. -rm -f *.o *~
  54. # special cases
  55. pbinfo: pbinfo.o pbutil.o
  56. $(APP_CC) $(CFLAGS) $(LDFLAGS) pbinfo.o pbutil.o $(LIBS) -o $@
  57. pbdemo: pbdemo.o pbutil.o
  58. $(APP_CC) $(CFLAGS) $(LDFLAGS) pbdemo.o pbutil.o $(LIBS) -o $@
  59. pbinfo.o: pbinfo.c pbutil.h
  60. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbinfo.c
  61. pbdemo.o: pbdemo.c pbutil.h
  62. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbdemo.c
  63. pbutil.o: pbutil.c pbutil.h
  64. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbutil.c
  65. glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
  66. $(APP_CC) $(CFLAGS) $(LDFLAGS) glxgears_fbconfig.o pbutil.o $(LIBS) -o $@
  67. glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
  68. $(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
  69. xrotfontdemo: xrotfontdemo.o xuserotfont.o
  70. $(APP_CC) $(CFLAGS) $(LDFLAGS) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
  71. xuserotfont.o: xuserotfont.c xuserotfont.h
  72. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xuserotfont.c
  73. xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
  74. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xrotfontdemo.c
  75. corender: corender.o ipc.o
  76. $(APP_CC) $(CFLAGS) $(LDFLAGS) corender.o ipc.o $(LIBS) -o $@
  77. corender.o: corender.c ipc.h
  78. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) corender.c
  79. ipc.o: ipc.c ipc.h
  80. $(APP_CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) ipc.c
  81. yuvrect_client: yuvrect_client.c
  82. $(APP_CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -l$(GLU_LIB) -o $@