1#!/bin/bash 2 3# Building 32-bit executable on Linux. Note: only compiles in 4# OGG and MP3 support if the libraries are already setup within 5# libs/, otherwise omits them. To build the libraries, see the 6# 'mk-libmad-linux' and 'mk-tremor-linux' scripts. 7 8OPT='-DT_LINUX -Wall -m32 -O3 -s -lm -lpthread' 9LIBS='' 10 11[ -f libs/linux-libmad.a ] && { 12 OPT="-DMP3_DECODE $OPT" 13 LIBS="$LIBS libs/linux-libmad.a" 14} 15[ -f libs/linux-libvorbisidec.a ] && { 16 OPT="-DOGG_DECODE $OPT" 17 LIBS="$LIBS libs/linux-libvorbisidec.a" 18} 19 20cc $OPT sbagen.c $LIBS -o sbagen || exit 1 21 22