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

  1. # Makefile for core library for NeXT contributed by Pascal Thibaudeau
  2. # (pthibaud@frbdx11.cribx1.u-bordeaux.fr)
  3.  
  4. # Mesa 3-D graphics library
  5. # Version:  1.2.8
  6. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  7. #
  8. # This library is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU Library General Public
  10. # License as published by the Free Software Foundation; either
  11. # version 2 of the License, or (at your option) any later version.
  12. #
  13. # This library is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16. # Library General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU Library General Public
  19. # License along with this library; if not, write to the Free
  20. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22.  
  23. # $Id$
  24.  
  25. # $Log$
  26.  
  27.  
  28.  
  29. ##### MACROS #####
  30.  
  31. VPATH = RCS
  32.  
  33. INCDIR = ../include
  34. LIBDIR = ../lib
  35.  
  36. SOURCES = accum.c alpha.c alphabuf.c attrib.c bitmap.c blend.c bresenhm.c \
  37.     clip.c context.c copypix.c dd.c depth.c draw.c drawpix.c enable.c \
  38.     eval2.c fog.c feedback.c fortran.c  get.c interp.c \
  39.     light.c lines.c list.c logic.c masking.c misc.c osmesa.c pb.c \
  40.     pixel.c points.c polygons.c readpix.c scissor.c span.c stencil.c \
  41.     svgamesa.c texture.c varray.c vb.c vertex.c winpos.c xform.c
  42.  
  43.  
  44. OBJECTS = $(SOURCES:.c=.o)
  45.  
  46.  
  47. ##### RULES #####
  48.  
  49. .c.o:
  50.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  51.  
  52.  
  53. ##### TARGETS #####
  54.  
  55. default:
  56.     @echo "Specify a target configuration"
  57.  
  58. clean:
  59.     -rm *.o *~
  60.  
  61. targets: $(LIBDIR)/$(GL_LIB)
  62.  
  63. # Make the library
  64. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  65.     $(MAKELIB) $(GL_LIB) $(OBJECTS)
  66.     $(RANLIB) $(GL_LIB)
  67.     mv $(GL_LIB)* $(LIBDIR)
  68.  
  69. include ../Make-config
  70.  
  71. include depend
  72.  
  73.  
  74.  
  75. #
  76. # Run 'make depend' to update the dependencies if you change what's included
  77. # by any source file.
  78. dep: $(SOURCES)
  79.     makedepend -fdepend -Y -I../include $(SOURCES)
  80.  
  81.