/
Makefile.win
47 lines (38 loc) · 1.09 KB
/
Makefile.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
QGTOP=../../../
OBJECTS = grassprovider_la-provider.o
GRASS_DLL = .libs/qgis_grass.dll
PROVIDER = .libs/grassprovider.dll
all: objects $(GRASS_DLL) $(PROVIDER)
objects:
$(MAKE) -f Makefile
$(GRASS_DLL): .libs/libqgisgrass.a
$(CXX) -shared -o $(GRASS_DLL) \
-Wl,--out-implib=.libs/libqgis_grass.dll.a \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive .libs/libqgisgrass.a \
-Wl,--no-whole-archive \
$(CORE_A) $(GUI_A) $(CORE_A) \
-lgeos \
$(GRASS_LIB) \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@
$(PROVIDER): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive grassprovider_la-provider.o \
-Wl,--no-whole-archive \
-L .libs/ -lqgis_grass \
.libs/libqgisgrass.a \
$(CORE_DLL) $(GUI_DLL) $(CORE_DLL) \
$(GRASS_LIB) \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@
install: all
mkdir -p $(prefix)/lib/qgis/
$(INSTALL) -m 755 $(GRASS_DLL) $(DLLDIR)/qgis_grass.dll
$(INSTALL) -m 755 $(PROVIDER) $(prefix)/lib/qgis/grassprovider.dll
include $(QGTOP)/Makefile.win.rules