home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Audio / WAV / MaplayP / _SETUP.1 / freebsd.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1997-07-08  |  1.8 KB  |  40 lines

  1. #!/bin/csh -f
  2.  
  3. # FreeBSD shell script by Jeff Tsay. Based on Earle Philhower's HP script.
  4. # Move linux_obuffer.* and cmdline.cpp into the same directory as the rest
  5. # of the source before compiling.
  6. #
  7. # Note that g++ for FreeBSD sux - it always reports errors when redeclaring
  8. # variables that have had their scope ended. For example,
  9. #
  10. # for (int i=0; i<23; i++)
  11. #     ack[i]=i;
  12. # for (int i=0; i<23; i++)
  13. #     booga[i] = ack[i] * 2;
  14. #
  15. # The solution is to declare i in the beginning of the function and never
  16. # declare it again. For now, I have fixed the files so this error should
  17. # not come up.
  18.  
  19. # Compile each file
  20. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. bit_res.cpp
  21. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. -DPENTIUM \
  22. cmdline.cpp
  23. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. crc.cpp
  24. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. header.cpp
  25. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. huffman.cpp
  26. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. ibitstr.cpp
  27. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. inv_mdct.cpp
  28. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. layer3.cpp
  29. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. maplay.cpp
  30. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. obuffer.cpp
  31. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. scalfact.cpp
  32. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. sublay1.cpp
  33. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. sublay2.cpp
  34. g++ -c -O4 -g -D__FREEBSD__ -DDAMN_INTEL_BYTE_ORDER -DVERBOSE -I. synfilt.cpp
  35.  
  36.  
  37. # Link the files, strip the executable
  38. g++ -o maplay+ *.o -lm 
  39. strip maplay+
  40.