Fixed bug #171
SDL_config.h is no longer in CVS. Instead, configure will generate it for systems that use configure, and we always copy SDL_config.h.default to SDL_config.h before generating a snapshot or release archive. Also fixed a couple of uninstall issues. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401610
This commit is contained in:
parent
3c6f272957
commit
c68ee88d7a
6 changed files with 68 additions and 61 deletions
18
Makefile.in
18
Makefile.in
|
@ -99,7 +99,7 @@ install-man:
|
||||||
$(INSTALL) -m 644 $$src $(mandir)/man3/$$file; \
|
$(INSTALL) -m 644 $$src $(mandir)/man3/$$file; \
|
||||||
done
|
done
|
||||||
|
|
||||||
uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-man
|
uninstall: uninstall-bin uninstall-hdrs uninstall-lib uninstall-data uninstall-man
|
||||||
uninstall-bin:
|
uninstall-bin:
|
||||||
rm -f $(bindir)/sdl-config
|
rm -f $(bindir)/sdl-config
|
||||||
uninstall-hdrs:
|
uninstall-hdrs:
|
||||||
|
@ -108,6 +108,7 @@ uninstall-hdrs:
|
||||||
rm -f $(includedir)/SDL/$$file; \
|
rm -f $(includedir)/SDL/$$file; \
|
||||||
done
|
done
|
||||||
rm -f $(includedir)/SDL/SDL_config.h
|
rm -f $(includedir)/SDL/SDL_config.h
|
||||||
|
-rmdir $(includedir)/SDL
|
||||||
uninstall-lib:
|
uninstall-lib:
|
||||||
$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
|
$(LIBTOOL) --mode=uninstall rm -f $(libdir)/$(TARGET)
|
||||||
rm -f $(libdir)/$(SDLMAIN_TARGET)
|
rm -f $(libdir)/$(SDLMAIN_TARGET)
|
||||||
|
@ -125,19 +126,25 @@ clean:
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
rm -f Makefile include/SDL_config.h sdl-config
|
rm -f Makefile include/SDL_config.h sdl-config
|
||||||
|
rm -f include/SDL_config.h sdl-config
|
||||||
rm -f SDL.qpg
|
rm -f SDL.qpg
|
||||||
rm -f config.status config.cache config.log libtool $(depend)
|
rm -f config.status config.cache config.log libtool $(depend)
|
||||||
rm -rf $(srcdir)/autom4te*
|
rm -rf $(srcdir)/autom4te*
|
||||||
find $(srcdir) \
|
find $(srcdir) \( \
|
||||||
-name '*~' -o -name '*.bak' -o -name '*.old' -o -name '*.rej' -o \
|
-name '*~' -o \
|
||||||
-name '.#*' \
|
-name '*.bak' -o \
|
||||||
|
-name '*.old' -o \
|
||||||
|
-name '*.rej' -o \
|
||||||
|
-name '*.orig' -o \
|
||||||
|
-name '.#*' \) \
|
||||||
-exec rm -f {} \;
|
-exec rm -f {} \;
|
||||||
cp $(srcdir)/include/SDL_config.h.minimal $(srcdir)/include/SDL_config.h
|
cp $(srcdir)/include/SDL_config.h.default $(srcdir)/include/SDL_config.h
|
||||||
if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
|
if test -f test/Makefile; then (cd test; $(MAKE) $@); fi
|
||||||
|
|
||||||
dist $(distfile):
|
dist $(distfile):
|
||||||
$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
|
$(SHELL) $(auxdir)/mkinstalldirs $(distdir)
|
||||||
tar cf - $(DIST) | (cd $(distdir); tar xf -)
|
tar cf - $(DIST) | (cd $(distdir); tar xf -)
|
||||||
|
cp $(distdir)/include/SDL_config.h.default $(distdir)/include/SDL_config.h
|
||||||
rm -rf `find $(distdir) -name CVS`
|
rm -rf `find $(distdir) -name CVS`
|
||||||
rm -f `find $(distdir) -name '.cvsignore'`
|
rm -f `find $(distdir) -name '.cvsignore'`
|
||||||
rm -f `find $(distdir) -name '.#*'`
|
rm -f `find $(distdir) -name '.#*'`
|
||||||
|
@ -154,6 +161,7 @@ snapshot:
|
||||||
cvs -d $(CVSROOT) login
|
cvs -d $(CVSROOT) login
|
||||||
cvs -d $(CVSROOT) checkout -P SDL12
|
cvs -d $(CVSROOT) checkout -P SDL12
|
||||||
(cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
|
(cd SDL12 && ./autogen.sh && rm -rf autom4te.cache)
|
||||||
|
cp SDL12/include/SDL_config.h.default SDL12/include/SDL_config.h
|
||||||
mv SDL12 SDL-1.2
|
mv SDL12 SDL-1.2
|
||||||
tar zcf $(HOME)/SDL-1.2.tar.gz SDL-1.2
|
tar zcf $(HOME)/SDL-1.2.tar.gz SDL-1.2
|
||||||
rm -f $(HOME)/SDL-1.2.zip
|
rm -f $(HOME)/SDL-1.2.zip
|
||||||
|
|
|
@ -5,6 +5,7 @@ CFLAGS = -g -O2 $(INCLUDE)
|
||||||
AR = ar
|
AR = ar
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
|
|
||||||
|
CONFIG_H = include/SDL_config.h
|
||||||
TARGET = libSDL.a
|
TARGET = libSDL.a
|
||||||
SOURCES = \
|
SOURCES = \
|
||||||
src/*.c \
|
src/*.c \
|
||||||
|
@ -30,9 +31,12 @@ OBJECTS = $(shell echo $(SOURCES) | sed -e 's,\.c,\.o,g')
|
||||||
|
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(OBJECTS)
|
$(TARGET): $(CONFIG_H) $(OBJECTS)
|
||||||
$(AR) crv $@ $^
|
$(AR) crv $@ $^
|
||||||
$(RANLIB) $@
|
$(RANLIB) $@
|
||||||
|
|
||||||
|
$(CONFIG_H):
|
||||||
|
cp $(CONFIG_H).default $(CONFIG_H)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(TARGET) $(OBJECTS)
|
rm -f $(TARGET) $(OBJECTS)
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
Makefile.in
|
Makefile.in
|
||||||
Makefile
|
Makefile
|
||||||
|
SDL_config.h
|
||||||
|
|
|
@ -39,40 +39,7 @@
|
||||||
#elif defined(__OS2__)
|
#elif defined(__OS2__)
|
||||||
#include "SDL_config_os2.h"
|
#include "SDL_config_os2.h"
|
||||||
#else
|
#else
|
||||||
/* This is the minimal configuration that can be used to build SDL */
|
#include "SDL_config_minimal.h"
|
||||||
|
|
||||||
#include <stdarg.h>
|
|
||||||
|
|
||||||
typedef signed char int8_t;
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
typedef signed short int16_t;
|
|
||||||
typedef unsigned short uint16_t;
|
|
||||||
typedef signed int int32_t;
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
typedef unsigned int size_t;
|
|
||||||
typedef unsigned long uintptr_t;
|
|
||||||
|
|
||||||
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
|
|
||||||
#define SDL_AUDIO_DRIVER_DUMMY 1
|
|
||||||
|
|
||||||
/* Enable the stub cdrom driver (src/cdrom/dummy/\*.c) */
|
|
||||||
#define SDL_CDROM_DISABLED 1
|
|
||||||
|
|
||||||
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
|
|
||||||
#define SDL_JOYSTICK_DISABLED 1
|
|
||||||
|
|
||||||
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
|
|
||||||
#define SDL_LOADSO_DISABLED 1
|
|
||||||
|
|
||||||
/* Enable the stub thread support (src/thread/generic/\*.c) */
|
|
||||||
#define SDL_THREADS_DISABLED 1
|
|
||||||
|
|
||||||
/* Enable the stub timer support (src/timer/dummy/\*.c) */
|
|
||||||
#define SDL_TIMERS_DISABLED 1
|
|
||||||
|
|
||||||
/* Enable the dummy video driver (src/video/dummy/\*.c) */
|
|
||||||
#define SDL_VIDEO_DRIVER_DUMMY 1
|
|
||||||
|
|
||||||
#endif /* platform config */
|
#endif /* platform config */
|
||||||
|
|
||||||
#endif /* _SDL_config_h */
|
#endif /* _SDL_config_h */
|
||||||
|
|
45
include/SDL_config.h.default
Normal file
45
include/SDL_config.h.default
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
/*
|
||||||
|
SDL - Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2006 Sam Lantinga
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Lesser General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2.1 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Lesser General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public
|
||||||
|
License along with this library; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
Sam Lantinga
|
||||||
|
slouken@libsdl.org
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef _SDL_config_h
|
||||||
|
#define _SDL_config_h
|
||||||
|
|
||||||
|
#include "SDL_platform.h"
|
||||||
|
|
||||||
|
/* Add any platform that doesn't build using the configure system */
|
||||||
|
#if defined(__AMIGA__)
|
||||||
|
#include "SDL_config_amiga.h"
|
||||||
|
#elif defined(__DREAMCAST__)
|
||||||
|
#include "SDL_config_dreamcast.h"
|
||||||
|
#elif defined(__MACOS__)
|
||||||
|
#include "SDL_config_macos.h"
|
||||||
|
#elif defined(__MACOSX__)
|
||||||
|
#include "SDL_config_macosx.h"
|
||||||
|
#elif defined(__WIN32__)
|
||||||
|
#include "SDL_config_win32.h"
|
||||||
|
#elif defined(__OS2__)
|
||||||
|
#include "SDL_config_os2.h"
|
||||||
|
#else
|
||||||
|
#include "SDL_config_minimal.h"
|
||||||
|
#endif /* platform config */
|
||||||
|
|
||||||
|
#endif /* _SDL_config_h */
|
|
@ -20,25 +20,9 @@
|
||||||
slouken@libsdl.org
|
slouken@libsdl.org
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SDL_config_h
|
#ifndef _SDL_config_minimal_h
|
||||||
#define _SDL_config_h
|
#define _SDL_config_minimal_h
|
||||||
|
|
||||||
#include "SDL_platform.h"
|
|
||||||
|
|
||||||
/* Add any platform that doesn't build using the configure system */
|
|
||||||
#if defined(__AMIGA__)
|
|
||||||
#include "SDL_config_amiga.h"
|
|
||||||
#elif defined(__DREAMCAST__)
|
|
||||||
#include "SDL_config_dreamcast.h"
|
|
||||||
#elif defined(__MACOS__)
|
|
||||||
#include "SDL_config_macos.h"
|
|
||||||
#elif defined(__MACOSX__)
|
|
||||||
#include "SDL_config_macosx.h"
|
|
||||||
#elif defined(__WIN32__)
|
|
||||||
#include "SDL_config_win32.h"
|
|
||||||
#elif defined(__OS2__)
|
|
||||||
#include "SDL_config_os2.h"
|
|
||||||
#else
|
|
||||||
/* This is the minimal configuration that can be used to build SDL */
|
/* This is the minimal configuration that can be used to build SDL */
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@ -73,6 +57,4 @@ typedef unsigned long uintptr_t;
|
||||||
/* Enable the dummy video driver (src/video/dummy/\*.c) */
|
/* Enable the dummy video driver (src/video/dummy/\*.c) */
|
||||||
#define SDL_VIDEO_DRIVER_DUMMY 1
|
#define SDL_VIDEO_DRIVER_DUMMY 1
|
||||||
|
|
||||||
#endif /* platform config */
|
#endif /* _SDL_config_minimal_h */
|
||||||
|
|
||||||
#endif /* _SDL_config_h */
|
|
Loading…
Add table
Add a link
Reference in a new issue