home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src / makefile.openstep < prev    next >
Encoding:
Makefile  |  1998-01-31  |  2.3 KB  |  96 lines

  1. # $Id: Makefile.OpenStep,v 1.3 1997/10/22 00:20:00 brianp Exp $
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.5
  5. # Copyright (C) 1995-1997  Brian Paul
  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. # Makefile for core library
  23.  
  24.  
  25. # $Log: Makefile.OpenStep,v $
  26. # Revision 1.3  1997/10/22 00:20:00  brianp
  27. # now make lib with major, minor version numbers
  28. #
  29. # Revision 1.2  1997/08/22 01:43:47  brianp
  30. # added api[12].c and hash.c
  31. #
  32. # Revision 1.1  1997/05/09 02:45:28  brianp
  33. # Initial revision
  34. #
  35.  
  36.  
  37.  
  38. ##### MACROS #####
  39.  
  40. VPATH = RCS
  41.  
  42. INCDIR = ../include
  43. LIBDIR = ../lib
  44.  
  45. CORE_SOURCES = accum.c alpha.c alphabuf.c api1.c api2.c attrib.c bitmap.c \
  46.     blend.c clip.c context.c copypix.c depth.c \
  47.     dlist.c drawpix.c enable.c eval.c feedback.c fog.c \
  48.     get.c hash.c image.c light.c lines.c logic.c masking.c matrix.c \
  49.     misc.c mmath.c pb.c pixel.c points.c pointers.c polygon.c \
  50.     quads.c rastpos.c readpix.c rect.c scissor.c shade.c span.c \
  51.     stencil.c teximage.c texobj.c texstate.c texture.c triangle.c \
  52.     varray.c winpos.c vb.c vbfill.c vbrender.c vbxform.c xform.c
  53.  
  54. DRIVER_SOURCES = osmesa.c
  55.  
  56.  
  57.  
  58. OBJECTS = $(CORE_SOURCES:.c=.o) $(DRIVER_SOURCES:.c=.o)
  59.  
  60.  
  61.  
  62. ##### RULES #####
  63.  
  64. .c.o:
  65.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  66.  
  67.  
  68.  
  69. ##### TARGETS #####
  70.  
  71. default:
  72.     @echo "Specify a target configuration"
  73.  
  74. clean:
  75.     -rm *.o *~
  76.  
  77. targets: $(LIBDIR)/$(GL_LIB)
  78.  
  79. # Make the library
  80. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  81.     $(MAKELIB) $(GL_LIB) $(MAJOR) $(MINOR) $(OBJECTS)
  82.     mv $(GL_LIB)* $(LIBDIR)
  83.  
  84. include ../Make-config
  85.  
  86. include depend
  87.  
  88.  
  89.  
  90. #
  91. # Run 'make depend' to update the dependencies if you change what's included
  92. # by any source file.
  93. dep: $(CORE_SOURCES) $(DRIVER_SOURCES)
  94.     makedepend -fdepend -Y -I../include $(CORE_SOURCES) $(DRIVER_SOURCES)
  95.