home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / gfx / x11 / Mesa_Amiwin.lha / Mesa-Amiwin / src-glu / smakefile < prev    next >
Makefile  |  1995-11-23  |  3KB  |  117 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.15 1995/09/19 14:17:22 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.15  1995/09/19  14:17:22  brianp
  26. # bumped version to 1.2.3
  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 = glu.o mipmap.o nurbs.o nurbscrv.o nurbssrf.o nurbsutl.o \
  88.     project.o quadric.o tess.o tesselat.o polytest.o
  89. CC = sc
  90.  
  91. SCFLAGS = idir=$(INCDIR) idir=x11:sasc/include data=far idlen=63 \
  92.           nostkchk ignore=a math=68882 cpu=68040 optimize define=AMIWIN
  93.  
  94. MAKELIB = oml -n
  95. GLU_LIB = MesaGLU.LIB
  96.  
  97. ##### RULES #####
  98.  
  99. .c.o:
  100.     $(CC) $(SCFLAGS) $*.c
  101.  
  102.  
  103.  
  104. ##### TARGETS #####
  105.  
  106. default:
  107.     @echo "Specify a target configuration"
  108.  
  109. clean:
  110.     -delete *.o $(GLU_LIB)
  111.  
  112. targets: $(LIBDIR)/$(GLU_LIB)
  113.  
  114. # Make the library:
  115. $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
  116.     $(MAKELIB) $@ R $(OBJECTS)
  117.