Skip to content
Browse files

Fixed script on mingw

  • Loading branch information
slouken committed Feb 22, 2006
1 parent 0e970dc commit f4f16766794a2e813afd9341259757fd5f6dcbb2
Showing with 24 additions and 10 deletions.
  1. +24 −10 build-scripts/
@@ -2,11 +2,6 @@
# Generate dependencies from a list of source files

BUILDC="\\\$\\(LIBTOOL\\) --mode=compile \\\$\\(CC\\) \\\$\\(CFLAGS\\) -c \$src -o \\\$@"
BUILDASM="\\\$\\(LIBTOOL\\) --tag=CC --mode=compile \\\$\\(auxdir\\)/ \\\$\\(NASM\\) \$src -o \\\$@"

# Check to make sure our environment variables are set
if test x"$INCLUDE" = x -o x"$SOURCES" = x -o x"$objects" = x -o x"$output" = x; then
echo "SOURCES, INCLUDE, objects, and output needs to be set"
@@ -49,12 +44,31 @@ do echo "Generating dependencies for $src"
obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|$objects/\1.lo|g"`
echo "$obj: $src \\" >>${output}.new
search_deps $src | sort | uniq >>${output}.new
echo "" >>${output}.new
case $ext in
c) eval echo \\" $BUILDC\\" >>${output}.new;;
cc) eval echo \\" $BUILDCC\\" >>${output}.new;;
m) eval echo \\" $BUILDM\\" >>${output}.new;;
asm) eval echo \\" $BUILDASM\\" >>${output}.new;;
c) cat >>${output}.new <<__EOF__
\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src -o \$@
cc) cat >>${output}.new <<__EOF__
\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src -o \$@
m) cat >>${output}.new <<__EOF__
\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src -o \$@
asm) cat >>${output}.new <<__EOF__
\$(LIBTOOL) --tag=CC --mode=compile \$(auxdir)/ \$(NASM) $src -o \$@"
*) echo "Unknown file extension: $ext";;
echo "" >>${output}.new

0 comments on commit f4f1676

Please sign in to comment.