-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile_mod.vc
157 lines (145 loc) · 6.98 KB
/
makefile_mod.vc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# $Id: $
#
# NMAKE Makefile to build libspatialite on Windows
#
!INCLUDE nmake_mod.opt
LIBOBJ = src\gaiaaux\gg_sqlaux.obj src\gaiaaux\gg_utf8.obj \
src\gaiaexif\gaia_exif.obj src\gaiageo\gg_advanced.obj \
src\gaiageo\gg_endian.obj src\gaiageo\gg_ewkt.obj \
src\gaiageo\gg_geodesic.obj src\gaiageo\gg_geoJSON.obj \
src\gaiageo\gg_geometries.obj src\gaiageo\gg_geoscvt.obj \
src\gaiageo\gg_gml.obj src\gaiageo\gg_kml.obj \
src\gaiageo\gg_relations.obj src\gaiageo\gg_shape.obj \
src\gaiageo\gg_transform.obj src\gaiageo\gg_vanuatu.obj \
src\gaiageo\gg_wkb.obj src\gaiageo\gg_wkt.obj \
src\gaiageo\gg_extras.obj src\gaiageo\gg_xml.obj \
src\gaiageo\gg_voronoj.obj src\gaiageo\gg_matrix.obj \
src\gaiageo\gg_relations_ext.obj src\gaiageo\gg_rttopo.obj \
src/connection_cache/alloc_cache.obj src/connection_cache/gg_sequence.obj \
src\spatialite\mbrcache.obj src\shapefiles\shapefiles.obj \
src\spatialite\spatialite.obj src\spatialite\virtualdbf.obj \
src\spatialite\virtualfdo.obj src\spatialite\virtualnetwork.obj \
src\spatialite\virtualshape.obj src\spatialite\virtualspatialindex.obj \
src\spatialite\statistics.obj src\spatialite\metatables.obj \
src\spatialite\virtualXL.obj src\spatialite\extra_tables.obj \
src\spatialite\virtualxpath.obj src\spatialite\virtualbbox.obj \
src\spatialite\spatialite_init.obj src\spatialite\se_helpers.obj \
src\spatialite\srid_aux.obj src\spatialite\table_cloner.obj \
src\spatialite\virtualelementary.obj src\spatialite\virtualgeojson.obj \
src\spatialite\virtualrouting.obj src\spatialite\create_routing.obj \
src\spatialite\dbobj_scopes.obj src\spatialite\pause.obj \
src\wfs\wfs_in.obj src\srsinit\srs_init.obj src\spatialite\virtualgpkg.obj \
src\dxf\dxf_parser.obj src\dxf\dxf_loader.obj src\dxf\dxf_writer.obj \
src\dxf\dxf_load_distinct.obj src\dxf\dxf_load_mixed.obj \
src\shapefiles\validator.obj src\md5\md5.obj src\md5\gaia_md5.obj \
src\srsinit\epsg_inlined_00.obj src\srsinit\epsg_inlined_01.obj \
src\srsinit\epsg_inlined_02.obj src\srsinit\epsg_inlined_03.obj \
src\srsinit\epsg_inlined_04.obj src\srsinit\epsg_inlined_05.obj \
src\srsinit\epsg_inlined_06.obj src\srsinit\epsg_inlined_07.obj \
src\srsinit\epsg_inlined_08.obj src\srsinit\epsg_inlined_09.obj \
src\srsinit\epsg_inlined_10.obj src\srsinit\epsg_inlined_11.obj \
src\srsinit\epsg_inlined_12.obj src\srsinit\epsg_inlined_13.obj \
src\srsinit\epsg_inlined_14.obj src\srsinit\epsg_inlined_15.obj \
src\srsinit\epsg_inlined_16.obj src\srsinit\epsg_inlined_17.obj \
src\srsinit\epsg_inlined_18.obj src\srsinit\epsg_inlined_19.obj \
src\srsinit\epsg_inlined_20.obj src\srsinit\epsg_inlined_21.obj \
src\srsinit\epsg_inlined_22.obj src\srsinit\epsg_inlined_23.obj \
src\srsinit\epsg_inlined_24.obj src\srsinit\epsg_inlined_25.obj \
src\srsinit\epsg_inlined_26.obj src\srsinit\epsg_inlined_27.obj \
src\srsinit\epsg_inlined_28.obj src\srsinit\epsg_inlined_29.obj \
src\srsinit\epsg_inlined_30.obj src\srsinit\epsg_inlined_31.obj \
src\srsinit\epsg_inlined_32.obj src\srsinit\epsg_inlined_33.obj \
src\srsinit\epsg_inlined_34.obj src\srsinit\epsg_inlined_35.obj \
src\srsinit\epsg_inlined_36.obj src\srsinit\epsg_inlined_37.obj \
src\srsinit\epsg_inlined_38.obj src\srsinit\epsg_inlined_39.obj \
src\srsinit\epsg_inlined_40.obj src\srsinit\epsg_inlined_41.obj \
src\srsinit\epsg_inlined_42.obj src\srsinit\epsg_inlined_43.obj \
src\srsinit\epsg_inlined_44.obj src\srsinit\epsg_inlined_45.obj \
src\srsinit\epsg_inlined_46.obj src\srsinit\epsg_inlined_47.obj \
src\srsinit\epsg_inlined_48.obj src\srsinit\epsg_inlined_49.obj \
src\srsinit\epsg_inlined_50.obj src\srsinit\epsg_inlined_51.obj \
src\srsinit\epsg_inlined_52.obj src\srsinit\epsg_inlined_53.obj \
src\srsinit\epsg_inlined_54.obj src\srsinit\epsg_inlined_55.obj \
src\srsinit\epsg_inlined_56.obj src\srsinit\epsg_inlined_57.obj \
src\srsinit\epsg_inlined_58.obj src\srsinit\epsg_inlined_59.obj \
src\srsinit\epsg_inlined_60.obj src\srsinit\epsg_inlined_61.obj \
src\srsinit\epsg_inlined_62.obj src\srsinit\epsg_inlined_63.obj \
src\srsinit\epsg_inlined_extra.obj src\srsinit\epsg_inlined_prussian.obj \
src\srsinit\epsg_inlined_wgs84_00.obj src\srsinit\epsg_inlined_wgs84_01.obj \
src\versioninfo\version.obj src\virtualtext\virtualtext.obj \
src\cutter\gaia_cutter.obj \
src\spatialite\virtualknn.obj src\spatialite\virtualknn2.obj \
src\control_points\gaia_control_points.obj \
src\control_points\grass_crs3d.obj src\control_points\grass_georef_tps.obj \
src\control_points\grass_georef.obj src\stored_procedures\stored_procedures.obj \
src\geopackage\gaia_cvt_gpkg.obj \
src\geopackage\gpkgAddGeometryColumn.obj \
src\geopackage\gpkg_add_geometry_triggers.obj \
src\geopackage\gpkg_add_spatial_index.obj \
src\geopackage\gpkg_add_tile_triggers.obj \
src\geopackage\gpkgBinary.obj \
src\geopackage\gpkgCreateBaseTables.obj \
src\geopackage\gpkgCreateTilesTable.obj \
src\geopackage\gpkgCreateTilesZoomLevel.obj \
src\geopackage\gpkgGetImageType.obj \
src\geopackage\gpkg_get_normal_row.obj \
src\geopackage\gpkg_get_normal_zoom.obj \
src\geopackage\gpkgInsertEpsgSRID.obj \
src\geopackage\gpkgMakePoint.obj \
src\topology\gaia_auxnet.obj src\topology\gaia_auxtopo.obj \
src\topology\gaia_auxtopo_table.obj src\topology\gaia_netstmts.obj \
src\topology\gaia_network.obj src\topology\gaia_topology.obj \
src\topology\gaia_topostmts.obj src\topology\lwn_network.obj \
src\topology\net_callbacks.obj src\topology\topo_callbacks.obj
MOD_SPATIALITE_DLL = mod_spatialite$(VERSION).dll
CFLAGS = /nologo -I.\src\headers -I.\src\topology \
-I. -IC:\OSGeo4W\include $(OPTFLAGS)
default: all
all: mod_spatialite.lib mod_spatialite_i.lib
#$(EXIF_LOADER_EXE)
mod_spatialite.lib: $(LIBOBJ)
if exist mod_spatialite.lib del mod_spatialite.lib
lib /out:mod_spatialite.lib $(LIBOBJ)
$(MOD_SPATIALITE_DLL): mod_spatialite_i.lib
mod_spatialite_i.lib: $(LIBOBJ)
link /dll /out:$(MOD_SPATIALITE_DLL) \
/implib:mod_spatialite_i.lib $(LIBOBJ) \
C:\OSGeo4W\lib\proj_i.lib C:\OSGeo4W\lib\geos_c.lib \
C:\OSGeo4w\lib\freexl_i.lib C:\OSGeo4w\lib\iconv.lib \
C:\OSGeo4W\lib\sqlite3_i.lib C:\OSGeo4W\lib\zlib.lib \
C:\OSGeo4W\lib\libxml2.lib C:\OSGeo4W\lib\librttopo.lib
if exist $(MOD_SPATIALITE_DLL).manifest mt -manifest \
$(MOD_SPATIALITE_DLL).manifest -outputresource:$(MOD_SPATIALITE_DLL);2
.c.obj:
$(CC) $(CFLAGS) /c $*.c /Fo$@
clean:
del *.dll
del *.exp
del *.manifest
del *.lib
del src\connection_cache\*.obj
del src\cutter\*.obj
del src\gaiaaux\*.obj
del src\gaiaexif\*.obj
del src\gaiageo\*.obj
del src\shapefiles\*.obj
del src\spatialite\*.obj
del src\srsinit\*.obj
del src\versioninfo\*.obj
del src\virtualtext\*.obj
del src\wfs\*.obj
del src\dxf\*.obj
del src\md5\*.obj
del src\topology\*.obj
del src\stored_procedures\*.obj
del *.pdb
install: all
-mkdir $(INSTDIR)
-mkdir $(INSTDIR)\bin
-mkdir $(INSTDIR)\lib
-mkdir $(INSTDIR)\include
-mkdir $(INSTDIR)\include\spatialite
copy *.dll $(INSTDIR)\bin
copy *.lib $(INSTDIR)\lib
copy src\headers\spatialite.h $(INSTDIR)\include
copy src\headers\spatialite\*.h $(INSTDIR)\include\spatialite