Mercurial > sdl-ios-xcode
diff configure.in @ 1397:b189a73aa335
Added rules to build libSDLmain.a
Reverted Patrice's mint changes - you should fix the source files, not
add include paths to the build process.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Feb 2006 22:15:38 +0000 |
parents | 428c8690cf73 |
children | 27b719501eb4 |
line wrap: on
line diff
--- a/configure.in Mon Feb 20 20:53:52 2006 +0000 +++ b/configure.in Mon Feb 20 22:15:38 2006 +0000 @@ -1175,6 +1175,7 @@ if test x$video_qtopia = xyes; then AC_DEFINE(SDL_VIDEO_DRIVER_QTOPIA) SOURCES="$SOURCES $srcdir/src/video/qtopia/*.cc" + SDLMAIN_SOURCES="$srcdir/src/main/qtopia/*.cc" BUILD_CFLAGS="$BUILD_CFLAGS $QTOPIA_FLAGS" SDL_CFLAGS="$SDL_CFLAGS -DQWS -Dmain=SDL_main" SDL_LIBS="-lSDLmain $SDL_LIBS -L${QPEDIR}/lib -L${QTDIR}/lib/ -lqpe -lqte" @@ -2117,6 +2118,7 @@ BUILD_LDFLAGS="$BUILD_LDFLAGS -ldxguid" fi # The Win32 platform requires special setup + SDLMAIN_SOURCES="$srcdir/src/main/win32/*.c" SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" SDL_LIBS="-lmingw32 -lSDLmain $SDL_LIBS -mwindows" ;; @@ -2219,6 +2221,7 @@ have_loadso=yes fi # The MacOS X platform requires special setup. + SDLMAIN_SOURCES="$srcdir/src/main/macosx/*.m" AC_DEFINE(TARGET_API_MAC_CARBON) BUILD_CFLAGS="$BUILD_CFLAGS -fpascal-strings -DMACOSX" SDL_LIBS="-lSDLmain $SDL_LIBS" @@ -2274,13 +2277,11 @@ else AC_DEFINE(SDL_TIMER_MINT) SOURCES="$SOURCES $srcdir/src/timer/mint/*.c" - BUILD_CFLAGS="$BUILD_CFLAGS -I$srcdir/src/timer/mint" fi have_timers=yes fi # MiNT does not define "unix" BUILD_CFLAGS="$BUILD_CFLAGS -Dunix" - BUILD_CFLAGS="$BUILD_CFLAGS -I$srcdir/src/video/ataricommon" ;; *-riscos) ARCH=riscos @@ -2345,12 +2346,19 @@ fi SOURCES="$SOURCES $srcdir/src/loadso/dummy/*.c" fi +if test x$SDLMAIN_SOURCES = x; then + SDLMAIN_SOURCES="$srcdir/src/main/dummy/*.c" +fi OBJECTS=`echo $SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.asm,$(objects)/\1.lo,g'` OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.lo,g'` OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.lo,g'` OBJECTS=`echo $OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.lo,g'` +SDLMAIN_OBJECTS=`echo $SDLMAIN_SOURCES | sed 's,[[^ ]]*/\([[^ ]]*\)\.cc,$(objects)/\1.o,g'` +SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.m,$(objects)/\1.o,g'` +SDLMAIN_OBJECTS=`echo $SDLMAIN_OBJECTS | sed 's,[[^ ]]*/\([[^ ]]*\)\.c,$(objects)/\1.o,g'` + # Set runtime shared library paths as needed if test "x$enable_rpath" = "xyes"; then @@ -2434,6 +2442,8 @@ AC_SUBST(INCLUDE) AC_SUBST(SOURCES) AC_SUBST(OBJECTS) +AC_SUBST(SDLMAIN_SOURCES) +AC_SUBST(SDLMAIN_OBJECTS) AC_SUBST(BUILD_CFLAGS) AC_SUBST(BUILD_LDFLAGS)