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

  1. # Makefile for demo programs
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.3
  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.  
  23. ##### MACROS #####
  24.  
  25. INCDIR = ../include
  26.  
  27. GL_LIBS = -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  28.  
  29. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  30.  
  31. PROGS = bounce gamma gears glxdemo glxpixmap isosurf morph3d offset osdemo \
  32.     reflect spin stex3d test0 texobj winpos xdemo
  33.  
  34. ### TODO: finish new shadow demo
  35.  
  36.  
  37. ##### RULES #####
  38.  
  39. .SUFFIXES:
  40. .SUFFIXES: .c
  41.  
  42. .c: $(LIB_DEP)
  43.     $(CC) -I$(INCDIR) $(CFLAGS) $< $(GL_LIBS) -o $@
  44.  
  45.  
  46.  
  47. ##### TARGETS #####
  48.  
  49. default:
  50.     @echo "Specify a target configuration"
  51.  
  52. clean:
  53.     -rm *.o *~
  54.  
  55. realclean:
  56.     -rm $(PROGS)
  57.     -rm *.o *~
  58.  
  59. targets: $(PROGS)
  60.  
  61. # execute all programs
  62. exec: $(PROGS)
  63.     @for prog in $(PROGS) ;            \
  64.     do                    \
  65.         echo -n "Running $$prog ..." ;    \
  66.         $$prog ;            \
  67.         echo ;                \
  68.     done
  69.  
  70.  
  71. include ../Make-config
  72.  
  73.