bugfixes for sdl_sound build and test program

Tony Theodore 14 years ago
parent d904f8e1c6
commit 1890e67af4

@ -44,4 +44,6 @@ int main( int argc, char** argv )
printf("Format: %s\n", sample->decoder->description);
printf("Decoded %d bytes of data.\n", sample->buffer_size);
Sound_FreeSample(sample);
return 0;
}

@ -38,6 +38,15 @@ define $(PKG)_BUILD
--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

Loading…
Cancel
Save