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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # progs/xdemos/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. PROGS = glthreads \
  7. glxdemo \
  8. glxgears \
  9. glxgears_fbconfig \
  10. glxcontexts \
  11. glxheads \
  12. glxinfo \
  13. glxpixmap \
  14. glxpbdemo \
  15. glxswapcontrol \
  16. manywin \
  17. offset \
  18. overlay \
  19. pbinfo \
  20. pbdemo \
  21. texture_from_pixmap \
  22. wincopy \
  23. xfont \
  24. xrotfontdemo \
  25. yuvrect_client
  26. # omit this XMesa API demo: xdemo
  27. ##### RULES #####
  28. .SUFFIXES:
  29. .SUFFIXES: .c
  30. .c: $(LIB_DEP)
  31. $(CC) -I$(INCDIR) $(CFLAGS) $< $(APP_LIB_DEPS) -o $@
  32. ##### TARGETS #####
  33. default: $(PROGS)
  34. clean:
  35. -rm -f $(PROGS)
  36. -rm -f *.o *~
  37. # special cases
  38. pbinfo: pbinfo.o pbutil.o
  39. $(CC) -I$(INCDIR) $(CFLAGS) pbinfo.o pbutil.o $(APP_LIB_DEPS) -o $@
  40. pbdemo: pbdemo.o pbutil.o
  41. $(CC) -I$(INCDIR) $(CFLAGS) pbdemo.o pbutil.o $(APP_LIB_DEPS) -o $@
  42. pbinfo.o: pbinfo.c pbutil.h
  43. $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbinfo.c
  44. pbdemo.o: pbdemo.c pbutil.h
  45. $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbdemo.c
  46. pbutil.o: pbutil.c pbutil.h
  47. $(CC) -c -I. -I$(INCDIR) $(CFLAGS) pbutil.c
  48. glxgears_fbconfig: glxgears_fbconfig.o pbutil.o
  49. $(CC) -I$(INCDIR) $(CFLAGS) glxgears_fbconfig.o pbutil.o $(APP_LIB_DEPS) -o $@
  50. glxgears_fbconfig.o: glxgears_fbconfig.c pbutil.h
  51. $(CC) -I$(INCDIR) $(CFLAGS) -c -I. $(CFLAGS) glxgears_fbconfig.c
  52. xrotfontdemo: xrotfontdemo.o xuserotfont.o
  53. $(CC) -I$(INCDIR) $(CFLAGS) xrotfontdemo.o xuserotfont.o $(APP_LIB_DEPS) -o $@
  54. xuserotfont.o: xuserotfont.c xuserotfont.h
  55. $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xuserotfont.c
  56. xrotfontdemo.o: xrotfontdemo.c xuserotfont.h
  57. $(CC) -c -I. -I$(INCDIR) $(CFLAGS) xrotfontdemo.c