0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

updated for version 7.2.372

Problem:    Cross-compiling GvimExt and xxd doesn't work.
Solution:   Change the build files. (Markus Heidelberg)
This commit is contained in:
Bram Moolenaar
2010-02-24 15:08:27 +01:00
parent 25153e127d
commit 48f80c276b
6 changed files with 23 additions and 18 deletions

View File

@@ -20,17 +20,11 @@ MINGWOLD = no
ifeq ($(CROSS),yes) ifeq ($(CROSS),yes)
DEL = rm DEL = rm
ifeq ($(MINGWOLD),yes) ifeq ($(MINGWOLD),yes)
CXX = i586-mingw32msvc-g++
CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
WINDRES = i586-mingw32msvc-windres
else else
CXX = i386-mingw32msvc-g++
CXXFLAGS := -O2 -mno-cygwin CXXFLAGS := -O2 -mno-cygwin
WINDRES = i386-mingw32msvc-windres
endif endif
else else
CXX := g++
WINDRES := windres
CXXFLAGS := -O2 -mno-cygwin CXXFLAGS := -O2 -mno-cygwin
ifneq (sh.exe, $(SHELL)) ifneq (sh.exe, $(SHELL))
DEL = rm DEL = rm
@@ -38,6 +32,8 @@ else
DEL = del DEL = del
endif endif
endif endif
CXX := $(CROSS_COMPILE)g++
WINDRES := $(CROSS_COMPILE)windres
LIBS := -luuid LIBS := -luuid
RES := gvimext.res RES := gvimext.res
DEFFILE = gvimext_ming.def DEFFILE = gvimext_ming.def

View File

@@ -241,7 +241,7 @@ Use Make_cyg.mak with Cygwin's GCC. See
The Cygnus one many not fully work yet. The Cygnus one many not fully work yet.
With Cygnus gcc you can use the Unix Makefile instead (you need to get the With Cygnus gcc you can use the Unix Makefile instead (you need to get the
Unix archive then). Then you get a Cygwin application (feels like Vim is Unix archive then). Then you get a Cygwin application (feels like Vim is
runnin on Unix), while with Make_cyg.mak you get a Windows application (like running on Unix), while with Make_cyg.mak you get a Windows application (like
with the other makefiles). with the other makefiles).

View File

@@ -1,6 +1,6 @@
# #
# Makefile for VIM on Win32, using Cygnus gcc # Makefile for VIM on Win32, using Cygnus gcc
# Last updated by Dan Sharp. Last Change: 2007 Sep 29 # Last updated by Dan Sharp. Last Change: 2010 Feb 24
# #
# Also read INSTALLpc.txt! # Also read INSTALLpc.txt!
# #
@@ -32,9 +32,12 @@
# OLE no or yes: set to yes to make OLE gvim (no) # OLE no or yes: set to yes to make OLE gvim (no)
# DEBUG no or yes: set to yes if you wish a DEBUGging build (no) # DEBUG no or yes: set to yes if you wish a DEBUGging build (no)
# CPUNR No longer supported, use ARCH. # CPUNR No longer supported, use ARCH.
# ARCH i386 through pentium4: select -march argument to compile with (i386) # ARCH i386 through pentium4: select -march argument to compile with
# (i386)
# USEDLL no or yes: set to yes to use the Runtime library DLL (no) # USEDLL no or yes: set to yes to use the Runtime library DLL (no)
# For USEDLL=yes the cygwin1.dll is required to run Vim. # For USEDLL=yes the cygwin1.dll is required to run Vim.
# "no" does not work with latest version of Cygwin, use
# Make_ming.mak instead. Or set CC to gcc-3.
# POSTSCRIPT no or yes: set to yes for PostScript printing (no) # POSTSCRIPT no or yes: set to yes for PostScript printing (no)
# FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG) # FEATURES TINY, SMALL, NORMAL, BIG or HUGE (BIG)
# WINVER Lowest Win32 version to support. (0x0400) # WINVER Lowest Win32 version to support. (0x0400)
@@ -99,6 +102,7 @@ DEFINES = -DWIN32 -DHAVE_PATHDEF -DFEAT_$(FEATURES) \
INCLUDES = -march=$(ARCH) -Iproto INCLUDES = -march=$(ARCH) -Iproto
#>>>>> name of the compiler and linker, name of lib directory #>>>>> name of the compiler and linker, name of lib directory
CROSS_COMPILE =
CC = gcc CC = gcc
RC = windres RC = windres
@@ -467,10 +471,10 @@ $(EXE): $(OUTDIR) $(OBJ)
$(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS) -luuid -lole32 $(EXTRA_LIBS) $(CC) $(CFLAGS) -o $(EXE) $(OBJ) $(LIBS) -luuid -lole32 $(EXTRA_LIBS)
xxd/xxd.exe: xxd/xxd.c xxd/xxd.exe: xxd/xxd.c
$(MAKE) -C xxd -f Make_cyg.mak USEDLL=$(USEDLL) $(MAKE) -C xxd -f Make_cyg.mak CC=$(CC) USEDLL=$(USEDLL)
GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
$(MAKE) -C GvimExt -f Make_ming.mak $(MAKE) -C GvimExt -f Make_ming.mak CROSS_COMPILE=$(CROSS_COMPILE)
vimrun.exe: vimrun.c vimrun.exe: vimrun.c
$(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIBS) $(CC) $(CFLAGS) -o vimrun.exe vimrun.c $(LIBS)

