Skip to content

Commit

Permalink
mingw
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4833 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 14, 2006
1 parent 54a01aa commit bf300dd
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/providers/ogr/Makefile.win
Expand Up @@ -4,16 +4,27 @@ LDADD = $(PLUGIN_LIBS)

OBJECTS = ogrprovider_la-qgsogrprovider.o

all: objects .libs/ogrprovider.dll
PROVIDER = .libs/ogrprovider.dll

all: objects $(PROVIDER)

objects:
$(MAKE) -f Makefile ogrprovider_la-qgsogrprovider.o
$(MAKE) -f Makefile

.libs/ogrprovider.dll: $(OBJECTS)
$(CXX) -shared -o $@ $(OBJECTS) $(LDADD)
$(PROVIDER): $(OBJECTS)
$(CXX) -shared -o $@ \
-Wl,--export-all-symbols \
-Wl,--enable-auto-import \
-Wl,--whole-archive ogrprovider_la-qgsogrprovider.o \
-Wl,--no-whole-archive \
$(CORE_A) $(GUI_A) $(CORE_A) \
-lgdal -lgeos \
$(QT_LDADD) \
-lwsock32 -lmingw32
$(STRIP) $@

install: all
mkdir -p $(prefix)/lib/qgis/
$(INSTALL) -m 755 .libs/ogrprovider.dll $(prefix)/lib/qgis/ogrprovider.dll

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

0 comments on commit bf300dd

Please sign in to comment.