Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dll
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4739 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 24, 2006
1 parent 3a28895 commit 10c7def
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions src/providers/grass/Makefile.win
@@ -1,21 +1,44 @@
QGTOP=../../../

LDADD = .libs/libqgisgrass.a $(PLUGIN_LIBS) $(GRASS_LIB)

OBJECTS = grassprovider_la-provider.o

GRASS_DLL = .libs/qgis_grass.dll

PROVIDER = .libs/grassprovider.dll

all: objects $(PROVIDER)
all: objects $(GRASS_DLL) $(PROVIDER)

objects:
$(MAKE) -f Makefile

$(GRASS_DLL):
$(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) \
$(GRASS_LIB) \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@

$(PROVIDER): $(OBJECTS)
$(CXX) -shared -o $@ $(OBJECTS) $(LDADD)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive grassprovider_la-provider.o \
-Wl,--no-whole-archive \
.libs/libqgisgrass.a \
$(CORE_A) $(GUI_A) $(CORE_A) \
$(GRASS_LIB) \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@

install: all
$(INSTALL) -m 755 $(GRASS_DLL) $(prefix)/bin/qgis_grass.dll
$(INSTALL) -m 755 $(PROVIDER) $(prefix)/lib/qgis/grassprovider.dll

include ../../../Makefile.win.rules

0 comments on commit 10c7def

Please sign in to comment.