Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

gdev: minor fixes to configure

  • Loading branch information...
commit 30b3f7b3307444d0e524facea6154037780851f4 1 parent 89f0d46
Shinpei Kato authored
Showing with 13 additions and 2 deletions.
  1. +13 −2 lib/configure
View
15 lib/configure
@@ -36,9 +36,18 @@ elif [ $target = 'user' ] ; then
if [ $(echo ${#driver}) -eq 0 ] ; then
# detect which driver to be used
sh ./autogen.sh
- . ./Driver.mk
else
- DRIVER_NAME=$driver
+ # create Driver.mk
+ cat > Driver.mk << EOF
+#
+# Copyright (C) Shinpei Kato
+# All Rights Reserved
+#
+# This is automatically generated by autogen.sh script.
+#
+
+DRIVER_NAME=$driver
+EOF
DRIVER=$(echo $driver | tr "a-z" "A-Z")
# create gdev_autogen.h
cat > gdev_autogen.h << EOF
@@ -53,6 +62,8 @@ elif [ $target = 'user' ] ; then
#define GDEV_DRIVER_$DRIVER
EOF
fi
+ # include $DRIVER_NAME
+ . ./Driver.mk
# copy driver-dependent files
cp -f ../user/$DRIVER_NAME/* .
else
Please sign in to comment.
Something went wrong with that request. Please try again.