configure.in
changeset 422 614c9a2f8279
parent 419 e27fe0bfe470
child 426 5d37755905f9
     1.1 --- a/configure.in	Sun Oct 04 02:54:48 2009 +0000
     1.2 +++ b/configure.in	Sun Oct 04 04:28:46 2009 +0000
     1.3 @@ -87,7 +87,7 @@
     1.4  
     1.5  case "$host" in
     1.6      *-*-cygwin* | *-*-mingw32*)
     1.7 -        SOURCES="$srcdir/version.rc"
     1.8 +        VERSION_SOURCES="$srcdir/version.rc"
     1.9          EXE=".exe"
    1.10          if test "$build" != "$host"; then # cross-compiling
    1.11              # Default cross-compile location
    1.12 @@ -485,13 +485,47 @@
    1.13      AC_MSG_WARN([MP3 support disabled])
    1.14  fi
    1.15  
    1.16 -OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
    1.17 -OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
    1.18 +
    1.19 +OBJECTS=`echo $SOURCES`
    1.20 +DEPENDS=`echo $SOURCES`
    1.21 +OBJECTS=`echo "$OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
    1.22 +DEPENDS=`echo "$DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.c,\\
    1.23 +$(objects)/\2.lo: \1/\2.c\\
    1.24 +	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -MMD -MT \$@ -c \$< -o \$@,g'`
    1.25 +
    1.26 +VERSION_OBJECTS=`echo $VERSION_SOURCES`
    1.27 +VERSION_DEPENDS=`echo $VERSION_SOURCES`
    1.28 +VERSION_OBJECTS=`echo "$VERSION_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.rc,$(objects)/\1.o,g'`
    1.29 +VERSION_DEPENDS=`echo "$VERSION_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.rc,\\
    1.30 +$(objects)/\2.o: \1/\2.rc\\
    1.31 +	\$(WINDRES) \$< \$@,g'`
    1.32 +
    1.33 +PLAYWAVE_SOURCES="$srcdir/playwave.c"
    1.34 +PLAYWAVE_OBJECTS=`echo $PLAYWAVE_SOURCES`
    1.35 +PLAYWAVE_DEPENDS=`echo $PLAYWAVE_SOURCES`
    1.36 +PLAYWAVE_OBJECTS=`echo "$PLAYWAVE_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
    1.37 +PLAYWAVE_DEPENDS=`echo "$PLAYWAVE_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.c,\\
    1.38 +$(objects)/\2.lo: \1/\2.c\\
    1.39 +	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -MMD -MT \$@ -c \$< -o \$@,g'`
    1.40 +
    1.41 +PLAYMUS_SOURCES="$srcdir/playmus.c"
    1.42 +PLAYMUS_OBJECTS=`echo $PLAYMUS_SOURCES`
    1.43 +PLAYMUS_DEPENDS=`echo $PLAYMUS_SOURCES`
    1.44 +PLAYMUS_OBJECTS=`echo "$PLAYMUS_OBJECTS" | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'`
    1.45 +PLAYMUS_DEPENDS=`echo "$PLAYMUS_DEPENDS" | sed 's,\([[^ ]]*\)/\([[^ ]]*\)\.c,\\
    1.46 +$(objects)/\2.lo: \1/\2.c\\
    1.47 +	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) \$(EXTRA_CFLAGS) -MMD -MT \$@ -c \$< -o \$@,g'`
    1.48  
    1.49  dnl Expand the sources and objects needed to build the library
    1.50  AC_SUBST(ac_aux_dir)
    1.51 -AC_SUBST(SOURCES)
    1.52  AC_SUBST(OBJECTS)
    1.53 +AC_SUBST(DEPENDS)
    1.54 +AC_SUBST(VERSION_OBJECTS)
    1.55 +AC_SUBST(VERSION_DEPENDS)
    1.56 +AC_SUBST(PLAYWAVE_OBJECTS)
    1.57 +AC_SUBST(PLAYWAVE_DEPENDS)
    1.58 +AC_SUBST(PLAYMUS_OBJECTS)
    1.59 +AC_SUBST(PLAYMUS_DEPENDS)
    1.60  AC_SUBST(BUILD_CFLAGS)
    1.61  AC_SUBST(EXTRA_CFLAGS)
    1.62  AC_SUBST(BUILD_LDFLAGS)
    1.63 @@ -504,7 +538,4 @@
    1.64  
    1.65  AC_OUTPUT([
    1.66      Makefile SDL_mixer.spec SDL_mixer.qpg SDL_mixer.pc
    1.67 -], [
    1.68 -    : >build-deps
    1.69 -    if test x"$MAKE" = x; then MAKE=make; fi; $MAKE depend
    1.70  ])