Skip to content

Commit

Permalink
Makefiles for MinGW
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4667 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Jan 12, 2006
1 parent d7b3e2a commit 60588a0
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.win
@@ -0,0 +1,7 @@
WINSUBDIRS = src src/providers/ogr

all: winsubdirs

install: instsubdirs

include ./Makefile.win.rules
56 changes: 56 additions & 0 deletions Makefile.win.rules.in
@@ -0,0 +1,56 @@
CXX = @CXX@
STRIP = @STRIP@
INSTALL = @INSTALL@
prefix = @prefix@

QT_LDADD = @QT_LDADD@

GDAL_LDADD = @GDAL_LDADD@
GEOS_LDADD = @GEOS_LDADD@
GRASS_LIB = @GRASS_LIB@
PROJ_LIB = @PROJ_LIB@

# The order is significant
QGLIBS = $(QGTOP)/src/raster/.libs/libqgis_raster.a \
$(QGTOP)/src/composer/.libs/libqgis_composer.a \
$(QGTOP)/src/widgets/projectionselector/.libs/libqgsprojectionselector.a \
$(QGTOP)/src/core/.libs/libqgis_core.a \
$(QGTOP)/src/legend/.libs/libqgis_legend.a \
$(QGTOP)/src/gui/.libs/libqgis_gui.a

# For qgis.exe the QGIS libs must be twice because of circular references
QGIS_LIBS = $(QGLIBS) $(QGLIBS) \
$(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) \
-lproj -lsqlite3 \
$(QT_LDADD) -lwsock32

# And for plugins even 3 times (maybe it would be possible to save
# something changing the order?)
PLUGIN_LIBS = $(QGLIBS) $(QGLIBS) $(QGLIBS) \
$(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) \
-lproj -lsqlite3 \
$(QT_LDADD) -lwsock32

# Rule for subdirs using standard build system (make -f Makefile)
stdsubdirs:
@list='$(STDSUBDIRS)'; \
for subdir in $$list; do \
echo $$subdir ; \
$(MAKE) -C $$subdir ; \
done

# Rule for subdirs using standard win system (make -f Makefile.win)
winsubdirs:
@list='$(WINSUBDIRS)'; \
for subdir in $$list; do \
echo $$subdir ; \
$(MAKE) -C $$subdir -f Makefile.win ; \
done

# Rule instalation (using WINSUBDIRS)
instsubdirs:
@list='$(WINSUBDIRS)'; \
for subdir in $$list; do \
echo $$subdir ; \
$(MAKE) -C $$subdir -f Makefile.win install ; \
done

0 comments on commit 60588a0

Please sign in to comment.