aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common2
-rw-r--r--Makefile.new3
-rwxr-xr-xconfigure17
3 files changed, 16 insertions, 6 deletions
diff --git a/Makefile.common b/Makefile.common
index 5a596dea58..e6d08c648d 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -98,4 +98,4 @@ DEPFILES = $(wildcard $(addsuffix /*.d,$(DEPDIRS)))
distclean: clean
$(RM_REC) $(DEPDIRS)
- $(RM) build.rules config.h
+ $(RM) build.rules config.h config.mak
diff --git a/Makefile.new b/Makefile.new
index 1dddcbbcdd..02ebfabf36 100644
--- a/Makefile.new
+++ b/Makefile.new
@@ -44,9 +44,8 @@ dist:
$(RM) $(ZIPFILE)
$(ZIP) $(ZIPFILE) $(DISTFILES)
-# Until we add a nice configure tool, default to the SDL build rules
build.rules:
- $(CP) backends/sdl/build.rules build.rules
+ $(CP) backends/$(BACKEND)/build.rules build.rules
deb:
ln -sf dists/debian;
diff --git a/configure b/configure
index c163a368b3..01fc1ee054 100755
--- a/configure
+++ b/configure
@@ -30,8 +30,10 @@ _build_scumm=yes
_build_simon=yes
_build_sky=yes
_need_memalign=no
-# binary names
+# more defaults
+_backend=sdl
_ranlib=ranlib
+_sdlconfig=sdl-config
cc_check() {
echo >> "$TMPLOG"
@@ -126,6 +128,7 @@ Usage: $0 [OPTIONS]...
Configuration:
-h, --help display this help and exit
+ --backend=BACKEND backend to build (sdl, x11, morphos, dc, gp32) [sdl]
Optional Features:
--disable-scumm don't build the SCUMM engine
@@ -142,8 +145,8 @@ EOF
fi
done # for parm in ...
-for x in $@; do
- case $x in
+for ac_option in $@; do
+ case "$ac_option" in
--disable-scumm) _build_scumm=no ;;
--disable-simon) _build_simon=no ;;
--disable-sky) _build_sky=no ;;
@@ -153,6 +156,10 @@ for x in $@; do
--disable-vorbis) _vorbis=no ;;
--enable-mad) _mad=yes ;;
--disable-mad) _mad=no ;;
+
+ --backend=*)
+ _backend=`echo $ac_option | cut -d '=' -f 2`
+ ;;
esac;
done;
@@ -351,6 +358,9 @@ if test "$_build_sky" = yes ; then
fi
echo
+echo -n "Backend... "
+echo "$_backend"
+echo
echo "Creating config.h"
cat > config.h << EOF
@@ -394,5 +404,6 @@ cat > config.mak << EOF
CXX := $CXX
LIBS := $LIBS
RANLIB := $_ranlib
+BACKEND := $_backend
EOF