--- visualc.mk	Mon Feb 27 14:39:44 2023
+++ c:/usr/work/edrive/w64texsrc/ktx/libs/freetype/builds/compiler/visualc.mk	Sun Jun 25 07:41:24 2023
@@ -16,7 +16,7 @@
 # compiler command line name
 #
 CC           := cl
-COMPILER_SEP := $(SEP)
+COMPILER_SEP := /
 
 
 # The object file extension (for standard and static libraries).  This can be
@@ -36,47 +36,54 @@
 # Path inclusion flag.  Some compilers use a different flag than `-I' to
 # specify an additional include path.  Examples are `/i=' or `-J'.
 #
-I := /I
+I := -I
 
 
 # C flag used to define a macro before the compilation of a given source
 # object.  Usually it is `-D' like in `-DDEBUG'.
 #
-D := /D
+D := -D
 
 
 # The link flag used to specify a given library file on link.  Note that
 # this is only used to compile the demo programs, not the library itself.
 #
-L := /Fl
+L := -Fl
 
 
 # Target flag.
 #
-T := /Fo
+T := -Fo
 
 # Target executable flag
 #
-TE := /Fe
+TE := -Fe
 
 # C flags
 #
 #   These should concern: debug output, optimization & warnings.
 #
-#   Use the ANSIFLAGS variable to define the compiler flags used to enforce
+#   Use the ANSIFLAGS variable to define the compiler flags used to enfore
 #   ANSI compliance.
 #
-CFLAGS ?= /nologo /c /Ox /W3 /WX
+
+#CFLAGS ?= -nologo -c -O2 -MT -wd4819 -W2 -DWIN32=1
+
+#CFLAGS ?= -nologo -c -O2 -MD -wd4819 -W2 -DWIN32=1
+
+#CFLAGS ?= -nologo -c -O2 -MT -favor:blend -wd4819 -W2 -DWIN32=1
+
+CFLAGS ?= -nologo -c -O2 -MD -favor:blend -wd4819 -W2 -DWIN32=1
 
 # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
 #
-ANSIFLAGS ?= /Za /D_CRT_SECURE_NO_DEPRECATE
+ANSIFLAGS := -Za -D_CRT_SECURE_NO_DEPRECATE
 
 
 # Library linking
 #
 #CLEAN_LIBRARY =
-LINK_LIBRARY  = lib /nologo /out:$(subst /,$(COMPILER_SEP),$@ $(OBJECTS_LIST))
+LINK_LIBRARY  = lib -nologo -out:$(subst /,$(COMPILER_SEP),$@ $(OBJECTS_LIST))
 
 
 # EOF
