/[pkg-grass]/packages/qgis/trunk/Makefile.win.rules.in
ViewVC logotype

Contents of /packages/qgis/trunk/Makefile.win.rules.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 701 - (show annotations) (download)
Wed Apr 4 13:39:42 2007 UTC (6 years, 1 month ago) by frankie
File size: 2613 byte(s)
First round for 0.8
1 MAJOR_VERSION = @MAJOR_VERSION@
2 MICRO_VERSION = @MICRO_VERSION@
3 MINOR_VERSION = @MINOR_VERSION@
4
5 CXX = @CXX@
6 LDFLAGS = @LDFLAGS@
7 STRIP = @STRIP@
8 INSTALL = @INSTALL@
9 prefix = @prefix@
10
11 BINDIR = $(prefix)
12 DLLDIR = $(prefix)
13
14 QT_LDADD = @QT_LDADD@
15
16 GDAL_LDADD = @GDAL_LDADD@
17 #GDAL_LDADD = -lgdal
18 GEOS_LDADD = @GEOS_LDADD@
19 GRASS_BASE = @GRASS_BASE@
20 GRASS_LIB = @GRASS_LIB@
21 PROJ_LIB = @PROJ_LIB@
22
23 PG_LIB = @PG_LIB@
24 PG_INC = @PG_INC@
25
26 RASTER_A = $(QGTOP)/src/raster/.libs/libqgis_raster.a
27 COMPOSER_A = $(QGTOP)/src/composer/.libs/libqgis_composer.a
28 PROJSEL_A = $(QGTOP)/src/widgets/projectionselector/.libs/libqgsprojectionselector.a
29 CORE_A = $(QGTOP)/src/core/.libs/libqgis_core.a
30 LEGEND_A = $(QGTOP)/src/legend/.libs/libqgis_legend.a
31 GUI_A = $(QGTOP)/src/gui/.libs/libqgis_gui.a
32
33 RASTER_DLL = -L $(QGTOP)/src/raster/ -lqgis_raster
34 COMPOSER_DLL = -L $(QGTOP)/src/composer/ -lqgis_composer
35 PROJSEL_DLL = -L $(QGTOP)/src/widgets/projectionselector/ -lqgis_projsel.dll
36 CORE_DLL = -L $(QGTOP)/src/core/ -lqgis_core
37 LEGEND_DLL = -L $(QGTOP)/src/legend/ -lqgis_legend
38 GUI_DLL = -L $(QGTOP)/src/gui -lqgis_gui
39
40 # The order is significant
41 QGLIBS = $(RASTER_A) $(COMPOSER_A) $(PROJSEL_A) $(CORE_A) $(LEGEND_A) $(GUI_A)
42
43 # For qgis.exe the QGIS libs must be twice because of circular references
44 QGIS_LIBS = $(QGLIBS) $(QGLIBS) \
45 $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) \
46 -lproj -lsqlite3 \
47 $(QT_LDADD) -lwsock32
48
49 # And for plugins even 3 times (maybe it would be possible to save
50 # something changing the order?)
51 PLUGIN_LIBS = $(GUI_DLL) $(RASTER_DLL) $(LEGEND_DLL) \
52 $(COMPOSER_DLL) $(PROJSEL_DLL) \
53 $(GDAL_LDADD) $(PG_LIB) $(GEOS_LDADD) \
54 -lproj -lsqlite3 \
55 $(QT_LDADD) -lwsock32
56
57 # Rule for subdirs using standard build system (make -f Makefile)
58 stdsubdirs:
59 @list='$(STDSUBDIRS)'; \
60 for subdir in $$list; do \
61 echo $$subdir ; \
62 $(MAKE) -C $$subdir || exit 1 ; \
63 done
64
65 # Rule for subdirs using standard win system (make -f Makefile.win)
66 # Warning: for some strange reason the output DLL library after first
67 # linking is corrupted. We have to delete the library
68 # and to call linker again.
69 winsubdirs:
70 @list='$(WINSUBDIRS)'; \
71 for subdir in $$list; do \
72 echo $$subdir ; \
73 $(MAKE) -C $$subdir -f Makefile.win || exit 1 ; \
74 rm -f $$subdir/.libs/*.dll; \
75 $(MAKE) -C $$subdir -f Makefile.win || exit 1 ; \
76 done
77
78 # Rule instalation (using WINSUBDIRS)
79 instsubdirs:
80 @list='$(WINSUBDIRS)'; \
81 for subdir in $$list; do \
82 echo $$subdir ; \
83 $(MAKE) -C $$subdir -f Makefile.win install || exit1 ; \
84 done

  ViewVC Help
Powered by ViewVC 1.1.5