Skip to content

Commit

Permalink
gdev: minor fixes to configure
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinpei Kato committed Mar 31, 2012
1 parent 9372c5f commit 1008090
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lib/configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1008090

Please sign in to comment.