diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl_sound-test.c | 2 | ||||
-rw-r--r-- | src/sdl_sound.mk | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/src/sdl_sound-test.c b/src/sdl_sound-test.c index 46794fc..437e1e1 100644 --- a/src/sdl_sound-test.c +++ b/src/sdl_sound-test.c @@ -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;
}
diff --git a/src/sdl_sound.mk b/src/sdl_sound.mk index 1747458..3c401b2 100644 --- a/src/sdl_sound.mk +++ b/src/sdl_sound.mk @@ -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 |