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

  1. # Makefile for GLU for Unix
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.3
  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.16 1996/01/19 19:21:03 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.16  1996/01/19  19:21:03  brianp
  26. # use mv to put libraries in LIBDIR
  27. #
  28. # Revision 1.15  1995/09/19  14:17:22  brianp
  29. # bumped version to 1.2.3
  30. #
  31. # Revision 1.14  1995/08/01  20:53:08  brianp
  32. # modified to use $(MAKELIB)
  33. #
  34. # Revision 1.13  1995/06/21  15:55:20  brianp
  35. # renamed source files to 8.3 convention
  36. # added Linux ELF shared library target
  37. # Release 1.2.1
  38. #
  39. # Revision 1.12  1995/05/22  16:57:01  brianp
  40. # Release 1.2
  41. #
  42. # Revision 1.11  1995/05/01  14:50:38  brianp
  43. # added polygon tesselator files
  44. #
  45. # Revision 1.10  1995/04/17  13:50:07  brianp
  46. # use GLU_LIB variable
  47. #
  48. # Revision 1.9  1995/03/08  19:48:53  brianp
  49. # added -Y to makedepend
  50. #
  51. # Revision 1.8  1995/03/08  19:42:50  brianp
  52. # revamped for makedepend
  53. #
  54. # Revision 1.7  1995/03/04  19:40:02  brianp
  55. # updated for Make-config
  56. #
  57. # Revision 1.6  1995/03/01  21:06:44  brianp
  58. # replaced 'make' with $(MAKE)
  59. #
  60. # Revision 1.5  1995/02/28  20:42:26  brianp
  61. # added tess.c module
  62. #
  63. # Revision 1.4  1995/02/24  19:35:57  brianp
  64. # added VPATH for RCS
  65. #
  66. # Revision 1.3  1995/02/24  16:53:16  brianp
  67. # added netbsd target
  68. #
  69. # Revision 1.2  1995/02/24  15:34:27  brianp
  70. # updated for RCS
  71. #
  72. # Revision 1.1  1995/02/24  15:33:30  brianp
  73. # Initial revision
  74. #
  75.  
  76.  
  77. ##### MACROS #####
  78.  
  79. VPATH = RCS
  80.  
  81. INCDIR = ../include
  82. LIBDIR = ../lib
  83.  
  84. SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \
  85.     project.c quadric.c tess.c tesselat.c polytest.c
  86.  
  87. OBJECTS = $(SOURCES:.c=.o)
  88.  
  89.  
  90.  
  91. ##### RULES #####
  92.  
  93. .c.o:
  94.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  95.  
  96.  
  97.  
  98. ##### TARGETS #####
  99.  
  100. default:
  101.     @echo "Specify a target configuration"
  102.  
  103. clean:
  104.     -rm *.o *~
  105.  
  106. targets: $(LIBDIR)/$(GLU_LIB)
  107.  
  108. # Make the library:
  109. $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
  110.     $(MAKELIB) $(GLU_LIB) $(OBJECTS)
  111.     $(RANLIB) $(GLU_LIB)
  112.     mv $(GLU_LIB)* $(LIBDIR)
  113.  
  114. include ../Make-config
  115.  
  116. include depend
  117.  
  118.  
  119.  
  120. #
  121. # Run 'make depend' to update the dependencies if you change what's included
  122. # by any source file.
  123. depend: $(SOURCES)
  124.     makedepend -fdepend -Y -I../include $(SOURCES)
  125.  
  126.