annotate src/GvimExt/Make_ming.mak @ 340:210108b60fbb

updated for version 7.0088
author vimboss
date Sun, 19 Jun 2005 22:50:11 +0000
parents e1a8191c6768
children 4ec11bb387a5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
1 # Project: gvimext
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
2 # Generates gvimext.dll with gcc.
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
3 # Can be used for Cygwin and MingW (MingW ignores -mno-cygwin)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
4 #
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
5 # Originally, the DLL base address was fixed: -Wl,--image-base=0x1C000000
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
6 # Now it is allocated dymanically by the linker by evaluating all DLLs
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
7 # already loaded in memory. The binary image contains as well information
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
8 # for automatic pseudo-rebasing, if needed by the system. ALV 2004-02-29
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
9
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
10 # If cross-compiling set this to yes, else set it to no
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
11 CROSS = no
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
12 #CROSS = yes
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
13 # For the old MinGW 2.95 (the one you get e.g. with debian woody)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
14 # set the following variable to yes and check if the executables are
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
15 # really named that way.
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
16 # If you have a newer MinGW or you are using cygwin set it to no and
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
17 # check also the executables
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
18 MINGWOLD = no
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
19
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
20 ifeq ($(CROSS),yes)
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
21 DEL = rm
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
22 ifeq ($(MINGWOLD),yes)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
23 CXX = i586-mingw32msvc-g++
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
24 CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
25 WINDRES = i586-mingw32msvc-windres
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
26 else
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
27 CXX = i386-mingw32msvc-g++
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
28 CXXFLAGS := -O2 -mno-cygwin
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
29 WINDRES = i386-mingw32msvc-windres
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
30 endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
31 else
12
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 10
diff changeset
32 CXX := g++
bdeee1504ac1 updated for version 7.0004
vimboss
parents: 10
diff changeset
33 WINDRES := windres
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
34 CXXFLAGS := -O2 -mno-cygwin
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
35 ifneq (sh.exe, $(SHELL))
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
36 DEL = rm
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
37 else
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
38 DEL = del
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
39 endif
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
40 endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
41 LIBS := -luuid
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
42 RES := gvimext.res
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
43 DEFFILE = gvimext_ming.def
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
44 OBJ := gvimext.o
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
45
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
46 DLL := gvimext.dll
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
47
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
48 .PHONY: all all-before all-after clean clean-custom
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
49
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
50 all: all-before $(DLL) all-after
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
51
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
52 $(DLL): $(OBJ) $(RES) $(DEFFILE)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
53 $(CXX) -shared $(CXXFLAGS) -s -o $@ \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
54 -Wl,--enable-auto-image-base \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
55 -Wl,--enable-auto-import \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
56 -Wl,--whole-archive \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
57 $^ \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
58 -Wl,--no-whole-archive \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
59 $(LIBS)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
60
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
61 gvimext.o: gvimext.cpp
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
62 $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
63
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
64 $(RES): gvimext_ming.rc
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
65 $(WINDRES) --input-format=rc --output-format=coff -DMING $? -o $@
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
66
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
67 clean: clean-custom
89
e1a8191c6768 updated for version 7.0036
vimboss
parents: 12
diff changeset
68 -$(DEL) $(OBJ) $(RES) $(DLL)
10
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
69