home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Audio / WAV / Maplay4 / _SETUP.1 / config.sh.old < prev    next >
Encoding:
Text File  |  1997-04-21  |  5.6 KB  |  163 lines

  1.  
  2. #
  3. #  @(#) configuration.sh 1.20, last edit: 02 Mar 1995 18:36:23
  4. #  @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
  5. #  @(#) Berlin University of Technology
  6. #
  7. #  This program is free software; you can redistribute it and/or modify
  8. #  it under the terms of the GNU General Public License as published by
  9. #  the Free Software Foundation; either version 2 of the License, or
  10. #  (at your option) any later version.
  11. #
  12. #  This program 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
  15. #  GNU General Public License for more details.
  16. #
  17. #  You should have received a copy of the GNU General Public License
  18. #  along with this program; if not, write to the Free Software
  19. #  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. #
  21.  
  22. #
  23. #  Changes from 1.2 to 1.3:
  24. #    - HP-UX entry added
  25. #    - OSF1 entry added
  26. #    - SunOS 4.1B and SunOS 4.1C entries for Sparc clones added
  27. #
  28. #  Changes from 1.1 to 1.2:
  29. #    - makedepend usage removed, so INCLUDEDIRS is empty now
  30. #    - Linux part added by Louis P. Kruger (lpkruger@phoenix.princeton.edu)
  31. #    - option -Wall removed
  32. #
  33.  
  34. #
  35. #  Remarks:
  36. #    - Please execute "make clean" after changing settings, then "make".
  37. #    - If you are using a SPARC that does NOT have a dbri or audiocs device,
  38. #      but a 8 kHz u-law device (amd), e.g. SPARC 1/1+/2/IPC/IPX/...,
  39. #      add "-DULAW" to COMPILERFLAGS.
  40. #      Don't use "-DULAW" for SPARC 5/10/20 machines, because these machines
  41. #      can produce very fine CD-quality sound with their dbri or audiocs device
  42. #    - INCLUDEDIRS is only needed, if your C++ compiler does not know
  43. #      where to find his own include files or if you want to use
  44. #      makedepend. In this case, set INCLUDEDIRS to '-Iincludedir' 
  45. #    - If you are using Linux, you may look for compiler and processor
  46. #      specific optimization options which can be included in COMPILERFLAGS
  47. #
  48.  
  49. ###*** Please modify the entries for your machine: ***###
  50. case `uname -sr` in
  51.   AIX*)
  52.      COMPILER=g++
  53.      COMPILERFLAGS='-O2 -DAIX'
  54.      INCLUDEDIRS=
  55.      LIBRARIES=-lm
  56.      AUDIO_INCLUDES='#include <sys/audio.h>' ;;
  57.   IRIX\ 4.0.*)
  58.      COMPILER=g++
  59.      COMPILERFLAGS='-O2 -DIRIX -DIndigo'
  60.      INCLUDEDIRS=
  61.      LIBRARIES='-laudio -lm'
  62.      AUDIO_INCLUDES='#include <audio.h>' ;;
  63.   IRIX\ 5.*)
  64.      echo
  65.      echo "Warning: To create a working binary, you need the ELF version of libaudio"
  66.      echo "         which SGI does NOT distribute with IRIX 5.2. If you can't compile"
  67.      echo "         maplay on your machine because of an error like"
  68.      echo "         \"audio.h: No such file or directory\""
  69.      echo "         please send an email containing"
  70.      echo "         SEND pub/incoming/maplay/maplay_indigo.Z"
  71.      echo "         to mail-server@cs.tu-berlin.de to receive a binary by email."
  72.      echo
  73.      COMPILER=g++
  74.      COMPILERFLAGS='-O2 -DIRIX -DIndigo'
  75.      INCLUDEDIRS=
  76.      LIBRARIES='-laudio -lm'
  77.      AUDIO_INCLUDES='#include <audio.h>' ;;
  78.   SunOS\ 4.1.3*)
  79.      COMPILER=g++
  80. # for a SPARC 10 or SPARC 5 (dbri or audiocs device):
  81.      COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_3 -DSPARC'
  82. # or for 8 kHz u-law output on an amd device and in stdout mode (SPARC 2/IPX/...):
  83. #    COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_3 -DSPARC -DULAW'
  84.      INCLUDEDIRS=
  85.      LIBRARIES=-lm
  86.      AUDIO_INCLUDES='#include <sun/audioio.h>' ;;
  87.   SunOS\ 4.1C)
  88. # compatible to 4.1.3
  89.      COMPILER=g++
  90.      COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_3 -DSPARC -DULAW'
  91.      INCLUDEDIRS=
  92.      LIBRARIES=-lm
  93.      AUDIO_INCLUDES='#include <sun/audioio.h>' ;;
  94.   SunOS\ 4.1.1*)
  95.      COMPILER=g++
  96.      COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_1 -DSPARC -DULAW'
  97.      INCLUDEDIRS=
  98.      LIBRARIES=-lm
  99.      AUDIO_INCLUDES='#include <sun/audioio.h>' ;;
  100.   SunOS\ 4.1B)
  101. # compatible to 4.1.1
  102.      COMPILER=g++
  103.      COMPILERFLAGS='-O2 -DSunOS -DSunOS4_1_1 -DSPARC -DULAW'
  104.      INCLUDEDIRS=
  105.      LIBRARIES=-lm
  106.      AUDIO_INCLUDES='#include <sun/audioio.h>' ;;
  107.   SunOS\ 5.*)
  108.      COMPILER=g++
  109. # or:
  110. #    COMPILER=/usr/lang/bin/CC
  111.      COMPILERFLAGS='-O2 -DSolaris -DSPARC'
  112.      INCLUDEDIRS=
  113.      LIBRARIES=-lm
  114.      AUDIO_INCLUDES='#include <sys/audioio.h>' ;;
  115.   Linux*)
  116.      COMPILER=g++
  117.      COMPILERFLAGS='-O2 -m486 -funroll-loops -DLINUX -DDAMN_INTEL_BYTE_ORDER'
  118.      INCLUDEDIRS=
  119.      LIBRARIES=-lm
  120.      AUDIO_INCLUDES='#include <sys/soundcard.h>' ;;
  121.   OSF1\ V2.*)
  122.      COMPILER=cxx
  123.      COMPILERFLAGS='-O -Olimit 2000 -DOSF1 -DDEC -DDAMN_INTEL_BYTE_ORDER'
  124.      INCLUDEDIRS=
  125.      LIBRARIES=-lm
  126.      AUDIO_INCLUDES= ;;
  127.   ULTRIX\ 4.*)
  128.      COMPILER=g++
  129.      COMPILERFLAGS='-O2 -DULTRIX -DDEC -DDAMN_INTEL_BYTE_ORDER'
  130. # or:
  131. #    COMPILER=cxx++
  132. #    COMPILERFLAGS='-O -DULTRIX -DDEC -DDAMN_INTEL_BYTE_ORDER'
  133.      INCLUDEDIRS=
  134.      LIBRARIES=-lm
  135.      AUDIO_INCLUDES= ;;
  136.   HP-UX\ *09.*)
  137. #    COMPILER=g++
  138. #    COMPILERFLAGS='-O2 -DHPUX'
  139. # or:
  140.      COMPILER=CC
  141.      COMPILERFLAGS='-O -DHPUX'
  142.      INCLUDEDIRS=
  143.      LIBRARIES=-lm
  144.      AUDIO_INCLUDES='#include <sys/audio.h>' ;;
  145.   NeXT*)
  146.      COMPILER='cc -ObjC++ -arch m68k -arch i486'
  147.      COMPILERFLAGS='-O4 -funroll-loops'
  148.      INCLUDEDIRS=
  149.      LIBRARIES='-lg++ -lNeXT_s'
  150.      AUDIO_INCLUDES= ;;
  151.   *) echo "This programm has not been tested on your type of machine yet!"
  152.      echo "Please modify the file configuration.sh according to your needs!"
  153.      exit
  154. esac
  155.  
  156. export COMPILER COMPILERFLAGS INCLUDEDIRS LIBRARIES
  157.  
  158. if [ ! -f audio_includes.h ]; then
  159.   echo $AUDIO_INCLUDES >audio_includes.h
  160. fi
  161.  
  162. make maplay
  163.