Commit c1d69dc2 authored by Sam Lantinga's avatar Sam Lantinga

Fixed "dist" make target for newer versions of automake

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40755
parent d182a96b
...@@ -3,7 +3,7 @@ configure ...@@ -3,7 +3,7 @@ configure
aclocal.m4 aclocal.m4
config.log config.log
config.cache config.cache
autom4te.cache autom4te*
depcomp depcomp
libtool libtool
config.status config.status
......
...@@ -69,6 +69,7 @@ rpm: $(PACKAGE)-$(VERSION).tar.gz ...@@ -69,6 +69,7 @@ rpm: $(PACKAGE)-$(VERSION).tar.gz
exports: exports:
(cd src/main/beos/exports; $(MAKE)) (cd src/main/beos/exports; $(MAKE))
(cd src/main/macos/exports; $(MAKE)) (cd src/main/macos/exports; $(MAKE))
(cd src/main/macosx/exports; $(MAKE))
(cd src/main/win32/exports; $(MAKE)) (cd src/main/win32/exports; $(MAKE))
# Rule to build the Project Builder archive in MacOS X # Rule to build the Project Builder archive in MacOS X
...@@ -78,10 +79,6 @@ PBProjects.tar.gz: ...@@ -78,10 +79,6 @@ PBProjects.tar.gz:
tar zcvf $@ PBProjects; \ tar zcvf $@ PBProjects; \
fi fi
# Rule to force automake to rebuild the library
changed:
@echo "This build target is no longer necessary"
# Rule to install the libraries only - prevent rebuilding apps # Rule to install the libraries only - prevent rebuilding apps
install-lib: install-lib:
cd src && $(MAKE) install-libLTLIBRARIES cd src && $(MAKE) install-libLTLIBRARIES
...@@ -93,6 +90,7 @@ install-hook: ...@@ -93,6 +90,7 @@ install-hook:
# Grab the test programs for the distribution: # Grab the test programs for the distribution:
dist-hook: dist-hook:
if test -f test/Makefile; then (cd test; make distclean); fi if test -f test/Makefile; then (cd test; make distclean); fi
rm -rf $(srcdir)/test/autom4te*
cp -rp $(srcdir)/test $(distdir) cp -rp $(srcdir)/test $(distdir)
rm -rf `find $(distdir) -type d -name CVS -print` rm -rf `find $(distdir) -type d -name CVS -print`
......
No preview for this file type
...@@ -505,7 +505,7 @@ CheckNASM() ...@@ -505,7 +505,7 @@ CheckNASM()
NASMFLAGS="-f aoutb" NASMFLAGS="-f aoutb"
;; ;;
*) *)
NASMFLAGS="-f elf -D __NOU__" NASMFLAGS="-f elf"
;; ;;
esac esac
AC_SUBST(NASMFLAGS) AC_SUBST(NASMFLAGS)
...@@ -1331,9 +1331,6 @@ CopyUnixThreadSource() ...@@ -1331,9 +1331,6 @@ CopyUnixThreadSource()
if test x$use_pthreads = xyes -o x$use_clone = xyes; then if test x$use_pthreads = xyes -o x$use_clone = xyes; then
# Basic thread creation functions # Basic thread creation functions
COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c) COPY_ARCH_SRC(src/thread, linux, SDL_systhread.c)
if test x$use_clone = xyes; then
COPY_ARCH_SRC(src/thread, linux, clone.S)
fi
COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h) COPY_ARCH_SRC(src/thread, linux, SDL_systhread_c.h)
# Semaphores # Semaphores
...@@ -1757,11 +1754,8 @@ case "$target" in ...@@ -1757,11 +1754,8 @@ case "$target" in
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub # Set up files for the main() stub
if test "x$video_qtopia" = "xyes"; then if test "x$video_qtopia" = "xyes"; then
COPY_ARCH_SRC(src/main, linux, SDL_Qtopia_main.cc)
SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main" SDL_CFLAGS="$SDL_CFLAGS -Dmain=SDL_main"
SDL_LIBS="-lSDLmain $SDL_LIBS" SDL_LIBS="-lSDLmain $SDL_LIBS"
else
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
fi fi
# Set up files for the audio library # Set up files for the audio library
# We use the OSS and ALSA API's, not the Sun audio API # We use the OSS and ALSA API's, not the Sun audio API
...@@ -1833,8 +1827,6 @@ case "$target" in ...@@ -1833,8 +1827,6 @@ case "$target" in
CheckAAlib CheckAAlib
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
# We use the OSS and ALSA API's, not the Sun audio API # We use the OSS and ALSA API's, not the Sun audio API
#if test x$enable_audio = xyes; then #if test x$enable_audio = xyes; then
...@@ -1880,8 +1872,6 @@ case "$target" in ...@@ -1880,8 +1872,6 @@ case "$target" in
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
CheckUSBHID CheckUSBHID
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
# We use the OSS and ALSA API's, not the Sun audio API # We use the OSS and ALSA API's, not the Sun audio API
#if test x$enable_audio = xyes; then #if test x$enable_audio = xyes; then
...@@ -1918,8 +1908,6 @@ case "$target" in ...@@ -1918,8 +1908,6 @@ case "$target" in
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
CheckUSBHID CheckUSBHID
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
...@@ -1960,8 +1948,6 @@ case "$target" in ...@@ -1960,8 +1948,6 @@ case "$target" in
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
CheckUSBHID CheckUSBHID
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT" CFLAGS="$CFLAGS -DOPENBSD_AUDIO_SUPPORT"
...@@ -2002,8 +1988,6 @@ case "$target" in ...@@ -2002,8 +1988,6 @@ case "$target" in
CheckAAlib CheckAAlib
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
...@@ -2045,8 +2029,6 @@ case "$target" in ...@@ -2045,8 +2029,6 @@ case "$target" in
CheckAAlib CheckAAlib
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
...@@ -2085,8 +2067,6 @@ case "$target" in ...@@ -2085,8 +2067,6 @@ case "$target" in
CheckAAlib CheckAAlib
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# We use the dmedia audio API, not the Sun audio API # We use the dmedia audio API, not the Sun audio API
#if test x$enable_audio = xyes; then #if test x$enable_audio = xyes; then
# CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" # CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
...@@ -2137,8 +2117,6 @@ case "$target" in ...@@ -2137,8 +2117,6 @@ case "$target" in
CheckAAlib CheckAAlib
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT" CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
...@@ -2178,8 +2156,6 @@ case "$target" in ...@@ -2178,8 +2156,6 @@ case "$target" in
CheckAAlib CheckAAlib
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
AUDIO_SUBDIRS="$AUDIO_SUBDIRS paudio" AUDIO_SUBDIRS="$AUDIO_SUBDIRS paudio"
...@@ -2217,8 +2193,6 @@ case "$target" in ...@@ -2217,8 +2193,6 @@ case "$target" in
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
SDL_LIBS="$SDL_LIBS -lrt" SDL_LIBS="$SDL_LIBS -lrt"
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -I/usr/include/mme -DMMEAUDIO_SUPPORT" CFLAGS="$CFLAGS -I/usr/include/mme -DMMEAUDIO_SUPPORT"
...@@ -2257,8 +2231,6 @@ case "$target" in ...@@ -2257,8 +2231,6 @@ case "$target" in
CheckX11 CheckX11
CheckOpenGL CheckOpenGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
CFLAGS="$CFLAGS -DQNXNTOAUDIO_SUPPORT" CFLAGS="$CFLAGS -DQNXNTOAUDIO_SUPPORT"
...@@ -2302,8 +2274,6 @@ case "$target" in ...@@ -2302,8 +2274,6 @@ case "$target" in
CheckWIN32 CheckWIN32
CheckDIRECTX CheckDIRECTX
CheckNASM CheckNASM
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, win32, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
AUDIO_SUBDIRS="$AUDIO_SUBDIRS windib" AUDIO_SUBDIRS="$AUDIO_SUBDIRS windib"
...@@ -2360,10 +2330,6 @@ case "$target" in ...@@ -2360,10 +2330,6 @@ case "$target" in
CheckNASM CheckNASM
CheckBWINDOW CheckBWINDOW
CheckBeGL CheckBeGL
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
COPY_ARCH_SRC(src/main, beos, SDL_BeApp.cc)
COPY_ARCH_SRC(src/main, beos, SDL_BeApp.h)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
AUDIO_SUBDIRS="$AUDIO_SUBDIRS baudio" AUDIO_SUBDIRS="$AUDIO_SUBDIRS baudio"
...@@ -2406,8 +2372,6 @@ case "$target" in ...@@ -2406,8 +2372,6 @@ case "$target" in
CheckDiskAudio CheckDiskAudio
CheckTOOLBOX CheckTOOLBOX
CheckMacGL CheckMacGL
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, macos, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom" AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom"
...@@ -2452,9 +2416,6 @@ case "$target" in ...@@ -2452,9 +2416,6 @@ case "$target" in
CheckQUARTZ CheckQUARTZ
CheckMacGL CheckMacGL
CheckPTHREAD CheckPTHREAD
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, macosx, SDLMain.m)
COPY_ARCH_SRC(src/main, macosx, SDLMain.h)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom" AUDIO_SUBDIRS="$AUDIO_SUBDIRS macrom"
...@@ -2498,8 +2459,6 @@ case "$target" in ...@@ -2498,8 +2459,6 @@ case "$target" in
CheckAtariAudio CheckAtariAudio
CheckAtariLdg CheckAtariLdg
CheckPTH CheckPTH
# Set up files for the main() stub
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
# Set up files for the audio library # Set up files for the audio library
if test x$enable_threads = xyes -a x$enable_pth = xyes; then if test x$enable_threads = xyes -a x$enable_pth = xyes; then
if test x$enable_audio = xyes; then if test x$enable_audio = xyes; then
...@@ -2528,8 +2487,6 @@ case "$target" in ...@@ -2528,8 +2487,6 @@ case "$target" in
COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c) COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
else else
COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c) COPY_ARCH_SRC(src/timer, mint, SDL_systimer.c)
COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer.S)
COPY_ARCH_SRC(src/timer, mint, SDL_vbltimer_s.h)
fi fi
fi fi
# MiNT does not define "unix" # MiNT does not define "unix"
...@@ -2540,7 +2497,6 @@ case "$target" in ...@@ -2540,7 +2497,6 @@ case "$target" in
JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos" JOYSTICK_SUBDIRS="$JOYSTICK_SUBDIRS riscos"
JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la" JOYSTICK_DRIVERS="$JOYSTICK_DRIVERS riscos/libjoystick_riscos.la"
COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c) COPY_ARCH_SRC(src/timer, riscos, SDL_systimer.c)
COPY_ARCH_SRC(src/main, linux, SDL_main.c)
VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos" VIDEO_SUBDIRS="$VIDEO_SUBDIRS riscos"
VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la" VIDEO_DRIVERS="$VIDEO_DRIVERS riscos/libvideo_riscos.la"
AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos" AUDIO_SUBDIRS="$AUDIO_SUBDIRS riscos"
...@@ -2648,7 +2604,6 @@ dnl Expand the include directories for building SDL ...@@ -2648,7 +2604,6 @@ dnl Expand the include directories for building SDL
CFLAGS="$CFLAGS -I\$(top_srcdir)/include" CFLAGS="$CFLAGS -I\$(top_srcdir)/include"
CFLAGS="$CFLAGS -I\$(top_srcdir)/include/SDL" CFLAGS="$CFLAGS -I\$(top_srcdir)/include/SDL"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src -I\$(top_srcdir)/src/$ARCH" CFLAGS="$CFLAGS -I\$(top_srcdir)/src -I\$(top_srcdir)/src/$ARCH"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/main"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/audio" CFLAGS="$CFLAGS -I\$(top_srcdir)/src/audio"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video" CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video"
CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/XFree86/extensions" CFLAGS="$CFLAGS -I\$(top_srcdir)/src/video/XFree86/extensions"
......
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
chmodcmd=""
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0
This diff is collapsed.
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
# Author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
# Public domain
# $Id$
errstatus=0
for file
do
set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
shift
pathcomp=
for d
do
pathcomp="$pathcomp$d"
case "$pathcomp" in
-* ) pathcomp=./$pathcomp ;;
esac
if test ! -d "$pathcomp"; then
echo "mkdir $pathcomp"
mkdir "$pathcomp" || lasterr=$?
if test ! -d "$pathcomp"; then
errstatus=$lasterr
fi
fi
pathcomp="$pathcomp/"
done
done
exit $errstatus
# mkinstalldirs ends here
...@@ -6,44 +6,40 @@ ...@@ -6,44 +6,40 @@
ARCH_SUBDIRS = $(srcdir)/beos \ ARCH_SUBDIRS = $(srcdir)/beos \
$(srcdir)/epoc \ $(srcdir)/epoc \
$(srcdir)/linux \ $(srcdir)/dummy \
$(srcdir)/macos \ $(srcdir)/macos \
$(srcdir)/macosx \ $(srcdir)/macosx \
$(srcdir)/qtopia \
$(srcdir)/win32 $(srcdir)/win32
# Build a separate library containing the main() entry point. # Build a separate library containing the main() entry point.
lib_LIBRARIES = libSDLmain.a lib_LIBRARIES = libSDLmain.a
if TARGET_WIN32
MAINLIB_ARCH_SRCS = win32/SDL_win32_main.c
else
if TARGET_MACOSX if TARGET_MACOSX
MAINLIB_ARCH_SRCS = SDLMain.m SDLMain.h MAINLIB_ARCH_SRCS = macosx/SDLMain.m macosx/SDLMain.h
else else
if TARGET_QTOPIA if TARGET_QTOPIA
MAINLIB_ARCH_SRCS = SDL_Qtopia_main.cc MAINLIB_ARCH_SRCS = qtopia/SDL_qtopia_main.cc
else else
MAINLIB_ARCH_SRCS = SDL_main.c MAINLIB_ARCH_SRCS = dummy/SDL_dummy_main.c
endif endif !TARGET_QTOPIA
endif endif !TARGET_MACOSX
endif !TARGET_WIN32
libSDLmain_a_SOURCES = $(MAINLIB_ARCH_SRCS) libSDLmain_a_SOURCES = $(MAINLIB_ARCH_SRCS)
# Build an internal library of any special app setup functions # Build an internal library of any special app setup functions
noinst_LTLIBRARIES = libarch.la noinst_LTLIBRARIES = libarch.la
if TARGET_BEOS if TARGET_BEOS
ARCH_SRCS = SDL_BeApp.cc SDL_BeApp.h ARCH_SRCS = beos/SDL_BeApp.cc beos/SDL_BeApp.h
else else
ARCH_SRCS = ARCH_SRCS = arch.c
endif endif
# Include the architecture-independent sources libarch_la_SOURCES = $(ARCH_SRCS)
COMMON_SRCS = dummy.c
libarch_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS)
## Let automake know that it shouldn't distribute linked sources
BUILT_SOURCES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
## Let automake know that it should remove these for distribution
DISTCLEANFILES = $(MAINLIB_ARCH_SRCS) $(ARCH_SRCS)
# The architecture specific directories need to be copied into place # The architecture specific directories need to be copied into place
# when building a distribution. # when building a distribution.
......
...@@ -5,8 +5,6 @@ ...@@ -5,8 +5,6 @@
#undef main #undef main
#endif #endif
extern int SDL_main(int argc, char *argv[]);
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
return(SDL_main(argc, argv)); return(SDL_main(argc, argv));
......
...@@ -16,7 +16,7 @@ ARCH_SUBDIRS = $(srcdir)/generic \ ...@@ -16,7 +16,7 @@ ARCH_SUBDIRS = $(srcdir)/generic \
# Older versions of Linux require an asm clone() implementation # Older versions of Linux require an asm clone() implementation
if USE_CLONE if USE_CLONE
THREAD_ASM_SRC = clone.S THREAD_ASM_SRC = linux/clone.S
else else
THREAD_ASM_SRC = THREAD_ASM_SRC =
endif endif
......
...@@ -18,7 +18,7 @@ COMMON_SRCS = SDL_timer.c SDL_timer_c.h SDL_systimer.h ...@@ -18,7 +18,7 @@ COMMON_SRCS = SDL_timer.c SDL_timer_c.h SDL_systimer.h
# Include the architecture-specific sources # Include the architecture-specific sources
if TARGET_MINT if TARGET_MINT
ARCH_SRCS = SDL_systimer.c SDL_vbltimer.S SDL_vbltimer_s.h ARCH_SRCS = SDL_systimer.c mint/SDL_vbltimer.S mint/SDL_vbltimer_s.h
else else
ARCH_SRCS = SDL_systimer.c ARCH_SRCS = SDL_systimer.c
endif endif
......
...@@ -47,7 +47,7 @@ static char rcsid = ...@@ -47,7 +47,7 @@ static char rcsid =
#include "SDL_timer_c.h" #include "SDL_timer_c.h"
#include "SDL_thread.h" #include "SDL_thread.h"
#include "SDL_vbltimer_s.h" #include "mint/SDL_vbltimer_s.h"
/* The first ticks value of the application */ /* The first ticks value of the application */
static Uint32 start; static Uint32 start;
......
...@@ -4,6 +4,7 @@ configure ...@@ -4,6 +4,7 @@ configure
config.cache config.cache
config.log config.log
config.status config.status
autom4te*
aclocal.m4 aclocal.m4
checkkeys checkkeys
graywin graywin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment