mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
Create a simple Makefile when building outside the source tree (Needs improvement, but works well enough in most cases)
svn-id: r12972
This commit is contained in:
parent
9119fc440f
commit
24e5059aec
18
configure
vendored
18
configure
vendored
@ -843,3 +843,21 @@ OBJS += $OBJS
|
||||
DEFINES += $DEFINES
|
||||
LDFLAGS += $LDFLAGS
|
||||
EOF
|
||||
|
||||
#
|
||||
# Create a custom Makefile when building outside the source tree
|
||||
# TODO: Add a better check than just looking for 'Makefile'
|
||||
#
|
||||
if test ! -f Makefile ; then
|
||||
_srcdir=`dirname $0`
|
||||
echo "Creating Makefile"
|
||||
|
||||
cat > Makefile << EOF
|
||||
# -------- Generated by configure -----------
|
||||
srcdir = $_srcdir
|
||||
vpath %.cpp \$(srcdir)
|
||||
vpath %.h \$(srcdir)
|
||||
include \$(srcdir)/Makefile
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user