home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / widgets / demos / makefile.in < prev    next >
Makefile  |  1996-05-27  |  5KB  |  200 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/04/22 14:12:59 ohl Exp $
  21. #
  22. ########################################################################
  23.  
  24. CFLAGS = -O2
  25. LDFLAGS =
  26.  
  27. ########################################################################
  28. # autoconf(1):
  29. ########################################################################
  30.  
  31. SHELL = /bin/sh
  32.  
  33. srcdir = @srcdir@
  34. top_srcdir = @top_srcdir@
  35. mesa_srcdir = @mesa_srcdir@
  36. VPATH = @srcdir@
  37.  
  38. prefix = @prefix@
  39. exec_prefix = @exec_prefix@
  40. binprefix =
  41. manprefix =
  42.  
  43. bindir = $(exec_prefix)/bin
  44. libdir = $(prefix)/lib
  45.  
  46. CC = @CC@
  47. CPP = @CPP@
  48. LD = $(CC)
  49. LIBS = @LIBS@
  50.  
  51. CPPFLAGS = @CPPFLAGS@ -I$(mesa_srcdir)/include -I$(top_srcdir)/include
  52. DEFS = @DEFS@
  53. SYS_CFLAGS = @SYS_CFLAGS@
  54. SYS_LDFLAGS = @SYS_LDFLAGS@ -L$(mesa_srcdir)/lib
  55.  
  56. GL_LIBS = -lMesaGLU -lMesaGL
  57. XAW_LIBS = -lXaw -lXmu -lXext -lXt
  58.  
  59. X_CFLAGS = @X_CFLAGS@
  60. X_EXTRA_LIBS = @X_EXTRA_LIBS@
  61. X_PRE_LIBS = @X_PRE_LIBS@
  62. X_LIBS = @X_LIBS@
  63.  
  64. RANLIB = @RANLIB@
  65. INSTALL = @INSTALL@
  66. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  67. INSTALL_DATA = @INSTALL_DATA@
  68.  
  69. MOTIFOBJ = @MOTIFOBJ@
  70.  
  71. ########################################################################
  72. # No user serviceable parts below!
  73. ########################################################################
  74.  
  75. ALL_CFLAGS = $(DEFS) $(SYS_CFLAGS) $(X_CFLAGS) $(CFLAGS)
  76. ALL_LDFLAGS = $(SYS_LDFLAGS) $(LDFLAGS)
  77. LDLIBS = $(GL_LIBS) $(X_LIBS) $(XAW_LIBS) $(X_PRE_LIBS) -lX11 \
  78.         $(X_EXTRA_LIBS) -lm $(LIBS)
  79.  
  80. .SUFFIXES:
  81. .SUFFIXES: .c .o
  82.  
  83. .c.o:
  84.     $(CC) $(CPPFLAGS) $(ALL_CFLAGS) -c $<
  85.  
  86. all: cube mcube ed tea
  87.  
  88. install:
  89.  
  90. uninstall:
  91.  
  92. cube: cube.o $(top_srcdir)/src/libMesaGLw.a
  93.     $(LD) $(ALL_LDFLAGS) cube.o -o $@ \
  94.       -L$(top_srcdir)/src -lMesaGLw $(LDLIBS)
  95.  
  96. mcube: mcube.o $(top_srcdir)/src/libMesaGLw.a
  97.     $(LD) $(ALL_LDFLAGS) mcube.o -o $@ \
  98.       -L$(top_srcdir)/src -lMesaGLw $(LDLIBS)
  99.  
  100. ed: ed.o $(top_srcdir)/src/libMesaGLw.a
  101.     $(LD) $(ALL_LDFLAGS) ed.o -o $@ \
  102.       -L$(top_srcdir)/src -lMesaGLw $(LDLIBS)
  103.  
  104. tea: tea.o $(top_srcdir)/src/libMesaGLw.a
  105.     $(LD) $(ALL_LDFLAGS) tea.o -o $@ \
  106.       -L$(top_srcdir)/src -lMesaGLw $(LDLIBS)
  107.  
  108. $(top_srcdir)/src/libMesaGLw.a:
  109.     cd $(top_srcdir)/src && $(MAKE)
  110.  
  111. demo:
  112.     @echo "the following demos are available:"
  113.     @echo "  * 'make demo.gl' for a demo of the GLwDrawingArea widget"
  114.     @echo "  * 'make demo.mesa' for a demo of the MesaDrawingArea widget"
  115.     @echo "  * 'make demo.ws' for a demo of the MesaWorkstation widget"
  116.     @echo "  * 'make demo.tea' for a demo of the MesaWorkstation widget"
  117.  
  118. demo.gl: cube
  119.     XAPPLRESDIR=`pwd` ./cube
  120.  
  121. demo.mesa: mcube
  122.     XAPPLRESDIR=`pwd` ./mcube
  123.  
  124. demo.ws: ed
  125.     XAPPLRESDIR=`pwd` ./ed < events
  126.  
  127. demo.ws1: ed
  128.     @echo "don't worry, if this fails.  It can only work if you"
  129.     @echo "have the wopper event generator installed."
  130.     (echo set qcdmc 1; echo set rseed $(SEED); echo gen 1000) \
  131.       | wopper 2>&1 | XAPPLRESDIR=`pwd` ./ed
  132.  
  133. demo.tea: tea
  134.     XAPPLRESDIR=`pwd` ./tea
  135.  
  136. # Specific 8-bit visuals
  137. demo.gl.pseudo: cube
  138.     MESA_RGB_VISUAL='PseudoColor 8' XAPPLRESDIR=`pwd` ./cube
  139.  
  140. demo.gl.true: cube
  141.     MESA_RGB_VISUAL='TrueColor 8' XAPPLRESDIR=`pwd` ./cube
  142.  
  143. demo.gl.pseudo.rgb:
  144.     MESA_RGB_VISUAL='PseudoColor 8' XAPPLRESDIR=`pwd` \
  145.       ./cube -xrm '*mesa.rgba: true'
  146.  
  147. demo.gl.true.rgb:
  148.     MESA_RGB_VISUAL='TrueColor 8' XAPPLRESDIR=`pwd` \
  149.       ./cube -xrm '*mesa.rgba: true'
  150.  
  151. demo.gl.pseudo.ci:
  152.     MESA_RGB_VISUAL='PseudoColor 8' XAPPLRESDIR=`pwd` \
  153.       ./cube -xrm '*mesa.rgba: false'
  154.  
  155. demo.gl.true.ci:
  156.     MESA_RGB_VISUAL='TrueColor 8' XAPPLRESDIR=`pwd` \
  157.       ./cube -xrm '*mesa.rgba: false'
  158.  
  159. demo.mesa.pseudo: mcube
  160.     MESA_RGB_VISUAL='PseudoColor 8' XAPPLRESDIR=`pwd` ./mcube
  161.  
  162. demo.mesa.true: mcube
  163.     MESA_RGB_VISUAL='TrueColor 8' XAPPLRESDIR=`pwd` ./mcube
  164.  
  165. demo.mesa.pseudo.rgb:
  166.     MESA_RGB_VISUAL='PseudoColor 8' XAPPLRESDIR=`pwd` \
  167.       ./mcube -xrm '*mesa.rgba: true' -xrm  '*mesa1.rgba: true'
  168.  
  169. demo.mesa.true.rgb:
  170.     MESA_RGB_VISUAL='TrueColor 8' XAPPLRESDIR=`pwd` \
  171.       ./mcube -xrm '*mesa.rgba: true' -xrm  '*mesa1.rgba: true'
  172.  
  173. demo.mesa.pseudo.ci:
  174.     MESA_RGB_VISUAL='PseudoColor 8' XAPPLRESDIR=`pwd` \
  175.       ./mcube -xrm '*mesa.rgba: false' -xrm  '*mesa1.rgba: false'
  176.  
  177. demo.mesa.true.ci:
  178.     MESA_RGB_VISUAL='TrueColor 8' XAPPLRESDIR=`pwd` \
  179.       ./mcube -xrm '*mesa.rgba: false' -xrm  '*mesa1.rgba: false'
  180.  
  181. # Standard GNU clean* targets:
  182. maintainer-clean: clean
  183.     @echo "This command is intended for maintainers to use;"
  184.     @echo "it deletes files that may require special tools to rebuild."
  185.  
  186. mostlyclean: clean
  187.  
  188. distclean: clean
  189.     rm -f Makefile
  190.  
  191. clean:
  192.     rm -f cube mcube ed *.o .*~ *~
  193.  
  194. # Additional clean* targets:
  195. realclean: distclean
  196.  
  197. # GNU autoconf(1) targets:
  198. Makefile: Makefile.in $(top_srcdir)/config.status
  199.     cd $(top_srcdir); $(SHELL) config.status
  200.