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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Makefile for GLUT
  2. #
  3. # NOTICE: The OpenGL Utility Toolkit (GLUT) distribution contains source
  4. # code published in a book titled "Programming OpenGL for the X Window
  5. # System" (ISBN: 0-201-48359-9) published by Addison-Wesley. The
  6. # programs and associated files contained in the distribution were
  7. # developed by Mark J. Kilgard and are Copyright 1994, 1995, 1996 by Mark
  8. # J. Kilgard (unless otherwise noted). The programs are not in the
  9. # public domain, but they are freely distributable without licensing
  10. # fees. These programs are provided without guarantee or warrantee
  11. # expressed or implied.
  12. #
  13. # GLUT source included with Mesa with permission from Mark Kilgard.
  14. TOP = ../../..
  15. include $(TOP)/configs/current
  16. ##### MACROS #####
  17. GLUT_MAJOR = 3
  18. GLUT_MINOR = 7
  19. GLUT_TINY = 1
  20. SOURCES = \
  21. glut_8x13.c \
  22. glut_9x15.c \
  23. glut_bitmap.c \
  24. glut_bwidth.c \
  25. glut_cindex.c \
  26. glut_cmap.c \
  27. glut_cursor.c \
  28. glut_dials.c \
  29. glut_dstr.c \
  30. glut_event.c \
  31. glut_ext.c \
  32. glut_fullscrn.c \
  33. glut_gamemode.c \
  34. glut_get.c \
  35. glut_glxext.c \
  36. glut_hel10.c \
  37. glut_hel12.c \
  38. glut_hel18.c \
  39. glut_init.c \
  40. glut_input.c \
  41. glut_joy.c \
  42. glut_key.c \
  43. glut_keyctrl.c \
  44. glut_keyup.c \
  45. glut_menu.c \
  46. glut_menu2.c \
  47. glut_mesa.c \
  48. glut_modifier.c \
  49. glut_mroman.c \
  50. glut_overlay.c \
  51. glut_roman.c \
  52. glut_shapes.c \
  53. glut_space.c \
  54. glut_stroke.c \
  55. glut_swap.c \
  56. glut_swidth.c \
  57. glut_tablet.c \
  58. glut_teapot.c \
  59. glut_tr10.c \
  60. glut_tr24.c \
  61. glut_util.c \
  62. glut_vidresize.c \
  63. glut_warp.c \
  64. glut_win.c \
  65. glut_winmisc.c \
  66. layerutil.c
  67. OBJECTS = $(SOURCES:.c=.o)
  68. ##### RULES #####
  69. .c.o:
  70. $(CC) -c -I$(TOP)/include $(X11_INCLUDES) $(CFLAGS) $(GLUT_CFLAGS) $<
  71. ##### TARGETS #####
  72. default: $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME)
  73. # Make the library
  74. $(TOP)/$(LIB_DIR)/$(GLUT_LIB_NAME): depend $(OBJECTS)
  75. $(TOP)/bin/mklib -o $(GLUT_LIB) -linker '$(CC)' \
  76. -major $(GLUT_MAJOR) -minor $(GLUT_MINOR) -patch $(GLUT_TINY) \
  77. $(MKLIB_OPTIONS) -install $(TOP)/$(LIB_DIR) \
  78. $(GLUT_LIB_DEPS) $(OBJECTS)
  79. install:
  80. $(INSTALL) -d $(INSTALL_DIR)/include/GL
  81. $(INSTALL) -d $(INSTALL_DIR)/$(LIB_DIR)
  82. $(INSTALL) -m 644 $(TOP)/include/GL/glut.h $(INSTALL_DIR)/include/GL
  83. $(INSTALL) $(TOP)/$(LIB_DIR)/libglut* $(INSTALL_DIR)/$(LIB_DIR)
  84. clean:
  85. -rm -f *.o *~
  86. -rm -f *.lo
  87. -rm -f *.la
  88. -rm -rf .libs
  89. -rm -rf depend depend.bak
  90. depend: $(SOURCES)
  91. @ echo "running $(MKDEP)"
  92. @ touch depend
  93. @ $(MKDEP) $(MKDEP_OPTIONS) -I$(TOP)/include $(SOURCES) \
  94. > /dev/null
  95. include depend