annotate src/GvimExt/Make_ming.mak @ 10:4e2284e71352

updated for version 7.0002
author vimboss
date Thu, 24 Jun 2004 15:53:16 +0000
parents
children bdeee1504ac1
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)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
21 ifeq ($(MINGWOLD),yes)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
22 CXX = i586-mingw32msvc-g++
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
23 CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
24 WINDRES = i586-mingw32msvc-windres
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
25 else
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
26 CXX = i386-mingw32msvc-g++
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
27 CXXFLAGS := -O2 -mno-cygwin
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
28 WINDRES = i386-mingw32msvc-windres
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
29 endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
30 else
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
31 CXX := g++.exe
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
32 WINDRES := windres.exe
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
33 CXXFLAGS := -O2 -mno-cygwin
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
34 endif
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
35 LIBS := -luuid
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
36 RES := gvimext.res
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
37 DEFFILE = gvimext_ming.def
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
38 OBJ := gvimext.o
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
39
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
40 DLL := gvimext.dll
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
41
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
42 .PHONY: all all-before all-after clean clean-custom
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
43
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
44 all: all-before $(DLL) all-after
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
45
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
46 $(DLL): $(OBJ) $(RES) $(DEFFILE)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
47 $(CXX) -shared $(CXXFLAGS) -s -o $@ \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
48 -Wl,--enable-auto-image-base \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
49 -Wl,--enable-auto-import \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
50 -Wl,--whole-archive \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
51 $^ \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
52 -Wl,--no-whole-archive \
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
53 $(LIBS)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
54
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
55 gvimext.o: gvimext.cpp
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
56 $(CXX) $(CXXFLAGS) -DFEAT_GETTEXT -c $? -o $@
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
57
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
58 $(RES): gvimext_ming.rc
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
59 $(WINDRES) --input-format=rc --output-format=coff -DMING $? -o $@
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
60
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
61 clean: clean-custom
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
62 $(RM) $(OBJ) $(RES) $(DLL)
4e2284e71352 updated for version 7.0002
vimboss
parents:
diff changeset
63