home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / make-config < prev    next >
Encoding:
Text File  |  1998-01-31  |  27.9 KB  |  983 lines

  1. # Make-config
  2.  
  3. MAJOR=2
  4. MINOR=5
  5. VERSION=$MAJOR.$MINOR
  6.  
  7. # Mesa 3-D graphics library
  8. # Copyright (C) 1995-1997  Brian Paul
  9. #
  10. # This library is free software; you can redistribute it and/or
  11. # modify it under the terms of the GNU Library General Public
  12. # License as published by the Free Software Foundation; either
  13. # version 2 of the License, or (at your option) any later version.
  14. #
  15. # This library is distributed in the hope that it will be useful,
  16. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  18. # Library General Public License for more details.
  19. #
  20. # You should have received a copy of the GNU Library General Public
  21. # License along with this library; if not, write to the Free
  22. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24.  
  25. # $Id: Make-config,v 1.38 1997/11/20 02:21:56 brianp Exp $
  26.  
  27. # $Log: Make-config,v $
  28. # Revision 1.38  1997/11/20 02:21:56  brianp
  29. # added linux-386-glide config, added -lXt -lSM -lICE to linux XLIBS
  30. #
  31. # Revision 1.37  1997/11/14 03:03:44  brianp
  32. # disabled x86 optimizations for linux-glide
  33. #
  34. # Revision 1.36  1997/11/07 03:50:02  brianp
  35. # added some missing libs to linux-386 targets
  36. #
  37. # Revision 1.35  1997/11/04 02:55:21  brianp
  38. # fixed netbsd config (Erik Johannessen)
  39. #
  40. # Revision 1.34  1997/10/30 05:55:22  brianp
  41. # added linux-386 (Linux w/ Intel x86 assembly language)
  42. #
  43. # Revision 1.33  1997/10/22 00:03:32  brianp
  44. # new MAKELIB format, removed RANLIB
  45. #
  46. # Revision 1.32  1997/10/21 04:13:49  brianp
  47. # made a few changes to netbsd config (Erik Johannessen)
  48. #
  49. # Revision 1.31  1997/10/16 23:34:10  brianp
  50. # added sunos5-ultra-sl target from Scott Hofmann
  51. #
  52. # Revision 1.30  1997/10/16 23:33:15  brianp
  53. # many changes for 2.5, added GLUT
  54. #
  55.  
  56.  
  57.  
  58. # The following variables are passed to each Makefile:
  59. #
  60. # GL_LIB      the name of the Mesa "GL" library file (usually libMesaGL.a)
  61. # GLU_LIB     the name of the Mesa "GLU" library file (usually libMesaGLU.a)
  62. # GLUT_LIB    the name of the GLUT library file (usually libglut.a)
  63. # TK_LIB      the name of the TK toolkit library file (usually libMesatk.a)
  64. # AUX_LIB     the name of the AUX toolkit library file (usually libMesaaux.a)
  65. # CC          the C compiler (usually cc or gcc)
  66. # CFLAGS      flags to C compiler (usually -O)
  67. # MAKELIB     the script or command to make a library file
  68. # XLIBS       libraries needed to link X apps (at least -lX11)
  69. #
  70. # Optionally, you can add definitions for the INCDIR and LIBDIR variables
  71. # which specify where to find the Mesa include files and where to put the
  72. # Mesa libraries.  The defaults are ../include and ../lib.  This use of
  73. # overriding makefile macros on the command line should work with most
  74. # variants of make.
  75. #
  76. # To enable profiling add -DPROFILE to the CFLAGS line.  Be sure to set the
  77. # MESA_PROFILE environment variable to enable printing of the profile report.
  78. #
  79. # If your system supports the X Shared Memory extension add -DSHM to the
  80. # CFLAGS line and add -lXext to the XLIBS line.
  81. #
  82. #
  83. # To add a new system configuration just follow the examples below and update
  84. # the top-level Makefile.
  85.  
  86.  
  87.  
  88. aix:
  89.     $(MAKE) $(MFLAGS) targets \
  90.     "GL_LIB = libMesaGL.a" \
  91.     "GLU_LIB = libMesaGLU.a" \
  92.     "GLUT_LIB = libglut.a" \
  93.     "TK_LIB = libMesatk.a" \
  94.     "AUX_LIB = libMesaaux.a" \
  95.     "CC = cc" \
  96.     "CFLAGS = -O" \
  97.     "MAKELIB = ../mklib.ar-ruv" \
  98.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  99.  
  100. aix-sl:
  101.     $(MAKE) $(MFLAGS) targets \
  102.     "GL_LIB = libMesaGL.a" \
  103.     "GLU_LIB = libMesaGLU.a" \
  104.     "GLUT_LIB = libglut.a" \
  105.     "TK_LIB = libMesatk.a" \
  106.     "AUX_LIB = libMesaaux.a" \
  107.     "CC = cc" \
  108.     "CFLAGS = -O" \
  109.     "MAKELIB = ../mklib.aix" \
  110.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  111.  
  112. # Make-config additions for the Amiga 3000 UX
  113. # Carlyn Voss Iuzzolino   5/8/95: 
  114. # Modified gcc part as follows:
  115. # Needed to take out -pedantic because that makes gcc complain about 
  116. # ANSI-CC not allowing #ident in Amiga's /usr/include/*.h files.
  117. # Took out -O2 (unrecognized option for gcc on the Amiga).
  118. # Needs /usr/lib/libsocket.a file. 
  119. amix:
  120.     $(MAKE) $(MFLAGS) targets \
  121.     "GL_LIB = libMesaGL.a" \
  122.     "GLU_LIB = libMesaGLU.a" \
  123.     "GLUT_LIB = libglut.a" \
  124.     "TK_LIB = libMesatk.a" \
  125.     "AUX_LIB = libMesaaux.a" \
  126.     "CC = cc" \
  127.     "CFLAGS =" \
  128.     "MAKELIB = ../mklib.ar-ruv" \
  129.     "XLIBS = -lX11 -lsocket -lnsl "
  130.  
  131. beos:
  132.     $(MAKE) -f Makefile.BeOS targets \
  133.     "GL_LIB = libMesaGL.so" \
  134.     "CC = mwcc" \
  135.     "CFLAGS = -O7" \
  136.     "MAKELIB = ../mklib.beos"
  137.  
  138. bsdos:
  139.     $(MAKE) $(MFLAGS) targets \
  140.     "GL_LIB = libMesaGL.a" \
  141.     "GLU_LIB = libMesaGLU.a" \
  142.     "GLUT_LIB = libglut.a" \
  143.     "TK_LIB = libMesatk.a" \
  144.     "AUX_LIB = libMesaaux.a" \
  145.     "CC = gcc" \
  146.     "CFLAGS = -I/usr/X11/include -O2" \
  147.     "MAKELIB = ../mklib.ar-ruv" \
  148.     "XLIBS = -L/usr/X11/lib -lX11 -lipc"
  149.  
  150. cygnus:
  151.     $(MAKE) -f Makefile.cygnus $(MFLAGS) targets \
  152.     "GL_LIB = libMesaGL.a" \
  153.     "GLU_LIB = libMesaGLU.a" \
  154.     "GLUT_LIB = libglut.a" \
  155.     "TK_LIB = libMesatk.a" \
  156.     "AUX_LIB = libMesaaux.a" \
  157.     "CC = gcc" \
  158.     "WING_DIR= /wing" \
  159.     "CFLAGS = -I. -DWIN32 -D__WIN32__ -D_WINDOWS \
  160.         -O2 -funroll-loops \
  161.         -fexpensive-optimizations -fomit-frame-pointer -ffast-math \
  162.         -malign-loops=2 -malign-jumps=2 -malign-functions=2" \
  163.     "MAKELIB = ../mklib.ar-ruv" \
  164.     "WLIBS = ../lib/wing32.a -lkernel32 -luser32 -lgdi32"
  165.  
  166. dgux:
  167.     $(MAKE) $(MFLAGS) targets \
  168.     "GL_LIB = libMesaGL.a" \
  169.     "GLU_LIB = libMesaGLU.a" \
  170.     "GLUT_LIB = libglut.a" \
  171.     "TK_LIB = libMesatk.a" \
  172.     "AUX_LIB = libMesaaux.a" \
  173.     "CC = gcc" \
  174.     "CFLAGS = -O" \
  175.     "MAKELIB = ../mklib.ar-ruv" \
  176.     "XLIBS = -lX11"
  177.  
  178. freebsd:
  179.     $(MAKE) $(MFLAGS) targets \
  180.     "GL_LIB = libMesaGL.a" \
  181.     "GLU_LIB = libMesaGLU.a" \
  182.     "GLUT_LIB = libglut.a" \
  183.     "TK_LIB = libMesatk.a" \
  184.     "AUX_LIB = libMesaaux.a" \
  185.     "CC = gcc" \
  186.     "CFLAGS = -O2 -fPIC -pedantic -I/usr/X11R6/include -DSHM -DHZ=100" \
  187.     "MAKELIB = ../mklib.freebsd" \
  188.     "XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11"
  189.  
  190. gcc:
  191.     $(MAKE) $(MFLAGS) targets \
  192.     "GL_LIB = libMesaGL.a" \
  193.     "GLU_LIB = libMesaGLU.a" \
  194.     "GLUT_LIB = libglut.a" \
  195.     "TK_LIB = libMesatk.a" \
  196.     "AUX_LIB = libMesaaux.a" \
  197.     "CC = gcc" \
  198.     "CFLAGS = -pedantic -O2" \
  199.     "MAKELIB = ../mklib.ar-ruv" \
  200.     "XLIBS = -lX11"
  201.  
  202. hpux:
  203.     $(MAKE) $(MFLAGS) targets \
  204.     "GL_LIB = libMesaGL.a" \
  205.     "GLU_LIB = libMesaGLU.a" \
  206.     "GLUT_LIB = libglut.a" \
  207.     "TK_LIB = libMesatk.a" \
  208.     "AUX_LIB = libMesaaux.a" \
  209.     "CC = cc" \
  210.     "CFLAGS = +O3 -Aa -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  211.     "MAKELIB = ../mklib.ar-ruv" \
  212.     "XLIBS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11"
  213.  
  214. hpux-gcc:
  215.     $(MAKE) $(MFLAGS) targets \
  216.     "GL_LIB = libMesaGL.a" \
  217.     "GLU_LIB = libMesaGLU.a" \
  218.     "GLUT_LIB = libglut.a" \
  219.     "TK_LIB = libMesatk.a" \
  220.     "AUX_LIB = libMesaaux.a" \
  221.     "CC = gcc" \
  222.     "CFLAGS = -ansi -O3 -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  223.     "MAKELIB = ../mklib.ar-ruv" \
  224.     "XLIBS = -L/usr/lib/X11R5 -lXext -lXmu -lXi -lX11"
  225.  
  226. hpux-sl:
  227.     $(MAKE) $(MFLAGS) targets \
  228.     "GL_LIB = libMesaGL.sl" \
  229.     "GLU_LIB = libMesaGLU.sl" \
  230.     "GLUT_LIB = libglut.sl" \
  231.     "TK_LIB = libMesatk.sl" \
  232.     "AUX_LIB = libMesaaux.sl" \
  233.     "CC = cc" \
  234.     "CFLAGS = +z +O3 +Olibcalls +ESlit -Aa +Onolimit -D_HPUX_SOURCE -I/usr/include/X11R5 -DSHM" \
  235.     "MAKELIB = ../mklib.hpux" \
  236.     "XLIBS = -L/usr/lib/X11R5 -s -Wl,+s,-B,nonfatal,-B,immediate -lXext -lXmu -lXi -lX11"
  237.  
  238. hpux-gcc-sl:
  239.     $(MAKE) $(MFLAGS) targets \
  240.     "GL_LIB = libMesaGL.sl" \
  241.     "GLU_LIB = libMesaGLU.sl" \
  242.     "GLUT_LIB = libglut.sl" \
  243.     "TK_LIB = libMesatk.sl" \
  244.     "AUX_LIB = libMesaaux.sl" \
  245.     "CC = gcc" \
  246.     "CFLAGS = -fPIC -ansi -O3 -D_HPUX_SOURCE -I/usr/X11R6/include -DSHM" \
  247.     "MAKELIB = ../mklib.hpux" \
  248.     "XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11"
  249.  
  250. # For IRIX 4: don't use -fullwarn because it causes too much garbage
  251. irix4:
  252.     pmake $(MFLAGS) targets \
  253.     "GL_LIB = libMesaGL.a" \
  254.     "GLU_LIB = libMesaGLU.a" \
  255.     "GLUT_LIB = libglut.a" \
  256.     "TK_LIB = libMesatk.a" \
  257.     "AUX_LIB = libMesaaux.a" \
  258.     "CC = cc" \
  259.     "CFLAGS = -O2 -ansi -prototypes -DSHM" \
  260.     "MAKELIB = ../mklib.ar-rcv" \
  261.     "XLIBS = -lXext -lXmu -lXi -lX11"
  262.  
  263. # On IRIX 5.3 -sopt causes a problem in drawpixels.c so we don't use it
  264. irix5:
  265.     pmake $(MFLAGS) targets \
  266.     "GL_LIB = libMesaGL.a" \
  267.     "GLU_LIB = libMesaGLU.a" \
  268.     "GLUT_LIB = libglut.a" \
  269.     "TK_LIB = libMesatk.a" \
  270.     "AUX_LIB = libMesaaux.a" \
  271.     "CC = cc" \
  272.     "CFLAGS = -O2 -ansi -fullwarn -DSHM" \
  273.     "MAKELIB = ../mklib.ar-rcv" \
  274.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  275.  
  276. # IRIX 5 using Dynamic Shared Objects (DSO)
  277. irix5-dso:
  278.     pmake $(MFLAGS) targets \
  279.     "GL_LIB = libMesaGL.so" \
  280.     "GLU_LIB = libMesaGLU.so" \
  281.     "GLUT_LIB = libglut.so" \
  282.     "TK_LIB = libMesatk.so" \
  283.     "AUX_LIB = libMesaaux.so" \
  284.     "CC = cc" \
  285.     "CFLAGS = -O2 -ansi -fullwarn -DSHM" \
  286.     "MAKELIB = ../mklib.irix5" \
  287.     "XLIBS = -rpath ../lib -lX11"
  288.  
  289. irix6-32:
  290.     pmake $(MFLAGS) targets \
  291.     "GL_LIB = libMesaGL.a" \
  292.     "GLU_LIB = libMesaGLU.a" \
  293.     "GLUT_LIB = libglut.a" \
  294.     "TK_LIB = libMesatk.a" \
  295.     "AUX_LIB = libMesaaux.a" \
  296.     "CC = cc" \
  297.     "CFLAGS = -32 -mips2 -O2 -ansi -DSHM" \
  298.     "MAKELIB = ../mklib.ar-rcv" \
  299.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  300.  
  301. irix6-32-dso:
  302.     pmake $(MFLAGS) targets \
  303.     "GL_LIB = libMesaGL.so" \
  304.     "GLU_LIB = libMesaGLU.so" \
  305.     "GLUT_LIB = libglut.so" \
  306.     "TK_LIB = libMesatk.so" \
  307.     "AUX_LIB = libMesaaux.so" \
  308.     "CC = cc" \
  309.     "CFLAGS = -32 -mips2 -O2 -ansi -DSHM" \
  310.     "MAKELIB = ../mklib.irix6-32" \
  311.     "XLIBS = -lX11"
  312.  
  313. # For IRIX 6: -woff:
  314. #   1185 - enumerated type mixed with another type
  315. irix6-n32:
  316.     pmake $(MFLAGS) targets \
  317.     "GL_LIB = libMesaGL.a" \
  318.     "GLU_LIB = libMesaGLU.a" \
  319.     "GLUT_LIB = libglut.a" \
  320.     "TK_LIB = libMesatk.a" \
  321.     "AUX_LIB = libMesaaux.a" \
  322.     "CC = cc" \
  323.     "CFLAGS = -n32 -mips3 -O3 -ansi -DSHM -woff 1185" \
  324.     "MAKELIB = ../mklib.ar-rcv" \
  325.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  326.  
  327. irix6-n32-dso:
  328.     pmake $(MFLAGS) targets \
  329.     "GL_LIB = libMesaGL.so" \
  330.     "GLU_LIB = libMesaGLU.so" \
  331.     "GLUT_LIB = libglut.so" \
  332.     "TK_LIB = libMesatk.so" \
  333.     "AUX_LIB = libMesaaux.so" \
  334.     "CC = cc" \
  335.     "CFLAGS = -n32 -mips3 -O3 -ansi -DSHM -woff 1185" \
  336.     "MAKELIB = ../mklib.irix6-n32" \
  337.     "XLIBS = -lX11"
  338.  
  339. # For IRIX 6-64: -woff:
  340. #   1068 - integer conversion resulted in a change of sign
  341. #   1069 - integer conversion resulted in truncation
  342. #   1174 - variable was declared but never referenced
  343. #   1185 - enumerated type mixed with another type
  344. #   1209 - controlling expression is constant
  345. #   1474 - declaring a void parameter list with a typedef is nonstandard
  346. #   1552 - variable was set but never used
  347. irix6-64:
  348.     pmake $(MFLAGS) targets \
  349.     "GL_LIB = libMesaGL.a" \
  350.     "GLU_LIB = libMesaGLU.a" \
  351.     "GLUT_LIB = libglut.a" \
  352.     "TK_LIB = libMesatk.a" \
  353.     "AUX_LIB = libMesaaux.a" \
  354.     "CC = cc" \
  355.     "CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM" \
  356.     "MAKELIB = ../mklib.ar-rcv" \
  357.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  358.  
  359. irix6-64-dso:
  360.     pmake $(MFLAGS) targets \
  361.     "GL_LIB = libMesaGL.so" \
  362.     "GLU_LIB = libMesaGLU.so" \
  363.     "GLUT_LIB = libglut.so" \
  364.     "TK_LIB = libMesatk.so" \
  365.     "AUX_LIB = libMesaaux.so" \
  366.     "CC = cc" \
  367.     "CFLAGS = -64 -O3 -ansi -woff 1068,1069,1174,1185,1209,1474,1552 -DSHM" \
  368.     "MAKELIB = ../mklib.irix6-64" \
  369.     "XLIBS = -lX11"
  370.  
  371. # May want to try these CFLAGS for better performance under Linux and GCC:
  372. # -fPIC -O2 -ansi -pedantic -mieee-fp -DSHM -funroll-loops
  373. # -fexpensive-optimizations -fomit-frame-pointer -ffast-math
  374. # and  -malign-loops=2 -malign-jumps=2 -malign-functions=2 for Pentium
  375.  
  376. linux:
  377.     $(MAKE) $(MFLAGS) targets \
  378.     "GL_LIB = libMesaGL.a" \
  379.     "GLU_LIB = libMesaGLU.a" \
  380.     "GLUT_LIB = libglut.a" \
  381.     "TK_LIB = libMesatk.a" \
  382.     "AUX_LIB = libMesaaux.a" \
  383.     "CC = gcc" \
  384.     "CFLAGS = -O2 -funroll-loops -ansi -pedantic -ffast-math -I/usr/X11R6/include -DSHM" \
  385.     "MAKELIB = ../mklib.ar-ruv" \
  386.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  387.  
  388. # One Linux user reports having to use these XLIBS:
  389. #    -lMrm -lXmu -lXi -lXt -lXext -lXmu -lXi -lSM -lICE -lX11
  390.  
  391. linux-elf:
  392.     $(MAKE) $(MFLAGS) targets \
  393.     "GL_LIB = libMesaGL.so" \
  394.     "GLU_LIB = libMesaGLU.so" \
  395.     "GLUT_LIB = libglut.so" \
  396.     "TK_LIB = libMesatk.so" \
  397.     "AUX_LIB = libMesaaux.so" \
  398.     "CC = gcc" \
  399.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM" \
  400.     "MAKELIB = ../mklib.linux" \
  401.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  402.  
  403. linux-glide:
  404.     $(MAKE) $(MFLAGS) targets \
  405.     "GL_LIB = libMesaGL.so" \
  406.     "GLU_LIB = libMesaGLU.so" \
  407.     "GLUT_LIB = libglut.so" \
  408.     "TK_LIB = libMesatk.so" \
  409.     "AUX_LIB = libMesaaux.so" \
  410.     "CC = gcc" \
  411.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DFX -I/usr/local/glide/include" \
  412.     "MAKELIB = ../mklib.glide" \
  413.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE"
  414.  
  415. # Linux on Intel X86: assembly language optimizations
  416. linux-386:
  417.     $(MAKE) $(MFLAGS) targets \
  418.     "GL_LIB = libMesaGL.a" \
  419.     "GLU_LIB = libMesaGLU.a" \
  420.     "GLUT_LIB = libglut.a" \
  421.     "TK_LIB = libMesatk.a" \
  422.     "AUX_LIB = libMesaaux.a" \
  423.     "CC = gcc" \
  424.     "CFLAGS = -O2 -funroll-loops -ansi -pedantic -ffast-math -I/usr/X11R6/include -DSHM -DUSE_ASM" \
  425.     "MAKELIB = ../mklib.ar-ruv" \
  426.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  427.     "ASM_SOURCES = asm-386.S"
  428.  
  429. linux-386-elf:
  430.     $(MAKE) $(MFLAGS) targets \
  431.     "GL_LIB = libMesaGL.so" \
  432.     "GLU_LIB = libMesaGLU.so" \
  433.     "GLUT_LIB = libglut.so" \
  434.     "TK_LIB = libMesatk.so" \
  435.     "AUX_LIB = libMesaaux.so" \
  436.     "CC = gcc" \
  437.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DUSE_ASM" \
  438.     "MAKELIB = ../mklib.linux" \
  439.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  440.     "ASM_SOURCES = asm-386.S"
  441.  
  442. linux-386-glide:
  443.     $(MAKE) $(MFLAGS) targets \
  444.     "GL_LIB = libMesaGL.so" \
  445.     "GLU_LIB = libMesaGLU.so" \
  446.     "GLUT_LIB = libglut.so" \
  447.     "TK_LIB = libMesatk.so" \
  448.     "AUX_LIB = libMesaaux.so" \
  449.     "CC = gcc" \
  450.     "CFLAGS = -O3 -ansi -pedantic -fPIC -ffast-math -D_SVID_SOURCE -D_BSD_SOURCE -I/usr/X11R6/include -DSHM -DFX -I/usr/local/glide/include -DUSE_ASM" \
  451.     "MAKELIB = ../mklib.glide" \
  452.     "XLIBS = -L/usr/X11/lib -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXt -lXi -lSM -lICE" \
  453.     "ASM_SOURCES = asm-386.S"
  454.  
  455. # Linux on Alpha (based on email from John Ferguson ferguson@viz.tamu.edu)
  456. linux-alpha:
  457.     $(MAKE) $(MFLAGS) targets \
  458.     "GL_LIB = libMesaGL.a" \
  459.     "GLU_LIB = libMesaGLU.a" \
  460.     "GLUT_LIB = libglut.so" \
  461.     "TK_LIB = libMesatk.a" \
  462.     "AUX_LIB = libMesaaux.a" \
  463.     "CC = gcc" \
  464.     "CFLAGS = -O2 -pedantic -L/usr/X11R6/lib" \
  465.     "MAKELIB = ../mklib.ar-ruv" \
  466.     "XLIBS = -L/usr/X11R6/lib -lX11"
  467.  
  468. linux-alpha-elf:
  469.     $(MAKE) $(MFLAGS) targets \
  470.     "GL_LIB = libMesaGL.so" \
  471.     "GLU_LIB = libMesaGLU.so" \
  472.     "GLUT_LIB = libglut.so" \
  473.     "TK_LIB = libMesatk.so" \
  474.     "AUX_LIB = libMesaaux.so" \
  475.     "CC = gcc" \
  476.     "CFLAGS = -ansi -pedantic -fPIC" \
  477.     "MAKELIB = ../mklib.linux" \
  478.     "XLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXi"
  479.  
  480. linux-ppc:
  481.     $(MAKE) $(MFLAGS) targets \
  482.     "GL_LIB = libMesaGL.a" \
  483.     "GLU_LIB = libMesaGLU.a" \
  484.     "GLUT_LIB = libglut.so" \
  485.     "TK_LIB = libMesatk.a" \
  486.     "AUX_LIB = libMesaaux.a" \
  487.     "CC = gcc" \
  488.     "CFLAGS = -pedantic -funroll-loops -O2 -mcpu=604 -DSHM" \
  489.     "MAKELIB = ../mklib.ar-ruv" \
  490.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  491.  
  492. # For Linux with prototype Cirrus Mondello 3-D card
  493. linux-mondello:
  494.     $(MAKE) $(MFLAGS) targets \
  495.     "GL_LIB = libMesaGL.so" \
  496.     "GLU_LIB = libMesaGLU.so" \
  497.     "GLUT_LIB = libglut.so" \
  498.     "TK_LIB = libMesatk.so" \
  499.     "AUX_LIB = libMesaaux.so" \
  500.     "CC = gcc" \
  501.     "CFLAGS = -O2 -ansi -pedantic -fPIC -funroll-loops -mieee-fp -DSHM -DMONDELLO" \
  502.     "MAKELIB = ../mklib.linux" \
  503.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi -lclgd547x"
  504.  
  505. # May want to add these CFLAGS for better performance under LynxOS and GCC:
  506. # -fPIC -O2 -ansi -pedantic -mieee-fp -DSHM -funroll-loops
  507. # -fexpensive-optimizations -fomit-frame-pointer -ffast-math
  508. # and  -malign-loops=2 -malign-jumps=2 -malign-functions=2 for Pentium
  509.  
  510. lynxos:
  511.     $(MAKE) $(MFLAGS) targets \
  512.     "GL_LIB = libMesaGL.a" \
  513.     "GLU_LIB = libMesaGLU.a" \
  514.     "GLUT_LIB = libglut.a" \
  515.     "TK_LIB = libMesatk.a" \
  516.     "AUX_LIB = libMesaaux.a" \
  517.     "CC = gcc" \
  518.     "CFLAGS = -O2 -ansi -pedantic -funroll-loops -ffast-math -DSHM" \
  519.     "MAKELIB = ./mklib.ar-ruv" \
  520.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi -lbsd"
  521.  
  522. machten-2.2:
  523.     $(MAKE) $(MFLAGS) targets \
  524.     "GL_LIB = libMesaGL.a" \
  525.     "GLU_LIB = libMesaGLU.a" \
  526.     "GLUT_LIB = libglut.a" \
  527.     "TK_LIB = libMesatk.a" \
  528.     "AUX_LIB = libMesaaux.a" \
  529.     "CC = gcc" \
  530.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -m68881 -O2" \
  531.     "MAKELIB = ../mklib.ar-rcv" \
  532.     "XLIBS = -L/usr/lib/X11 -lX11"
  533.  
  534. machten-4.0:
  535.     $(MAKE) targets \
  536.     "GL_LIB = libMesaGL.a" \
  537.     "GLU_LIB = libMesaGLU.a" \
  538.     "GLUT_LIB = libglut.a" \
  539.     "TK_LIB = libMesatk.a" \
  540.     "AUX_LIB = libMesaaux.a" \
  541.     "CC = gcc" \
  542.     "CFLAGS = -DTENON -D__MACHTEN__ -fstrength-reduce -O2" \
  543.     "MAKELIB = ../mklib.ar-rcv" \
  544.     "XLIBS = -L/usr/X11R5/lib -lX11"
  545.  
  546. mklinux:
  547.     $(MAKE) targets \
  548.     "GL_LIB = libMesaGL.a" \
  549.     "GLU_LIB = libMesaGLU.a" \
  550.     "GLUT_LIB = libglut.a" \
  551.     "TK_LIB = libMesatk.a" \
  552.     "AUX_LIB = libMesaaux.a" \
  553.     "CC = gcc" \
  554.     "CFLAGS = -pedantic -O2" \
  555.     "MAKELIB = ../mklib.ar-ruv" \
  556.     "XLIBS = -lmoto -L/usr/X11/lib -lX11"
  557.  
  558. netbsd:
  559.     $(MAKE) $(MFLAGS) targets \
  560.     "GL_LIB = libMesaGL.so" \
  561.     "GLU_LIB = libMesaGLU.so" \
  562.     "GLUT_LIB = libglut.so" \
  563.     "TK_LIB = libMesatk.so" \
  564.     "AUX_LIB = libMesaaux.so" \
  565.     "CC = gcc" \
  566.     "CFLAGS = -O2 -fPIC -DSHM -I/usr/X11R6/include -DHZ=100"  \
  567.     "MAKELIB = ../mklib.netbsd" \
  568.     "XLIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11"
  569.  
  570. next:    
  571.     $(MAKE)    -f Makefile.NeXT targets \
  572.     "GL_LIB = libMesaGL.a" \
  573.     "GLU_LIB = libMesaGLU.a" \
  574.     "GLUT_LIB = libglut.a" \
  575.     "TK_LIB = libMesatk.a" \
  576.         "AUX_LIB = libMesaaux.a" \
  577.     "CC = cc" \
  578.     "CFLAGS = -O2 -DNeXT" \
  579.     "MAKELIB = ../mklib.ar-ruv" \
  580.     "XLIBS = -lNeXT_s -lsys_s"
  581.  
  582. # For NeXTStep on non-X86 with X11
  583. next-x11:
  584.     $(MAKE) $(MFLAGS) targets \
  585.     "GL_LIB = libMesaGL.a" \
  586.     "GLU_LIB = libMesaGLU.a" \
  587.     "GLUT_LIB = libglut.a" \
  588.     "TK_LIB = libMesatk.a" \
  589.     "AUX_LIB = libMesaaux.a" \
  590.     "CC = cc" \
  591.     "CFLAGS = -pedantic -funroll-loops -O2 " \
  592.     "MAKELIB = ../mklib.ar-ruv" \
  593.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  594.  
  595. # For NeXTStep on Intel X86 with X11
  596. next-x86-x11:
  597.     $(MAKE) $(MFLAGS) targets \
  598.     "GL_LIB = libMesaGL.a" \
  599.     "GLU_LIB = libMesaGLU.a" \
  600.     "GLUT_LIB = libglut.a" \
  601.     "TK_LIB = libMesatk.a" \
  602.     "AUX_LIB = libMesaaux.a" \
  603.     "CC = cc" \
  604.     "CFLAGS = -pedantic -funroll-loops -O2 -mieee-fp " \
  605.     "MAKELIB = ../mklib.ar-ruv" \
  606.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  607.  
  608. openbsd:
  609.     $(MAKE) $(MFLAGS) targets \
  610.     "GL_LIB = libMesaGL.so" \
  611.     "GLU_LIB = libMesaGLU.so" \
  612.     "GLUT_LIB = libglut.so" \
  613.     "TK_LIB = libMesatk.so" \
  614.     "AUX_LIB = libMesaaux.so" \
  615.     "CC = cc" \
  616.     "CFLAGS = -O2 -fPIC -I/usr/X11R6/include -DSHM -DHZ=100" \
  617.     "MAKELIB = ../mklib.openbsd" \
  618.     "XLIBS = -L/usr/X11R6/lib -lX11 -lXext -lXmu -lXi"
  619.  
  620. openstep:    
  621.     $(MAKE)    -f Makefile.OpenStep targets \
  622.     "GL_LIB = libMesaGL.a" \
  623.     "GLU_LIB = libMesaGLU.a" \
  624.     "GLUT_LIB = libglut.a" \
  625.     "TK_LIB = libMesatk.a" \
  626.     "AUX_LIB = libMesaaux.a" \
  627.     "CC = cc" \
  628.     "CFLAGS = -O4 -DNeXT" \
  629.     "MAKELIB = ../mklib.ar-ruv"
  630.  
  631. osf1:
  632.     $(MAKE) $(MFLAGS) targets \
  633.     "GL_LIB = libMesaGL.a" \
  634.     "GLU_LIB = libMesaGLU.a" \
  635.     "GLUT_LIB = libglut.a" \
  636.     "TK_LIB = libMesatk.a" \
  637.     "AUX_LIB = libMesaaux.a" \
  638.     "CC = cc" \
  639.     "CFLAGS = -O2 -std1 -ieee_with_no_inexact -DSHM" \
  640.     "MAKELIB = ../mklib.ar-ruv" \
  641.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  642.  
  643. osf1-sl:
  644.     $(MAKE) $(MFLAGS) targets \
  645.     "GL_LIB = libMesaGL.so" \
  646.     "GLU_LIB = libMesaGLU.so" \
  647.     "GLUT_LIB = libglut.so" \
  648.     "TK_LIB = libMesatk.so" \
  649.     "AUX_LIB = libMesaaux.so" \
  650.     "CC = cc" \
  651.     "CFLAGS = -O2 -std1 -ieee_with_no_inexact -DSHM" \
  652.     "MAKELIB = ../mklib.osf1" \
  653.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  654.  
  655. # QNX V4 & Watcom Compiler
  656. qnx:
  657.     $(MAKE) $(MFLAGS) targets \
  658.     "GL_LIB = libMesaGL.a" \
  659.     "GLU_LIB = libMesaGLU.a" \
  660.     "GLUT_LIB = libglut.a" \
  661.     "TK_LIB = libMesatk.a" \
  662.     "AUX_LIB = libMesaaux.a" \
  663.     "CC = cc" \
  664.     "CFLAGS = -O" \
  665.     "MAKELIB = wlib" \
  666.     "XLIBS = -L/usr/X11/lib -lX11"
  667.  
  668. sco:
  669.     $(MAKE) $(MFLAGS) targets \
  670.     "GL_LIB = libMesaGL.a" \
  671.     "GLU_LIB = libMesaGLU.a" \
  672.     "GLUT_LIB = libglut.a" \
  673.     "TK_LIB = libMesatk.a" \
  674.     "AUX_LIB = libMesaaux.a" \
  675.     "CC = gcc" \
  676.     "CFLAGS = -pedantic -O2 -mieee-fp" \
  677.     "MAKELIB = ../mklib.ar-ruv" \
  678.     "XLIBS = -L/usr/X11/lib -lX11"
  679.  
  680. solaris-x86:
  681.     $(MAKE) targets \
  682.     "GL_LIB = libMesaGL.a" \
  683.     "GLU_LIB = libMesaGLU.a" \
  684.     "GLUT_LIB = libglut.a" \
  685.     "TK_LIB = libMesatk.a" \
  686.     "AUX_LIB = libMesaaux.a" \
  687.     "CC = cc" \
  688.     "CFLAGS = -Xa -xO3 -xpentium -KPIC -I/usr/openwin/include -DSHM" \
  689.     "MAKELIB = ../mklib.solaris" \
  690.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  691.  
  692. solaris-x86-gcc:
  693.     $(MAKE) targets \
  694.     "GL_LIB = libMesaGL.a" \
  695.     "GLU_LIB = libMesaGLU.a" \
  696.     "GLUT_LIB = libglut.a" \
  697.     "TK_LIB = libMesatk.a" \
  698.     "AUX_LIB = libMesaaux.a" \
  699.     "CC = gcc" \
  700.     "CFLAGS = -O3 -m486 -fPIC -I/usr/openwin/include -DSHM" \
  701.     "MAKELIB = ../mklib.solaris" \
  702.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  703.  
  704. #solaris-gcc:
  705. #    $(MAKE) $(MFLAGS) targets \
  706. #    "GL_LIB = libMesaGL.a" \
  707. #    "GLU_LIB = libMesaGLU.a" \
  708. #    "TK_LIB = libMesatk.a" \
  709. #    "AUX_LIB = libMesaaux.a" \
  710. #    "CC = gcc" \
  711. #    "CFLAGS = -pedantic -O2" \
  712. #    "MAKELIB = ../mklib.ar-ruv" \
  713. #    "XLIBS = -lX11 -L/usr/ucblib -lsocket -lnsl -lucb"
  714.  
  715. sunos4:
  716.     $(MAKE) $(MFLAGS) targets \
  717.     "GL_LIB = libMesaGL.a" \
  718.     "GLU_LIB = libMesaGLU.a" \
  719.     "GLUT_LIB = libglut.a" \
  720.     "TK_LIB = libMesatk.a" \
  721.     "AUX_LIB = libMesaaux.a" \
  722.     "CC = acc" \
  723.     "CFLAGS = -O -DSHM -DSUNOS4" \
  724.     "MAKELIB = ../mklib.ar-ruv" \
  725.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  726.  
  727. sunos4-sl:
  728.     $(MAKE) $(MFLAGS) targets \
  729.     "GL_LIB = libMesaGL.so" \
  730.     "GLU_LIB = libMesaGLU.so" \
  731.     "GLUT_LIB = libglut.so" \
  732.     "TK_LIB = libMesatk.so" \
  733.     "AUX_LIB = libMesaaux.so" \
  734.     "CC = acc" \
  735.     "CFLAGS = -Kpic -O -I/usr/include/X11R5 -DSHM -DSUNOS4" \
  736.     "MAKELIB = ld -assert pure-text -o" \
  737.     "XLIBS = -L/usr/lib/X11R5 -lX11 -lXext -lXmu -lXi"
  738.  
  739. sunos4-gcc:
  740.     $(MAKE) $(MFLAGS) targets \
  741.     "GL_LIB = libMesaGL.a" \
  742.     "GLU_LIB = libMesaGLU.a" \
  743.     "GLUT_LIB = libglut.a" \
  744.     "TK_LIB = libMesatk.a" \
  745.     "AUX_LIB = libMesaaux.a" \
  746.     "CC = gcc" \
  747.     "CFLAGS = -O3 -DSHM -DSUNOS4 -I/usr/openwin/include" \
  748.     "MAKELIB = ../mklib.ar-ruv" \
  749.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  750.  
  751. sunos4-gcc-sl:
  752.     $(MAKE) $(MFLAGS) targets \
  753.     "GL_LIB = libMesaGL.so.$(VERSION)" \
  754.     "GLU_LIB = libMesaGLU.so.$(VERSION)" \
  755.     "GLUT_LIB = libglut.so" \
  756.     "TK_LIB = libMesatk.so.$(VERSION)" \
  757.     "AUX_LIB = libMesaaux.so.$(VERSION)" \
  758.     "CC = gcc" \
  759.     "CFLAGS = -fPIC -O3 -I/usr/include/X11R5 -I/usr/include/X11R5 -DSHM -DSUNOS4" \
  760.     "MAKELIB = ../mklib.sunos4" \
  761.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  762.  
  763. sunos5:
  764.     $(MAKE) $(MFLAGS) targets \
  765.     "GL_LIB = libMesaGL.a" \
  766.     "GLU_LIB = libMesaGLU.a" \
  767.     "GLUT_LIB = libglut.a" \
  768.     "TK_LIB = libMesatk.a" \
  769.     "AUX_LIB = libMesaaux.a" \
  770.     "CC = cc" \
  771.     "CFLAGS = -Xa -fast -xO4 -native -I/usr/openwin/include -I/usr/dt/include -DSHM" \
  772.     "MAKELIB = ../mklib.ar-ruv" \
  773.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  774.  
  775. sunos5-sl:
  776.     $(MAKE) $(MFLAGS) targets \
  777.     "GL_LIB = libMesaGL.so" \
  778.     "GLU_LIB = libMesaGLU.so" \
  779.     "GLUT_LIB = libglut.so" \
  780.     "TK_LIB = libMesatk.so" \
  781.     "AUX_LIB = libMesaaux.so" \
  782.     "CC = cc" \
  783.     "CFLAGS = -KPIC -Xa -O -I/usr/openwin/include -I/usr/dt/include -DSHM" \
  784.     "MAKELIB = ../mklib.sunos5" \
  785.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  786.  
  787. sunos5-ultra:
  788.     $(MAKE) $(MFLAGS) targets \
  789.     "GL_LIB = libMesaGL.a" \
  790.     "GLU_LIB = libMesaGLU.a" \
  791.     "GLUT_LIB = libglut.a" \
  792.     "TK_LIB = libMesatk.a" \
  793.     "AUX_LIB = libMesaaux.a" \
  794.     "CC = cc" \
  795.     "CFLAGS = -Xa -fast -xO5 -xtarget=ultra -I/usr/openwin/include -I/usr/dt/include -DSHM" \
  796.     "MAKELIB = ../mklib.ar-ruv" \
  797.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  798.  
  799. sunos5-ultra-sl:
  800.     $(MAKE) $(MFLAGS) targets \
  801.     "GL_LIB = libMesaGL.so" \
  802.     "GLU_LIB = libMesaGLU.so" \
  803.     "TK_LIB = libMesatk.so" \
  804.     "CC = cc" \
  805.     "CFLAGS = -KPIC -Xa -fast -xO5 -xtarget=ultra -I/usr/openwin/include -I/usr/dt/include -DSHM" \
  806.     "MAKELIB = ../mklib.sunos5" \
  807.     "XLIBS = -L/usr/openwin/lib -L/usr/dt/lib -L/usr/ucblib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  808.  
  809. sunos5-gcc:
  810.     $(MAKE) $(MFLAGS) targets \
  811.     "GL_LIB = libMesaGL.a" \
  812.     "GLU_LIB = libMesaGLU.a" \
  813.     "GLUT_LIB = libglut.a" \
  814.     "TK_LIB = libMesatk.a" \
  815.     "AUX_LIB = libMesaaux.a" \
  816.     "CC = gcc" \
  817.     "CFLAGS = -O3 -I/usr/openwin/include -DSHM" \
  818.     "MAKELIB = ../mklib.ar-ruv" \
  819.     "XLIBS = -L/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  820.  
  821. sunos5-gcc-sl:
  822.     $(MAKE) $(MFLAGS) targets \
  823.     "GL_LIB = libMesaGL.so" \
  824.     "GLU_LIB = libMesaGLU.so" \
  825.     "GLUT_LIB = libglut.so" \
  826.     "TK_LIB = libMesatk.so" \
  827.     "AUX_LIB = libMesaaux.so" \
  828.     "CC = gcc" \
  829.     "CFLAGS = -fPIC -O3 -I/usr/openwin/include -DSHM" \
  830.     "MAKELIB = ../mklib.sunos5" \
  831.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  832.  
  833. sunos5-x11r6-gcc-sl:
  834.     $(MAKE) $(MFLAGS) targets \
  835.     "GL_LIB = libMesaGL.so" \
  836.     "GLU_LIB = libMesaGLU.so" \
  837.     "GLUT_LIB = libglut.so" \
  838.     "TK_LIB = libMesatk.so" \
  839.     "AUX_LIB = libMesaaux.so" \
  840.     "CC = gcc" \
  841.     "CFLAGS = -fPIC -O3 -DSHM" \
  842.     "MAKELIB = ../mklib.sunos5" \
  843.     "XLIBS = -lSM -lICE -lX11 -lXext -lXmu -lXi -lnsl -lsocket"
  844.  
  845. # from Ron Metoyer (metoyer@iexist.flw.lucent.com)
  846. sunSolaris-CC:
  847.     $(MAKE) $(MFLAGS) targets \
  848.     "GL_LIB = libMesaGL.a" \
  849.     "GLU_LIB = libMesaGLU.a" \
  850.     "GLUT_LIB = libglut.a" \
  851.     "TK_LIB = libMesatk.a" \
  852.     "AUX_LIB = libMesaaux.a" \
  853.     "CC = CC" \
  854.     "CFLAGS = -O -I/usr/openwin/include -DSHM" \
  855.     "MAKELIB = ../mklib.ar-ruv" \
  856.     "XLIBS = -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lXmu -lXi"
  857.  
  858. #This config doesn't work, Ultrix C compiler isn't ANSI compliant
  859. ultrix:
  860.     $(MAKE) $(MFLAGS) targets \
  861.     "GL_LIB = libMesaGL.a" \
  862.     "GLU_LIB = libMesaGLU.a" \
  863.     "GLUT_LIB = libglut.a" \
  864.     "TK_LIB = libMesatk.a" \
  865.     "AUX_LIB = libMesaaux.a" \
  866.     "CC = cc" \
  867.     "CFLAGS = -O -Dconst=/**/" \
  868.     "MAKELIB = ../mklib.ar-ruv" \
  869.     "XLIBS = -lX11"
  870.  
  871. ultrix-gcc:
  872.     $(MAKE) $(MFLAGS) targets \
  873.     "GL_LIB = libMesaGL.a" \
  874.     "GLU_LIB = libMesaGLU.a" \
  875.     "GLUT_LIB = libglut.a" \
  876.     "TK_LIB = libMesatk.a" \
  877.     "AUX_LIB = libMesaaux.a" \
  878.     "CC = gcc" \
  879.     "CFLAGS = -pedantic -O2" \
  880.     "MAKELIB = ../mklib.ar-ruv" \
  881.     "XLIBS = -lX11"
  882.  
  883. # tested on Cray C90 running UNICOS 8.0.4
  884. unicos:
  885.     $(MAKE) $(MFLAGS) targets \
  886.     "GL_LIB = libMesaGL.a" \
  887.     "GLU_LIB = libMesaGLU.a" \
  888.     "GLUT_LIB = libglut.a" \
  889.     "TK_LIB = libMesatk.a" \
  890.     "AUX_LIB = libMesaaux.a" \
  891.     "CC = cc" \
  892.     "CFLAGS =" \
  893.     "MAKELIB = ../mklib/ar-rcv" \
  894.     "XLIBS = -lX11 -lXext -lXmu -lXi"
  895.  
  896. unixware:
  897.     $(MAKE) $(MFLAGS) targets \
  898.     "GL_LIB = libMesaGL.a" \
  899.     "GLU_LIB = libMesaGLU.a" \
  900.     "GLUT_LIB = libglut.a" \
  901.     "TK_LIB = libMesatk.a" \
  902.     "AUX_LIB = libMesaaux.a" \
  903.     "CC = cc" \
  904.     "CFLAGS = -O -I/usr/X/include -DSHM" \
  905.     "MAKELIB = ../mklib.ar-ruv" \
  906.     "XLIBS = -lX11 -lXext -lXmu -lXi -lsocket -lnsl"
  907.  
  908. unixware-shared:
  909.     $(MAKE) $(MFLAGS) targets \
  910.     "GL_LIB = libMesaGL" \
  911.     "GLU_LIB = libMesaGLU" \
  912.     "GLUT_LIB = libglut" \
  913.     "TK_LIB = libMesatk" \
  914.     "AUX_LIB = libMesaaux" \
  915.     "CC = cc" \
  916.     "CFLAGS = -O -I/usr/X/include -KPIC,inline -DSHM" \
  917.     "MAKELIB = ../mklib.solaris" \
  918.     "XLIBS = -lX11 -lXext -lXmu -lXi -lsocket -lnsl"
  919.  
  920. vistra:
  921.     $(MAKE) $(MFLAGS) targets \
  922.     "GL_LIB = libMesaGL.a" \
  923.     "GLU_LIB = libMesaGLU.a" \
  924.     "GLUT_LIB = libglut.a" \
  925.     "TK_LIB = libMesatk.a" \
  926.     "AUX_LIB = libMesaaux.a" \
  927.     "CC = gcc" \
  928.     "CFLAGS = -pedantic -O2" \
  929.     "MAKELIB = ../mklib.ar-ruv" \
  930.     "XLIBS = -lX11 -lsocket -lnsl -lgen"
  931.  
  932.  
  933. # for debugging on IRIX 5.x systems
  934. debug:
  935.     pmake $(MFLAGS) targets \
  936.     "GL_LIB = libMesaGL.a" \
  937.     "GLU_LIB = libMesaGLU.a" \
  938.     "GLUT_LIB = libglut.a" \
  939.     "TK_LIB = libMesatk.a" \
  940.     "AUX_LIB = libMesaaux.a" \
  941.     "CC = cc" \
  942.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM" \
  943.     "MAKELIB = ../mklib.ar-rcv" \
  944.     "XLIBS = -lX11 -lXext -lXmu -lXi -lfpe -lXext -lXmu -lXi"
  945.  
  946. DEBUG:
  947.     pmake $(MFLAGS) targets \
  948.     "GL_LIB = libMesaGL.a" \
  949.     "GLU_LIB = libMesaGLU.a" \
  950.     "GLUT_LIB = libglut.a" \
  951.     "TK_LIB = libMesatk.a" \
  952.     "AUX_LIB = libMesaaux.a" \
  953.     "CC = cc" \
  954.     "CFLAGS = -g -ansi -prototypes -fullwarn -DSHM -DDEBUG" \
  955.     "MAKELIB = ../mklib.ar-rcv" \
  956.     "XLIBS = -lX11 -lXext -lXmu -lXi -lfpe"
  957.  
  958. # for debugging on Linux systems
  959. linux-debug:
  960.     $(MAKE) $(MFLAGS) targets \
  961.     "GL_LIB = libMesaGL.a" \
  962.     "GLU_LIB = libMesaGLU.a" \
  963.     "GLUT_LIB = libglut.a" \
  964.     "TK_LIB = libMesatk.a" \
  965.     "AUX_LIB = libMesaaux.a" \
  966.     "CC = gcc" \
  967.     "CFLAGS = -g -ansi -pedantic -Wall -DSHM -DDEBUG -DSVGA -DFX -I/usr/local/glide/include" \
  968.     "MAKELIB = ../mklib.ar-ruv" \
  969.     "XLIBS = -L/usr/local/glide/lib -lglide2x -ltexus -L/usr/X11/lib -lX11 -lXext -lXmu -lXi -lvga"
  970.  
  971. # for profiling on Linux systems
  972. linux-prof:
  973.     $(MAKE) $(MFLAGS) targets \
  974.     "GL_LIB = libMesaGL.a" \
  975.     "GLU_LIB = libMesaGLU.a" \
  976.     "GLUT_LIB = libglut.a" \
  977.     "TK_LIB = libMesatk.a" \
  978.     "AUX_LIB = libMesaaux.a" \
  979.     "CC = gcc" \
  980.     "CFLAGS = -O2 -pg -ansi -pedantic -funroll-loops -mieee-fp -DSHM" \
  981.     "MAKELIB = ../mklib.ar-ruv" \
  982.     "XLIBS = -L/usr/X11/lib -lX11 -lXext -lXmu -lXi"
  983.