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

  1. # Makefile for demo programs
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2
  5. # Copyright (C) 1995-1996  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.12 1996/05/15 18:32:06 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.12  1996/05/15  18:32:06  brianp
  26. # added reflect and winpos programs
  27. #
  28. # Revision 1.11  1995/10/27  20:58:04  brianp
  29. # added polygon offset demo
  30. #
  31. # Revision 1.10  1995/10/19  18:39:07  brianp
  32. # added gamma demo
  33. #
  34. # Revision 1.9  1995/10/12  18:32:00  brianp
  35. # added osdemo target
  36. #
  37. # Revision 1.8  1995/08/01  21:00:14  brianp
  38. # use $(TK_LIB) and $(AUX_LIB), added gears and shadow demos
  39. #
  40. # Revision 1.7  1995/05/01  15:25:20  brianp
  41. # clean up and reorganize
  42. #
  43. # Revision 1.6  1995/04/20  13:39:05  brianp
  44. # added glxdemo, glxpixmap
  45. # removed accum, prim, stencil
  46. #
  47. # Revision 1.5  1995/03/07  14:27:01  brianp
  48. # added realclean target
  49. #
  50. # Revision 1.4  1995/03/01  21:08:51  brianp
  51. # replaced 'make' with $(MAKE)
  52. #
  53. # Revision 1.3  1995/02/24  16:48:44  brianp
  54. # fixed netbsd CFLAGS
  55. #
  56. # Revision 1.2  1995/02/24  16:26:26  brianp
  57. # added netbsd target
  58. #
  59. # Revision 1.1  1995/02/24  16:23:53  brianp
  60. # Initial revision
  61. #
  62.  
  63.  
  64. ##### MACROS #####
  65.  
  66. INCDIR = ../include
  67.  
  68. GL_LIBS = -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  69.  
  70. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  71.  
  72. PROGS = bounce gamma gears glxdemo glxpixmap isosurf offset osdemo shadow \
  73.     spin test0 wave xdemo reflect winpos
  74.  
  75.  
  76.  
  77. ##### RULES #####
  78.  
  79. .SUFFIXES:
  80. .SUFFIXES: .c
  81.  
  82. .c: $(LIB_DEP)
  83.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  84.  
  85.  
  86.  
  87. ##### TARGETS #####
  88.  
  89. default:
  90.     @echo "Specify a target configuration"
  91.  
  92. clean:
  93.     -rm *.o *~
  94.  
  95. realclean:
  96.     -rm $(PROGS)
  97.     -rm *.o *~
  98.  
  99. targets: $(PROGS)
  100.  
  101. include ../Make-config
  102.  
  103.