View File

@@ -241,15 +241,15 @@ DEF_GUI=-DFEAT_GUI_W32 -DFEAT_CLIPBOARD
DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \ DEFINES=-DWIN32 -DWINVER=$(WINVER) -D_WIN32_WINNT=$(WINVER) \
-DHAVE_PATHDEF -DFEAT_$(FEATURES) -DHAVE_PATHDEF -DFEAT_$(FEATURES)
ifeq ($(CROSS),yes) ifeq ($(CROSS),yes)
# cross-compiler: # cross-compiler prefix:
CC = i586-pc-mingw32msvc-gcc CROSS_COMPILE = i586-pc-mingw32msvc-
DEL = rm DEL = rm
MKDIR = mkdir -p MKDIR = mkdir -p
WINDRES = i586-pc-mingw32msvc-windres DIRSLASH = /
else else
# normal (Windows) compilation: # normal (Windows) compilation:
CC = gcc
ifneq (sh.exe, $(SHELL)) ifneq (sh.exe, $(SHELL))
CROSS_COMPILE =
DEL = rm DEL = rm
MKDIR = mkdir -p MKDIR = mkdir -p
DIRSLASH = / DIRSLASH = /
@@ -258,8 +258,9 @@ DEL = del
MKDIR = mkdir MKDIR = mkdir
DIRSLASH = \\ DIRSLASH = \\
endif endif
WINDRES = windres
endif endif
CC := $(CROSS_COMPILE)gcc
WINDRES := $(CROSS_COMPILE)windres
#>>>>> end of choices #>>>>> end of choices
########################################################################### ###########################################################################
@@ -549,10 +550,11 @@ upx: exes
upx vim.exe upx vim.exe
xxd/xxd.exe: xxd/xxd.c xxd/xxd.exe: xxd/xxd.c
$(MAKE) -C xxd -f Make_cyg.mak $(MAKE) -C xxd -f Make_cyg.mak CC=$(CC)
GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h GvimExt/gvimext.dll: GvimExt/gvimext.cpp GvimExt/gvimext.rc GvimExt/gvimext.h
$(MAKE) -C GvimExt -f Make_ming.mak $(MAKE) -C GvimExt -f Make_ming.mak
$(MAKE) -C GvimExt -f Make_ming.mak CROSS=$(CROSS) CROSS_COMPILE=$(CROSS_COMPILE)
clean: clean:
-$(DEL) $(OUTDIR)$(DIRSLASH)*.o -$(DEL) $(OUTDIR)$(DIRSLASH)*.o

View File

@@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
372,
/**/ /**/
371, 371,
/**/ /**/

View File

@@ -12,6 +12,7 @@ DEFINES = -mno-cygwin
LIBS = LIBS =
endif endif
CC = gcc
CFLAGS = -O2 -Wall -DWIN32 $(DEFINES) CFLAGS = -O2 -Wall -DWIN32 $(DEFINES)
ifneq (sh.exe, $(SHELL)) ifneq (sh.exe, $(SHELL))
@@ -21,7 +22,7 @@ DEL = del
endif endif
xxd.exe: xxd.c xxd.exe: xxd.c
gcc $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS) $(CC) $(CFLAGS) -s -o xxd.exe xxd.c $(LIBS)
clean: clean:
-$(DEL) xxd.exe -$(DEL) xxd.exe