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
1 changed files with 1 additions and 1 deletions

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)