home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / gfx / x11 / Mesa_Amiwin.lha / Mesa-Amiwin / widgets / Makefile.in < prev    next >
Makefile  |  1995-06-08  |  4KB  |  135 lines

  1. # Makefile.in --- Mesa GL Widget for X11 Toolkit Programming
  2. # Copyright (C) 1995 by
  3. #   Jeroen van der Zijp <jvz@cyberia.cfdrc.com>
  4. #   Thorsten Ohl <Thorsten.Ohl@Physik.TH-Darmstadt.de>
  5. #
  6. # This library is free software; you can redistribute it and/or
  7. # modify it under the terms of the GNU Library General Public
  8. # License as published by the Free Software Foundation; either
  9. # version 2 of the License, or (at your option) any later version.
  10. #
  11. # This library is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU Library General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Library General Public
  17. # License along with this library; if not, write to the Free Software
  18. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. #
  20. # $Id: Makefile.in,v 1.16 1995/05/19 20:32:00 ohl Exp $
  21. #
  22. ########################################################################
  23.  
  24. CFLAGS = -O2
  25. LDFLAGS =
  26.  
  27. ########################################################################
  28.  
  29. SHELL = /bin/sh
  30.  
  31. srcdir = @srcdir@
  32. top_srcdir = @top_srcdir@
  33. mesa_srcdir = @mesa_srcdir@
  34. VPATH = @srcdir@
  35.  
  36. SUBDIRS = src include/GL man demos
  37.  
  38. VISUAL_GL_DEMOS = demo.gl.pseudo.rgb demo.gl.true.rgb \
  39.           demo.gl.pseudo.ci demo.gl.true.ci 
  40.  
  41. VISUAL_MESA_DEMOS = demo.mesa.pseudo.rgb demo.mesa.true.rgb \
  42.             demo.mesa.pseudo.ci demo.mesa.true.ci
  43.  
  44. all install uninstall:
  45.     for d in $(SUBDIRS); do    (cd $$d && $(MAKE) $@); done
  46.  
  47. demo demo.gl demo.mesa demo.ws demo.ws1 demo.tea \
  48.   demo.gl.pseudo demo.gl.true \
  49.   demo.mesa.pseudo demo.mesa.true \
  50.   $(VISUAL_GL_DEMOS) $(VISUAL_MESA_DEMOS):
  51.     cd src && $(MAKE) all
  52.     cd demos && $(MAKE) $@
  53.  
  54. demo.all: demo.gl.all demo.mesa.all 
  55. demo.gl.all: $(VISUAL_GL_DEMOS)
  56. demo.mesa.all: $(VISUAL_MESA_DEMOS)
  57.  
  58. # Standard GNU clean* targets:
  59. maintainer-clean: clean
  60.     @echo "This command is intended for maintainers to use;"
  61.     @echo "it deletes files that may require special tools to rebuild."
  62.     for d in $(SUBDIRS); do    (cd $$d && $(MAKE) $@); done
  63.  
  64. mostlyclean: clean
  65.     for d in $(SUBDIRS); do    (cd $$d && $(MAKE) $@); done
  66.  
  67. distclean: clean
  68.     for d in $(SUBDIRS); do    (cd $$d && $(MAKE) $@); done
  69.     rm -f Makefile config.cache config.status
  70.  
  71. clean:
  72.     for d in $(SUBDIRS); do    (cd $$d && $(MAKE) $@); done
  73.     rm -f .*~ *~ config.log
  74.  
  75. realclean: clean
  76.  
  77. # GNU autoconf(1) targets:
  78. Makefile: Makefile.in config.status
  79.     $(SHELL) config.status
  80. config.status: configure
  81.     $(SHELL) config.status --recheck
  82. configure: configure.in
  83.     cd $(srcdir); autoconf
  84.  
  85. ########################################################################
  86. # Distributions
  87. ########################################################################
  88.  
  89. DISTFILES.top = README INSTALL /usr/local/etc/COPYING ChangeLog TODO \
  90.         Makefile.in configure configure.in config.guess config.sub \
  91.         install-sh
  92.  
  93. DISTFILES.src = ChangeLog Makefile.in \
  94.         GLwDrawingArea.c GLwMDrawingArea.c \
  95.         MesaDrawingArea.c MesaWorkstation.c \
  96.         GLwCreateMDrawingArea.c GLwDrawingAreaMakeCurrent.c \
  97.         GLwDrawingAreaSwapBuffers.c GLwMakeCurrent.c
  98.  
  99. DISTFILES.inc = ChangeLog Makefile.in \
  100.         GLwDrawA.h GLwDrawAP.h GLwMDrawA.h GLwMDrawAP.h \
  101.         MesaDrawingArea.h MesaDrawingAreaP.h \
  102.         MesaWorkstation.h MesaWorkstationP.h
  103.  
  104. PODS = MesaDrawingArea.pod MesaWorkstation.pod \
  105.        GLwDrawingArea.pod GLwCreateMDrawingArea.pod \
  106.        GLwDrawingAreaSwapBuffers.pod GLwDrawingAreaMakeCurrent.pod
  107.  
  108. DISTFILES.man = ChangeLog Makefile.in \
  109.         $(PODS) $(PODS:.pod=.3x) $(PODS:.pod=.html)
  110.  
  111. DISTFILES.demos = ChangeLog Makefile.in cube.c mcube.c ed.c tea.c \
  112.           Cube Mcube Ed events Tea
  113.  
  114. # snapshots:
  115. snap:
  116.     rm -fr widgets-current
  117.     mkdir widgets-current
  118.     cp $(DISTFILES.top) widgets-current
  119.     mkdir widgets-current/src
  120.     cd src && cp $(DISTFILES.src) ../widgets-current/src
  121.     mkdir widgets-current/include
  122.     mkdir widgets-current/include/GL
  123.     cd include/GL && cp $(DISTFILES.inc) ../../widgets-current/include/GL
  124.     mkdir widgets-current/man
  125.     cd man && $(MAKE) && cp $(DISTFILES.man) ../widgets-current/man
  126.     mkdir widgets-current/demos
  127.     cd demos && cp $(DISTFILES.demos) ../widgets-current/demos
  128.     tar cf - widgets-current | gzip > widgets-current.tar.gz
  129.     rm -fr widgets-current
  130.  
  131. test.snap: snap
  132.     rm -fr widgets-current
  133.     zcat widgets-current.tar.gz | tar xf -
  134.     cd widgets-current && ./configure && $(MAKE) all
  135.