Skip to content

Commit

Permalink
Build/packaging fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 12, 2003
1 parent f90871d commit abb4707
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 11 deletions.
20 changes: 10 additions & 10 deletions Makefile.am
Expand Up @@ -6,16 +6,12 @@ libSDL_soundincludedir = $(includedir)/SDL
libSDL_soundinclude_HEADERS = \
SDL_sound.h

if USE_ALTCVT
CVT_SOURCE = alt_audio_convert.c
else
CVT_SOURCE = audio_convert.c
endif

libSDL_sound_la_SOURCES = \
SDL_sound.c \
SDL_sound_internal.h \
$(CVT_SOURCE) \
alt_audio_convert.c \
alt_audio_convert.h \
audio_convert.c \
extra_rwops.c \
extra_rwops.h

Expand Down Expand Up @@ -45,8 +41,12 @@ EXTRA_DIST = \
CWProject.sit \
PBProjects.tar.gz \
borland.zip \
Doxyfile \
docs
Doxyfile

dist-hook:
rm -rf `find $(distdir)/docs -name CVS`
mkdir $(distdir)/docs
echo "Docs are generated with the program "Doxygen" (http://www.doxygen.org/)," >> $(distdir)/docs/README
echo " or can be read online at http://icculus.org/SDL_sound/docs/" >> $(distdir)/docs/README
echo >> $(distdir)/docs/README
rm -rf `find $(distdir) -name "CVS" -type d`

11 changes: 11 additions & 0 deletions alt_audio_convert.c
Expand Up @@ -25,6 +25,12 @@
* (This code blatantly abducted for SDL_sound. Thanks, Frank! --ryan.)
*/

#if HAVE_CONFIG_H
# include <config.h>
#endif

#if SOUND_USE_ALTCVT

#include "alt_audio_convert.h"
#include <math.h>

Expand Down Expand Up @@ -1044,3 +1050,8 @@ int Sound_BuildAudioCVT(Sound_AudioCVT *Data,
"return value: %d \n\n\n", ret );
return ret;
}

#endif /* SOUND_USE_ALTCVT */

/* end of alt_audio_convert.c ... */

7 changes: 7 additions & 0 deletions audio_convert.c
Expand Up @@ -31,6 +31,8 @@
# include <config.h>
#endif

#if !SOUND_USE_ALTCVT

#include "SDL.h"
#include "SDL_sound.h"

Expand Down Expand Up @@ -730,3 +732,8 @@ int Sound_BuildAudioCVT(Sound_AudioCVT *cvt,

return(cvt->needed);
} /* Sound_BuildAudioCVT */

#endif /* !SOUND_USE_ALTCVT */

/* end of audio_convert.c ... */

1 change: 0 additions & 1 deletion configure.in
Expand Up @@ -303,7 +303,6 @@ dnl Add Makefile conditionals
AM_CONDITIONAL(USE_TIMIDITY, test x$enable_midi = xyes)
AM_CONDITIONAL(USE_MPGLIB, test x$enable_mpglib = xyes)
AM_CONDITIONAL(USE_PHYSICSFS, test x$enable_physfs = xyes)
AM_CONDITIONAL(USE_ALTCVT, test x$enable_altcvt = xyes)

AC_OUTPUT([
Makefile
Expand Down
1 change: 1 addition & 0 deletions decoders/Makefile.am
Expand Up @@ -18,4 +18,5 @@ libdecoders_la_SOURCES = \
midi.c \
flac.c \
speex.c \
quicktime.c \
wav.c

0 comments on commit abb4707

Please sign in to comment.