run-make on MSVC: Do not generate object files in the source directory

This commit is contained in:
Vadim Petrochenkov 2017-03-03 03:09:35 +03:00
parent aeadc81ddc
commit 3b454665ea

View File

@ -8,7 +8,7 @@ all: $(call RUN_BINFILE,foo)
ifdef IS_MSVC
$(call RUN_BINFILE,foo): $(call DYLIB,foo)
$(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib -Fe:`cygpath -w $@`
$(CC) $(CFLAGS) foo.c $(TMPDIR)/foo.dll.lib $(call OUT_EXE,foo)
else
$(call RUN_BINFILE,foo): $(call DYLIB,foo)
$(CC) $(CFLAGS) foo.c -lfoo -o $(call RUN_BINFILE,foo) -L $(TMPDIR)