Fixed script on mingw
authorSam Lantinga
Wed, 22 Feb 2006 04:44:33 +0000
changeset 1416a4c05c115bb7
parent 1415 a30f8553eeb1
child 1417 24fbbedd2ad6
Fixed script on mingw
build-scripts/makedep.sh
     1.1 --- a/build-scripts/makedep.sh	Wed Feb 22 00:33:10 2006 +0000
     1.2 +++ b/build-scripts/makedep.sh	Wed Feb 22 04:44:33 2006 +0000
     1.3 @@ -2,11 +2,6 @@
     1.4  #
     1.5  # Generate dependencies from a list of source files
     1.6  
     1.7 -BUILDC="\\\$\\(LIBTOOL\\) --mode=compile \\\$\\(CC\\) \\\$\\(CFLAGS\\) -c \$src  -o \\\$@"
     1.8 -BUILDCC=$BUILDC
     1.9 -BUILDM=$BUILDC
    1.10 -BUILDASM="\\\$\\(LIBTOOL\\) --tag=CC --mode=compile \\\$\\(auxdir\\)/strip_fPIC.sh \\\$\\(NASM\\) \$src -o \\\$@"
    1.11 -
    1.12  # Check to make sure our environment variables are set
    1.13  if test x"$INCLUDE" = x -o x"$SOURCES" = x -o x"$objects" = x -o x"$output" = x; then
    1.14      echo "SOURCES, INCLUDE, objects, and output needs to be set"
    1.15 @@ -49,12 +44,31 @@
    1.16      obj=`echo $src | sed "s|^.*/\([^ ]*\)\..*|$objects/\1.lo|g"`
    1.17      echo "$obj: $src \\" >>${output}.new
    1.18      search_deps $src | sort | uniq >>${output}.new
    1.19 -    echo "" >>${output}.new
    1.20      case $ext in
    1.21 -        c)   eval echo \\"	$BUILDC\\" >>${output}.new;;
    1.22 -        cc)  eval echo \\"	$BUILDCC\\" >>${output}.new;;
    1.23 -        m)   eval echo \\"	$BUILDM\\" >>${output}.new;;
    1.24 -        asm) eval echo \\"	$BUILDASM\\" >>${output}.new;;
    1.25 +        c) cat >>${output}.new <<__EOF__
    1.26 +
    1.27 +	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src  -o \$@
    1.28 +
    1.29 +__EOF__
    1.30 +        ;;
    1.31 +        cc) cat >>${output}.new <<__EOF__
    1.32 +
    1.33 +	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src  -o \$@
    1.34 +
    1.35 +__EOF__
    1.36 +        ;;
    1.37 +        m) cat >>${output}.new <<__EOF__
    1.38 +
    1.39 +	\$(LIBTOOL) --mode=compile \$(CC) \$(CFLAGS) -c $src  -o \$@
    1.40 +
    1.41 +__EOF__
    1.42 +        ;;
    1.43 +        asm) cat >>${output}.new <<__EOF__
    1.44 +
    1.45 +	\$(LIBTOOL) --tag=CC --mode=compile \$(auxdir)/strip_fPIC.sh \$(NASM) $src -o \$@"
    1.46 +
    1.47 +__EOF__
    1.48 +        ;;
    1.49          *)   echo "Unknown file extension: $ext";;
    1.50      esac
    1.51      echo "" >>${output}.new