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

  1. # Makefile for book programs for NeXT contributed by Pascal Thibaudeau
  2. # (pthibaud@cribx1.u-bordeaux.fr)
  3.  
  4. # Mesa 3-D graphics library
  5. # Version:  2.0
  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: Makefile.NeXT,v 1.3 1996/11/29 18:34:22 pascal Exp $
  24.  
  25. # Revision 1.3  1996/11/29  18:34:22 pascal thibaudeau
  26. # Book demos and generic.m included, nextdemoX excluded
  27. #
  28. # Revision 1.2  1996/05/16  00:17:02 pascal thibaudeau
  29. # minor bugs fixed
  30. #
  31. # Revision 1.1  1996/01/07  16:23:53 pascal thibaudeau
  32. # Initial revision
  33. #
  34.  
  35.  
  36. ##### MACROS #####
  37.  
  38. INCDIR = ../include
  39.  
  40. GL_LIBS = generic.m -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL $(XLIBS)
  41.  
  42. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  43.  
  44. PROGS = alpha3D chess cone_ball material tea teapots texgen nurbs surface\
  45.         checker checker2 dof texturesurf sphere cone font model disk
  46.  
  47. all: generic.o $(PROGS)
  48.  
  49. ##### RULES #####
  50.  
  51. SUFFIXES: .m
  52.  
  53. .m: $(LIB_DEP)
  54.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  55.  
  56. generic.o:
  57.     $(CC) -c -I$(INCDIR) $(CFLAGS) $< -o $@
  58.  
  59. .c: $(LIB_DEP) generic.o
  60.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  61.  
  62.  
  63. ##### TARGETS #####
  64.  
  65. default:
  66.     @echo "Specify a target configuration"
  67.  
  68. clean:
  69.     -rm *.o *~
  70.     -rm -f $(PROGS)
  71.  
  72. realclean: clean
  73.  
  74. targets: $(PROGS)
  75.  
  76. include ../Make-config
  77.  
  78.