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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(APP_LIB_DEPS)
  7. PROGS = \
  8. corender \
  9. glthreads \
  10. glxdemo \
  11. glxgears \
  12. glxgears_fbconfig \
  13. glxgears_pixmap \
  14. glxcontexts \
  15. glxheads \
  16. glxinfo \
  17. glxpixmap \
  18. glxpbdemo \
  19. glxsnoop \
  20. glxswapcontrol \
  21. manywin \
  22. offset \
  23. overlay \
  24. pbinfo \
  25. pbdemo \
  26. sharedtex \
  27. texture_from_pixmap \
  28. wincopy \
  29. xfont \
  30. xrotfontdemo
  31. # Don't build these by default because of extra library dependencies
  32. EXTRA_PROGS = \
  33. shape \
  34. yuvrect_client \
  35. xdemo
  36. ##### RULES #####
  37. .SUFFIXES:
  38. .SUFFIXES: .c
  39. .c: $(LIB_DEP)
  40. $(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $(LDFLAGS) $< $(LIBS) -o $@
  41. ##### TARGETS #####
  42. default: $(PROGS)
  43. extra: $(EXTRA_PROGS)
  44. clean:
  45. -rm -f $(PROGS) $(EXTRA_PROGS)
  46. -rm -f *.o *~
  47. # special cases
  48. pbinfo: pbinfo.o pbutil.o
  49. $(CC) $(LDFLAGS) pbinfo.o pbutil.o $(LIBS) -o $@
  50. pbdemo: pbdemo.o pbutil.o
  51. $(CC) $(LDFLAGS) pbdemo.o pbutil.o $(LIBS) -o $@
  52. pbinfo.o: pbinfo.c pbutil.h
  53. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbinfo.c
  54. pbdemo.o: pbdemo.c pbutil.h
  55. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbdemo.c
  56. pbutil.o: pbutil.c pbutil.h
  57. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) pbutil.c
  58. glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
  59. $(CC) $(LDFLAGS) glxgears_fbconfig.o pbutil.o $(LIBS) -o $@
  60. glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
  61. $(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
  62. xrotfontdemo: xrotfontdemo.o xuserotfont.o
  63. $(CC) $(LDFLAGS) xrotfontdemo.o xuserotfont.o $(LIBS) -o $@
  64. xuserotfont.o: xuserotfont.c xuserotfont.h
  65. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xuserotfont.c
  66. xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
  67. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) xrotfontdemo.c
  68. corender: corender.o ipc.o
  69. $(CC) $(CFLAGS) corender.o ipc.o $(LIBS) -o $@
  70. corender.o: corender.c ipc.h
  71. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) corender.c
  72. ipc.o: ipc.c ipc.h
  73. $(CC) -c -I. -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) ipc.c
  74. yuvrect_client: yuvrect_client.c
  75. $(CC) -I$(INCDIR) $(X11_INCLUDES) $(CFLAGS) $< $(LDFLAGS) $(LIBS) -l$(GLU_LIB) -o $@