# Copyright (C) 2002 AMPL Optimization LLC.
# All Rights Reserved.
# 
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose and without fee is hereby granted,
# provided that the above copyright notice appear in all copies and that
# both that the copyright notice and this permission notice and warranty
# disclaimer appear in supporting documentation.
# 
# AMPL Optimization LLC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
# FITNESS.  IN NO EVENT SHALL AMPL Optimization LLC BE LIABLE FOR ANY
# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
# RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
# CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

# For making sw.exe with Microsoft Visual C++
# Known to work with MSVC++ 6.0.

CC = cl -nologo
#Z = -Zi
Z =
### use "Z = -Zi" for debugging
CFLAGS = -MT $Z

.c.obj:
	$(CC) -c $(CFLAGS) $*.c
.rc.res:
	rc $*.rc

sw.exe: sw.obj sw.res
	$(CC) $Z sw.obj user32.lib gdi32.lib sw.res
