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

  1. # Makefile for GLU for NeXT
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.6
  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.  
  23. ##### MACROS #####
  24.  
  25. VPATH = RCS
  26.  
  27. INCDIR = ../include
  28. LIBDIR = ../lib
  29.  
  30. SOURCES = glu.c mipmap.c nurbs.c nurbscrv.c nurbssrf.c nurbsutl.c \
  31.     project.c quadric.c tess.c tesselat.c polytest.c
  32.  
  33. OBJECTS = $(SOURCES:.c=.o)
  34.  
  35.  
  36.  
  37. ##### RULES #####
  38.  
  39. .c.o:
  40.     $(CC) -c -I$(INCDIR) $(CFLAGS) $<
  41.  
  42.  
  43.  
  44. ##### TARGETS #####
  45.  
  46. default:
  47.     @echo "Specify a target configuration"
  48.  
  49. clean:
  50.     -rm *.o *~
  51.  
  52. targets: $(LIBDIR)/$(GLU_LIB)
  53.  
  54. # Make the library:
  55. $(LIBDIR)/$(GLU_LIB): $(OBJECTS)
  56.     $(MAKELIB) $(GLU_LIB) $(OBJECTS)
  57.     $(RANLIB) $(GLU_LIB)
  58.     mv $(GLU_LIB)* $(LIBDIR)
  59.  
  60. include ../Make-config
  61.  
  62. include depend
  63.  
  64.  
  65.  
  66. #
  67. # Run 'make depend' to update the dependencies if you change what's included
  68. # by any source file.
  69. depend: $(SOURCES)
  70.     makedepend -fdepend -Y -I../include $(SOURCES)
  71.  
  72.