1#!/bin/sh 2 3# Building Tremor on MinGW/MSYS is not too easy -- none of the 4# configure stuff seems to work, so I just wrote a quick script to do 5# the build instead. *Much* simpler than trying to make sense of 6# 100Ks of indecipherable scripts and Makefiles. You need to run this 7# on MinGW/MSYS, and then use the resulting libvorbisidec.a when 8# building sbagen.exe (see mk-xmingw). 9 10DEFS="-DBYTE_ORDER=4321 -DBIG_ENDIAN=1234 -DLITTLE_ENDIAN=4321 -D_REENTRANT -DUSE_MEMORY_H" 11 12for xx in mdct.c block.c window.c \ 13 synthesis.c info.c \ 14 floor1.c floor0.c vorbisfile.c \ 15 res012.c mapping0.c registry.c codebook.c \ 16 sharedbook.c framing.c bitwise.c 17do 18 echo == $xx 19 gcc -c -O2 -fsigned-char $DEFS $xx || exit 1 20done 21 22ar rv libvorbisidec.a *.o || exit 1 23 24