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

  1. # Top-level makefile for Mesa
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  2.5
  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. # $Id: Makefile,v 1.36 1997/11/20 02:21:29 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.36  1997/11/20 02:21:29  brianp
  26. # added more files to tar list
  27. #
  28. # Revision 1.35  1997/11/14 03:03:29  brianp
  29. # added a few more tar files
  30. #
  31. # Revision 1.34  1997/10/30 05:55:22  brianp
  32. # added linux-386 (Linux w/ Intel x86 assembly language)
  33. #
  34. # Revision 1.33  1997/10/16 23:30:13  brianp
  35. # added sunos5-ultra-sl from Scott Hofmann
  36. #
  37. # Revision 1.32  1997/10/16 23:29:05  brianp
  38. # bunch of changes for Mesa 2.5, added GLUT
  39. #
  40. # Revision 1.31  1997/08/24 17:26:57  brianp
  41. # changed order of commands for openstep target (Pete French)
  42. #
  43.  
  44.  
  45. SHELL = /bin/sh
  46.  
  47.  
  48. # To add a new configuration for your system add it to the list below
  49. # then update the Make-config file.
  50.  
  51.  
  52.  
  53. default:
  54.     @echo "Type one of the following:"
  55.     @echo "  make aix                  for IBM RS/6000 with AIX"
  56.     @echo "  make aix-sl               for IBM RS/6000, make shared libs"
  57.     @echo "  make amiwin               for Amiga with SAS/C and AmiWin"
  58.     @echo "  make amix                 for Amiga 3000 UX  SVR4 v2.1 systems"
  59.     @echo "  make beos                 for BeOS with DR 8.2"
  60.     @echo "  make bsdos                for BSD/OS from BSDI using GCC"
  61.     @echo "  make cygnus               for Win95/NT using Cygnus-Win32"
  62.     @echo "  make dgux                 for Data General"
  63.     @echo "  make freebsd              for FreeBSD systems with GCC"
  64.     @echo "  make gcc                  for a generic system with GCC"
  65.     @echo "  make hpux                 for HP systems with HPUX"
  66.     @echo "  make hpux-gcc             for HP systems with HPUX using GCC"
  67.     @echo "  make hpux-sl              for HP systems with HPUX, make shared libs"
  68.     @echo "  make hpux-gcc-sl          for HP systems with HPUX, GCC, make shared libs"
  69.     @echo "  make irix4                for SGI systems with IRIX 4.x"
  70.     @echo "  make irix5                for SGI systems with IRIX 5.x"
  71.     @echo "  make irix5-dso            for SGI systems with IRIX 5.x, make DSOs"
  72.     @echo "  make irix6-32             for SGI systems with IRIX 6.x, make 32-bit libs"
  73.     @echo "  make irix6-32-dso         for SGI systems with IRIX 6.x, make 32-bit DSOs"
  74.     @echo "  make irix6-n32            for SGI systems with IRIX 6.x, make n32-bit libs"
  75.     @echo "  make irix6-n32-dso        for SGI systems with IRIX 6.x, make n32-bit DSOs"
  76.     @echo "  make irix6-64             for SGI systems with IRIX 6.x, make 64-bit libs"
  77.     @echo "  make irix6-64-dso         for SGI systems with IRIX 6.x, make 64-bit DSOs"
  78.  
  79.     @echo "  make linux                for Linux systems with GCC"
  80.     @echo "  make linux-elf            for Linux systems, make ELF shared libs"
  81.     @echo "  make linux-386            for Linux w/ Intel assembly"
  82.     @echo "  make linux-386-elf        for Linux w/ Intel assembly, make ELF shared libs"
  83.     @echo "  make linux-alpha          for Linux on Alpha systems"
  84.     @echo "  make linux-alpha-elf      for Linux on Alpha systems, make ELF shared libs"
  85.     @echo "  make linux-ppc            for Linux on PowerPC systems"
  86.     @echo "  make linux-glide          for Linux w/ 3Dfx Glide driver"
  87.     @echo "  make linux-386-glide      for Linux w/ 3Dfx Glide driver, Intel assembly"
  88.     @echo "  make lynxos               for LynxOS systems with GCC"
  89.     @echo "  make mswindows            for Microsoft Windows"
  90.     @echo "  make macintosh            for Macintosh"
  91.     @echo "  make machten-2.2          for Macs w/ MachTen 2.2 (68k w/ FPU)"
  92.     @echo "  make machten-4.0          for Macs w/ MachTen 4.0.1 or newer with GNU make"
  93.     @echo "  make mklinux              for Linux on Power Macintosh"
  94.     @echo "  make netbsd               for NetBSD 1.0 systems with GCC"
  95.     @echo "  make next                 for NeXT systems with NEXTSTEP 3.3"
  96.     @echo "  make next-x86-x11         for NeXT on Intel x86 with X11"
  97.     @echo "  make next-x11             for NeXT with X11"
  98.     @echo "  make openbsd              for OpenBSD systems"
  99.     @echo "  make openstep             for NeXT systems with OPENSTEP 4.0"
  100.     @echo "  make os2                  for OS/2 with XFree86"
  101.     @echo "  make osf1                 for DEC Alpha systems with OSF/1"
  102.     @echo "  make osf1-sl              for DEC Alpha systems with OSF/1, make shared libs"
  103.     @echo "  make qnx                  for QNX V4 systems with Watcom compiler"
  104.     @echo "  make sco                  for SCO Unix systems with ODT"
  105.     @echo "  make solaris-x86          for PCs with Solaris"
  106.     @echo "  make solaris-x86-gcc      for PCs with Solaris using GCC"
  107. #    @echo "  make solaris-gcc          for Solaris 2 systems with GCC"
  108.     @echo "  make sunos4               for Suns with SunOS 4.x"
  109.     @echo "  make sunos4-sl            for Suns with SunOS 4.x, make shared libs"
  110.     @echo "  make sunos4-gcc           for Suns with SunOS 4.x and GCC"
  111.     @echo "  make sunos4-gcc-sl        for Suns with SunOS 4.x, GCC, make shared libs"
  112.     @echo "  make sunos5               for Suns with SunOS 5.x"
  113.     @echo "  make sunos5-sl            for Suns with SunOS 5.x, make shared libs"
  114.     @echo "  make sunos5-ultra         for Sun UltraSPARCs with SunOS 5.x"
  115.     @echo "  make sunos5-ultra-sl      for Sun UltraSPARCs with SunOS 5.x, make shared libs"
  116.     @echo "  make sunos5-gcc           for Suns with SunOS 5.x and GCC"
  117.     @echo "  make sunos5-gcc-sl        for Suns with SunOS 5.x, GCC, make shared libs"
  118.     @echo "  make sunos5-x11r6-gcc-sl  for Suns with X11R6, GCC, make shared libs"
  119.     @echo "  make sunSolaris-CC        for Solaris using C++ compiler"
  120.     @echo "  make ultrix-gcc           for DEC systems with Ultrix and GCC"
  121.     @echo "  make unicos               for Cray C90 (and other?) systems"
  122.     @echo "  make unixware             for PCs running UnixWare"
  123.     @echo "  make unixware-shared      for PCs running UnixWare, shared libs"
  124.     @echo "  make vistra               for Stardent Vistra systems"
  125.     @echo "  make clean                remove .o files"
  126.     @echo "  make realclean            remove .o, library and executable files"
  127.  
  128.  
  129.  
  130. aix aix-sl amix bsdos debug dgux freebsd gcc \
  131. hpux hpux-gcc hpux-sl hpux-gcc-sl \
  132. irix4 irix5 irix5-dso irix6-32 irix6-n32 irix6-64 \
  133. irix6-32-dso irix6-n32-dso irix6-64-dso \
  134. linux linux-debug linux-elf linux-glide linux-386-glide \
  135. linux-386 linux-386-elf linux-alpha linux-alpha-elf linux-ppc \
  136. lynxos machten-2.2 machten-4.0 \
  137. mklinux netbsd next-x86-x11 next-x11 osf1 osf1-sl openbsd qnx sco \
  138. solaris-x86 solaris-x86-gcc sunSolaris-CC \
  139. sunos4 sunos4-sl sunos4-gcc sunos4-gcc-sl \
  140. sunos5 sunos5-sl sunos5-ultra sunos5-ultra-sl sunos5-gcc sunos5-gcc-sl \
  141. sunos5-x11r6-gcc-sl ultrix-gcc unicos unixware vistra:
  142.     -mkdir lib
  143.     touch src/depend
  144.     touch src-glu/depend
  145.     touch src-glut/depend
  146.     cd src ; $(MAKE) $@
  147.     cd src-glu ; $(MAKE) $@
  148.     cd src-glut ; $(MAKE) $@
  149.     cd gdemos ; $(MAKE) $@
  150.     if [ -d src-tk ]  ; then cd src-tk  ; $(MAKE) $@ ; fi
  151.     if [ -d src-aux ] ; then cd src-aux ; $(MAKE) $@ ; fi
  152.     if [ -d demos ]   ; then cd demos   ; $(MAKE) $@ ; fi
  153.     if [ -d samples ] ; then cd samples ; $(MAKE) $@ ; fi
  154.     if [ -d book ]    ; then cd book    ; $(MAKE) $@ ; fi
  155.  
  156. amiwin:
  157.     mklib.amiwin
  158.  
  159. beos:
  160.     -mkdir lib
  161.     cd src ; $(MAKE) -f Makefile.BeOS $@
  162.     cd src-glu ; $(MAKE) -f Makefile $@
  163.     if [ -d src-tk ]  ; then cd src-tk  ; $(MAKE) -f Makefile.BeOS $@ ; fi
  164.     if [ -d src-aux ] ; then cd src-aux ; $(MAKE) -f Makefile.BeOS $@ ; fi
  165.     if [ -d BeOS ]    ; then cd BeOS    ; $(MAKE) -f Makefile.BeOS $@ ; fi
  166.  
  167. cygnus:
  168.     -mkdir lib
  169.     touch src/depend
  170.     touch src-glu/depend
  171.     cd src ; $(MAKE) $@
  172.     cd src-glu ; $(MAKE) $@
  173.     cd src-glut ; $(MAKE) $@
  174.     cd gdemos ; $(MAKE) $@
  175.     if [ -d src-tk ]  ; then cd src-tk  ; $(MAKE) $@ ; fi
  176.     if [ -d src-aux ] ; then cd src-aux ; $(MAKE) $@ ; fi
  177.     if [ -d demos ]   ; then cd demos   ; $(MAKE) $@ ; fi
  178.  
  179. macintosh:
  180.     @echo "See the README file for Macintosh intallation information"
  181.  
  182. mswindows:
  183.     @echo "See the windows/README file for installation information"
  184.  
  185. next:
  186.     -mkdir lib
  187.     cd src ; $(MAKE) -f Makefile.NeXT $@
  188.     cd src-glu ; $(MAKE) -f Makefile $@
  189.     cd NeXT ; $(MAKE) -f Makefile.NeXT $@
  190.     if [ -d src-tk ]  ; then cd src-tk  ; $(MAKE) -f Makefile.NeXT $@ ; fi
  191.     if [ -d src-aux ] ; then cd src-aux ; $(MAKE) -f Makefile.NeXT $@ ; fi
  192.  
  193. openstep:
  194.     -mkdir lib
  195.     cd src ; $(MAKE) -f Makefile.OpenStep $@
  196.     cd src-glu ; $(MAKE) -f Makefile.OpenStep $@
  197.     if [ -d src-tk ]  ; then cd src-tk  ; $(MAKE) -f Makefile.OpenStep $@ ; fi
  198.     if [ -d src-aux ] ; then cd src-aux ; $(MAKE) -f Makefile.OpenStep $@ ; fi
  199.     cd OpenStep; $(MAKE)
  200.  
  201. os2:
  202.     @echo "See the README.OS2 file for instructions"
  203.  
  204.  
  205.  
  206. # Remove .o files, emacs backup files, etc.
  207. clean:
  208.     -rm -f include/*~
  209.     -rm -f include/GL/*~
  210.     -rm -f src/*.o src/*~ src/*.a
  211.     -rm -f src-glu/*.o src-glu/*~ src-glu/*.a
  212.     -rm -f src-glut/*.o
  213.     -rm -f gdemos/*.o
  214.     -rm -f src-aux/*.o src-aux/*~ src-aux/*.a
  215.     -rm -f src-tk/*.o src-tk/*~ src-tk/*.a
  216.     -rm -f src-tk2/*.o src-tk2/*~ src-tk2/*.a
  217.     -rm -f book/*.o book/*~
  218.     -rm -f demos/*.o demos/*~
  219.     -rm -f samples/*.o samples/*~
  220.  
  221. # Remove everthing that can be remade
  222. realclean: clean
  223.     -rm -f lib/*.a lib/*.so*
  224.     cd gdemos ; $(MAKE) realclean
  225.     cd book ; $(MAKE) realclean
  226.     cd demos ; $(MAKE) realclean
  227.     cd samples ; $(MAKE) realclean
  228.     -rm -f lib/*.a lib/*.so*
  229.  
  230.  
  231.  
  232. DIRECTORY = Mesa-2.5
  233. LIB_NAME = MesaLib-2.5
  234. DEMO_NAME = MesaDemos-2.5
  235.  
  236.  
  237. LIB_FILES =    \
  238.     $(DIRECTORY)/README*            \
  239.     $(DIRECTORY)/IAFA-PACKAGE        \
  240.     $(DIRECTORY)/LICENSE            \
  241.     $(DIRECTORY)/VERSIONS            \
  242.     $(DIRECTORY)/RELNOTES            \
  243.     $(DIRECTORY)/FUTURE            \
  244.     $(DIRECTORY)/Makefile*            \
  245.     $(DIRECTORY)/Make-config        \
  246.     $(DIRECTORY)/mklib.*            \
  247.     $(DIRECTORY)/*.BAT            \
  248.     $(DIRECTORY)/Imakefile            \
  249.     $(DIRECTORY)/descrip.mms        \
  250.     $(DIRECTORY)/mms-config            \
  251.     $(DIRECTORY)/xlib.opt            \
  252.     $(DIRECTORY)/MESADOS.BAT        \
  253.     $(DIRECTORY)/STARTUP.MK            \
  254.     $(DIRECTORY)/mesawin32.mak        \
  255.     $(DIRECTORY)/Names.win            \
  256.     $(DIRECTORY)/include/*.h        \
  257.     $(DIRECTORY)/include/GL/*.h        \
  258.     $(DIRECTORY)/src/Makefile*        \
  259.     $(DIRECTORY)/src/Imakefile        \
  260.     $(DIRECTORY)/src/descrip.mms        \
  261.     $(DIRECTORY)/src/mms_depend        \
  262.     $(DIRECTORY)/src/DEPEND.DOS        \
  263.     $(DIRECTORY)/src/*.def            \
  264.     $(DIRECTORY)/src/*.mak            \
  265.     $(DIRECTORY)/src/*.rc            \
  266.     $(DIRECTORY)/src/*.rsp            \
  267.     $(DIRECTORY)/src/depend            \
  268.     $(DIRECTORY)/src/*.[chS]        \
  269.     $(DIRECTORY)/src-glu/README[12]        \
  270.     $(DIRECTORY)/src-glu/Makefile*        \
  271.     $(DIRECTORY)/src-glu/Imakefile        \
  272.     $(DIRECTORY)/src-glu/descrip.mms    \
  273.     $(DIRECTORY)/src-glu/mms_depend        \
  274.     $(DIRECTORY)/src-glu/*.def        \
  275.     $(DIRECTORY)/src-glu/*.rsp        \
  276.     $(DIRECTORY)/src-glu/depend        \
  277.     $(DIRECTORY)/src-glu/*.[ch]        \
  278.     $(DIRECTORY)/src-glut/Makefile*        \
  279.     $(DIRECTORY)/src-glut/depend        \
  280.     $(DIRECTORY)/src-glut/*def        \
  281.     $(DIRECTORY)/src-glut/*.[ch]        \
  282.     $(DIRECTORY)/src-glut/*.[yl]        \
  283.     $(DIRECTORY)/gdemos/Makefile        \
  284.     $(DIRECTORY)/gdemos/*.[ch]        \
  285.     $(DIRECTORY)/gdemos/*.rgb        \
  286.     $(DIRECTORY)/widgets-mesa        \
  287.     $(DIRECTORY)/widgets-sgi        \
  288.     $(DIRECTORY)/util/README        \
  289.     $(DIRECTORY)/util/*.c            \
  290.     $(DIRECTORY)/windows            \
  291.     $(DIRECTORY)/NeXT            \
  292.     $(DIRECTORY)/BeOS            \
  293.     $(DIRECTORY)/OpenStep
  294.  
  295. DEMO_FILES =    \
  296.     $(DIRECTORY)/src-tk/README        \
  297.     $(DIRECTORY)/src-tk/Makefile*        \
  298.     $(DIRECTORY)/src-tk/Imakefile        \
  299.     $(DIRECTORY)/src-tk/descrip.mms        \
  300.     $(DIRECTORY)/src-tk/*.def        \
  301.     $(DIRECTORY)/src-tk/*.rsp        \
  302.     $(DIRECTORY)/src-tk/*.[ch]        \
  303.     $(DIRECTORY)/src-tk/*cpp        \
  304.     $(DIRECTORY)/src-aux/Makefile*        \
  305.     $(DIRECTORY)/src-aux/Imakefile        \
  306.     $(DIRECTORY)/src-aux/descrip.mms    \
  307.     $(DIRECTORY)/src-aux/*.def        \
  308.     $(DIRECTORY)/src-aux/*.rsp        \
  309.     $(DIRECTORY)/src-aux/*.[ch]        \
  310.     $(DIRECTORY)/demos/Makefile*        \
  311.     $(DIRECTORY)/demos/Imakefile        \
  312.     $(DIRECTORY)/demos/descrip.mms        \
  313.     $(DIRECTORY)/demos/*.[cf]        \
  314.     $(DIRECTORY)/demos/isosurf.dat        \
  315.     $(DIRECTORY)/book/Makefile*        \
  316.     $(DIRECTORY)/book/Imakefile        \
  317.     $(DIRECTORY)/book/README        \
  318.     $(DIRECTORY)/book/*.[ch]        \
  319.     $(DIRECTORY)/samples/Makefile*        \
  320.     $(DIRECTORY)/samples/Imakefile        \
  321.     $(DIRECTORY)/samples/README        \
  322.     $(DIRECTORY)/samples/*.rgb        \
  323.     $(DIRECTORY)/samples/*.c        \
  324.     $(DIRECTORY)/3Dfx
  325.  
  326.  
  327. lib_tar:
  328.     cd .. ; \
  329.     tar -cvf $(LIB_NAME).tar $(LIB_FILES) ; \
  330.     gzip $(LIB_NAME).tar ; \
  331.     mv $(LIB_NAME).tar.gz $(DIRECTORY)
  332.  
  333. demo_tar:
  334.     cd .. ; \
  335.     tar -cvf $(DEMO_NAME).tar $(DEMO_FILES) ; \
  336.     gzip $(DEMO_NAME).tar ; \
  337.     mv $(DEMO_NAME).tar.gz $(DIRECTORY)
  338.  
  339. lib_zip:
  340.     -rm $(LIB_NAME).zip
  341.     cd .. ; \
  342.     zip -r $(LIB_NAME).zip $(LIB_FILES) ; \
  343.     mv $(LIB_NAME).zip $(DIRECTORY)
  344.  
  345. demo_zip:
  346.     -rm $(DEMO_NAME).zip
  347.     cd .. ; \
  348.     zip -r $(DEMO_NAME).zip $(DEMO_FILES) ; \
  349.     mv $(DEMO_NAME).zip $(DIRECTORY)
  350.  
  351.  
  352.  
  353. SRC_FILES =    \
  354.     src/Makefile*        \
  355.     src/depend        \
  356.     src/*.[ch]        \
  357.     include/GL/*.h
  358.  
  359. srctar:
  360.     tar -cvf src.tar $(SRC_FILES) ; \
  361.     gzip src.tar
  362.  
  363. srctar.zip:
  364.     -rm src.zip
  365.     zip -r src.zip $(SRC_FILES) ; \
  366.