#
# This file is intended for platform-specific things ONLY.  DO NOT put
# stuff that applies to all platforms in here!
#
CC = $(MSC)bin/cl.exe
RCS = $(MSC)bin/rc.exe
CS = $(MSCS)/csc.exe

module = $(subst $(fs),$(bs),$(MODULE))

ifeq ($(module),cslib)
 CFLAGS = -warn:"4"
 OFILE = -out:"$(BINDIR)$@"
else

INCDIR = $(subst i",-I",$(incdir)) -I"$(MSC)include" -I"$(MSC)MFC/include" -I"$(MSC)PlatformSDK/include" -I"$(NETWARE)include"
ifeq ($(module),util)
 CFLAGS = -nologo -ML -W3 -GX -O2 -YX -c
 PFLAGS = $(subst d",-D",$(preprocessor)) -D"_WINDOWS" -D"WIN32" -D"_X86_" -D"MS_CPP_6" -D"SECURITY_WIN32" -D"CONSOLE"
# PFLAGS = $(subst d",-D",$(preprocessor)) -D"WIN32" -D"NDEBUG" -D"_MBCS" -D"CONSOLE" -D"MS_CPP_6"
# RCFLAGS = $(subst l",-L",$(preprocessor)) -L "0x409" -D"NDEBUG" /fo"Release/$(TARGET).res" 
 RCFLAGS =
# OFILE = -Fp"./Release/$(TARGET).pch" -Fo"./Release/" -Fd"./Release/"
 CPPFLAGS = -c -nologo -FD -W3 $(XTRA_CFLAGS) -D"c_plusplus" -D"_USRDLL" -D"_WINDLL" -D"_WIN32_WINNT=0x0400" -D"_MBCS"
 OFILE = -Fo"$(OBJDIR)$@"
 LINK = $(MSC)bin/link.exe @$(LINKDEF)
else
 CFLAGS = -nologo -c -W3 -Zp1 $(XTRA_CFLAGS)
 PFLAGS = $(subst d",-D",$(preprocessor)) -D"_WINDOWS" -D"WIN32" -D"_X86_" -D"MS_CPP_6" -D"SECURITY_WIN32"
 RCFLAGS =
 CPPFLAGS = -c -nologo -FD -W3 $(XTRA_CFLAGS) -D"c_plusplus" -D"_USRDLL" -D"_WINDLL" -D"_WIN32_WINNT=0x0400" -D"_MBCS"
 OFILE = -Fo"$(OBJDIR)$@"
 SDK_LIBRARIAN = $(MSC)bin/lib /out:$(LIBDIR)$(SDK_LIB_NAME)
 LINK = $(MSC)bin/link.exe @$(LINKDEF)
endif
endif