This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Cygwin, GNU make and VC++ ?


For what its worth, this is the script I use:

#! /bin/sh
#
# Wrapper script for the Microsoft Visual C++ compiler (cl) to allow it to
work with Cygwin based makefiles.

cmd="/c/Program\ Files/Microsoft\ Visual\ Studio/VC98/Bin/cl"

for option
do
    case $option in
    -I/*)
        path=`expr $option : '-I/\(.*\\)'`
        cmd="$cmd -IC:/cygwin/$path"
    ;;
    /*)
        path=`expr $option : '/\(.*\\)'`
        cmd="$cmd C:/cygwin/$path"
    ;;
    *)
        cmd="$cmd $option"
    ;;
    esac
done

echo $cmd
eval $cmd


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]