Makefiles for MinGW

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4667 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
rblazek 2006-01-12 15:39:25 +00:00
parent ea91fee174
commit 57b6319703
2 changed files with 63 additions and 0 deletions

7
Makefile.win Normal file
View File

@ -0,0 +1,7 @@
WINSUBDIRS = src src/providers/ogr
all: winsubdirs
install: instsubdirs
include ./Makefile.win.rules

56
Makefile.win.rules.in Normal file
View File

@ -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