Mercurial > mxe-octave
changeset 1256:b6d98b5e72f6
bugfixes for sdl_sound build and test program
author | Tony Theodore <tonyt@logyst.com> |
---|---|
date | Sun, 03 Oct 2010 07:18:58 +1100 |
parents | 59a787bcec54 |
children | afabf3a51818 |
files | src/sdl_sound-test.c src/sdl_sound.mk |
diffstat | 2 files changed, 12 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sdl_sound-test.c Sun Oct 03 07:11:11 2010 +1100 +++ b/src/sdl_sound-test.c Sun Oct 03 07:18:58 2010 +1100 @@ -44,4 +44,6 @@ printf("Format: %s\n", sample->decoder->description); printf("Decoded %d bytes of data.\n", sample->buffer_size); Sound_FreeSample(sample); + + return 0; }
--- a/src/sdl_sound.mk Sun Oct 03 07:11:11 2010 +1100 +++ b/src/sdl_sound.mk Sun Oct 03 07:18:58 2010 +1100 @@ -38,6 +38,15 @@ --disable-smpegtest \ --with-smpeg-prefix='$(PREFIX)/$(TARGET)' \ LIBMIKMOD_CONFIG='$(PREFIX)/$(TARGET)/bin/libmikmod-config' \ - LIBS='-lvorbis -logg' + LIBS='-lvorbis -logg' \ + CFLAGS='-fno-inline' $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS= + + '$(TARGET)-gcc' \ + -W -Wall -Werror -std=c99 -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-sdl_sound.exe' \ + `'$(TARGET)-pkg-config' sdl --cflags --libs` \ + -lSDL_sound \ + `'$(TARGET)-pkg-config' vorbisfile --libs` \ + -lspeex -lmikmod endef