summaryrefslogtreecommitdiff
path: root/src/Make_cyg_ming.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-10-14 16:25:10 +0200
committerBram Moolenaar <Bram@vim.org>2018-10-14 16:25:10 +0200
commita16bc5450359294f9d8585da9f74e5082108b7fb (patch)
tree259d512979838ec473074e7a3cc8ad3709a0e668 /src/Make_cyg_ming.mak
parentd6105cb4085ad166910897a640693d3bada603e1 (diff)
downloadvim-git-a16bc5450359294f9d8585da9f74e5082108b7fb.tar.gz
patch 8.1.0474: directory where if_perl.c is written is inconsistentv8.1.0474
Problem: Directory where if_perl.c is written is inconsistent. Solution: use auto/if_perl.c for MS-Windows. (Ken Takata, closes #3540)
Diffstat (limited to 'src/Make_cyg_ming.mak')
-rw-r--r--src/Make_cyg_ming.mak7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Make_cyg_ming.mak b/src/Make_cyg_ming.mak
index f3819517e..65a1fbfa3 100644
--- a/src/Make_cyg_ming.mak
+++ b/src/Make_cyg_ming.mak
@@ -985,6 +985,7 @@ clean:
-$(DEL) pathdef.c
ifdef PERL
-$(DEL) if_perl.c
+ -$(DEL) auto$(DIRSLASH)if_perl.c
endif
ifdef MZSCHEME
-$(DEL) mzscheme_base.c
@@ -1043,10 +1044,14 @@ mzscheme_base.c:
$(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) if_ole.h
$(CC) $(CFLAGS) $(CXXFLAGS) -c -o $(OUTDIR)/if_ole.o if_ole.cpp
-if_perl.c: if_perl.xs typemap
+auto/if_perl.c: if_perl.xs typemap
$(XSUBPP) -prototypes -typemap \
$(PERLTYPEMAP) if_perl.xs -output $@
+$(OUTDIR)/if_perl.o: auto/if_perl.c $(INCL)
+ $(CC) -c $(CFLAGS) auto/if_perl.c -o $(OUTDIR)/if_perl.o
+
+
$(OUTDIR)/if_ruby.o: if_ruby.c $(INCL)
ifeq (16, $(RUBY))
$(CC) $(CFLAGS) -U_WIN32 -c -o $(OUTDIR)/if_ruby.o if_ruby.c