home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / src / makefile < prev    next >
Makefile  |  1996-05-27  |  4KB  |  176 lines

  1. # Makefile for core library
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.8
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.29 1996/05/15 18:21:35 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.29  1996/05/15  18:21:35  brianp
  26. # divided SOURCES into CORE_SOURCES and DRIVER_SOURCES
  27. #
  28. # Revision 1.28  1996/02/27  15:16:30  brianp
  29. # added alphabuf.c
  30. #
  31. # Revision 1.27  1996/02/15  16:03:33  brianp
  32. # added varray.c and removed gamma.c
  33. #
  34. # Revision 1.26  1996/01/19  19:21:28  brianp
  35. # use mv to put libraries in LIBDIR
  36. #
  37. # Revision 1.25  1996/01/16  17:07:53  brianp
  38. # added svgamesa.c to SOURCES
  39. #
  40. # Revision 1.24  1996/01/10  22:44:23  brianp
  41. # changed make-lib commands per Robert Prus
  42. #
  43. # Revision 1.23  1995/11/13  21:34:00  brianp
  44. # added xmesa3.c file
  45. #
  46. # Revision 1.22  1995/10/19  15:55:02  brianp
  47. # added gamma.c to SOURCES
  48. #
  49. # Revision 1.21  1995/10/17  21:44:28  brianp
  50. # changed SOURCES for new device driver and masking.c files
  51. #
  52. # Revision 1.20  1995/08/01  20:58:09  brianp
  53. # modified to use $(MAKELIB)
  54. #
  55. # Revision 1.19  1995/06/21  15:54:36  brianp
  56. # renamed source files to 8.3 convention
  57. # added Linux ELF shared library target
  58. # Release 1.2.1
  59. #
  60. # Revision 1.18  1995/05/22  21:05:42  brianp
  61. # Release 1.2
  62. #
  63. # Revision 1.17  1995/04/17  14:40:37  brianp
  64. # use GL_LIB variable
  65. #
  66. # Revision 1.16  1995/03/24  19:30:25  brianp
  67. # added vb.c to SOURCES
  68. #
  69. # Revision 1.15  1995/03/13  15:58:15  brianp
  70. # added xfonts.c to SOURCES
  71. #
  72. # Revision 1.14  1995/03/10  16:26:16  brianp
  73. # use eval2.c instead of eval.c
  74. #
  75. # Revision 1.13  1995/03/08  19:49:05  brianp
  76. # added -Y to makedepend
  77. #
  78. # Revision 1.12  1995/03/08  19:42:36  brianp
  79. # revamped for makedepend
  80. #
  81. # Revision 1.11  1995/03/08  15:13:10  brianp
  82. # dependency changes for dd_logicop, dd_clear_index, dd_clear_color
  83. #
  84. # Revision 1.10  1995/03/07  19:10:54  brianp
  85. # made changes for pb w/ blending, alpha test, logic ops
  86. #
  87. # Revision 1.9  1995/03/07  14:15:25  brianp
  88. # use eval.c instead of eval2.c because of FPE on Linux
  89. #
  90. # Revision 1.8  1995/03/04  19:18:40  brianp
  91. # changed for Make-config
  92. #
  93. # Revision 1.7  1995/03/01  21:05:20  brianp
  94. # replaced 'make' with $(MAKE)
  95. #
  96. # Revision 1.6  1995/03/01  17:44:40  brianp
  97. # added stenciling for PB
  98. #
  99. # Revision 1.5  1995/02/28  21:23:16  brianp
  100. # added glx support
  101. #
  102. # Revision 1.4  1995/02/27  22:49:15  brianp
  103. # modified for PB
  104. #
  105. # Revision 1.3  1995/02/24  19:33:36  brianp
  106. # added VPATH for RCS
  107. #
  108. # Revision 1.2  1995/02/24  16:50:54  brianp
  109. # added netbsd target
  110. #
  111. # Revision 1.1  1995/02/24  14:32:10  brianp
  112. # Initial revision
  113. #
  114.  
  115.  
  116. ##### MACROS #####
  117.  
  118. VPATH = RCS
  119.  
  120. INCDIR = ../include
  121. LIBDIR = ../lib
  122.  
  123. CORE_SOURCES = accum.c alpha.c alphabuf.c attrib.c bitmap.c blend.c \
  124.     bresenhm.c clip.c context.c copypix.c dd.c depth.c draw.c \
  125.     drawpix.c enable.c eval2.c fog.c feedback.c fortran.c get.c \
  126.     interp.c light.c lines.c list.c logic.c masking.c misc.c osmesa.c \
  127.     pb.c pixel.c points.c polygons.c readpix.c scissor.c span.c \
  128.     stencil.c texture.c varray.c vb.c vertex.c winpos.c xform.c
  129.  
  130. DRIVER_SOURCES = glx.c xfonts.c xmesa1.c xmesa2.c xmesa3.c svgamesa.c cmesa.c
  131.  
  132. SOURCES = $(CORE_SOURCES) $(DRIVER_SOURCES)
  133.  
  134.  
  135.  
  136. OBJECTS = $(SOURCES:.c=.o)
  137.  
  138.  
  139.  
  140. ##### RULES #####
  141.  
  142. .c.o:
  143.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  144.  
  145.  
  146.  
  147. ##### TARGETS #####
  148.  
  149. default:
  150.     @echo "Specify a target configuration"
  151.  
  152. clean:
  153.     -rm *.o *~
  154.  
  155. targets: $(LIBDIR)/$(GL_LIB)
  156.  
  157. # Make the library
  158. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  159.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  160.     $(RANLIB) $(GL_LIB)
  161.     mv $(GL_LIB)* $(LIBDIR)
  162.  
  163. include ../Make-config
  164.  
  165. include depend
  166.  
  167.  
  168.  
  169. #
  170. # Run 'make depend' to update the dependencies if you change what's included
  171. # by any source file.
  172. dep: $(SOURCES)
  173.     makedepend -fdepend -Y -I../include $(SOURCES)
  174.  
  175.