File: makefile.vc

package info (click to toggle)
spatialite-tools 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,096 kB
  • sloc: ansic: 36,848; sh: 11,192; xml: 1,839; makefile: 106
file content (127 lines) | stat: -rw-r--r-- 4,759 bytes parent folder | download | duplicates (3)
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
# $Id: makefile.vc 2009/04/16 Sandro Furieri $
#
# NMAKE Makefile to build SpatiaLite-tools on Windows
#
!INCLUDE nmake.opt

SPATIALITE_EXE            = spatialite.exe
EXIF_LOADER_EXE           = exif_loader.exe
SHP_DOCTOR_EXE            = shp_doctor.exe
SPATIALITE_NETWORK_EXE    = spatialite_network.exe
SPATIALITE_TOOL_EXE       = spatialite_tool.exe
SPATIALITE_OSM_NET_EXE    = spatialite_osm_net.exe
SPATIALITE_OSM_MAP_EXE    = spatialite_osm_map.exe
SPATIALITE_OSM_RAW_EXE    = spatialite_osm_raw.exe
SPATIALITE_OSM_FILTER_EXE = spatialite_osm_filter.exe
SPATIALITE_GML_EXE        = spatialite_gml.exe

CFLAGS	=	/nologo -IC:\OSGeo4W\include $(OPTFLAGS)

default:	all

all: $(SPATIALITE_EXE) $(SHP_DOCTOR_EXE) $(SPATIALITE_TOOL_EXE) \
	$(SPATIALITE_NETWORK_EXE) $(EXIF_LOADER_EXE) \
	$(SPATIALITE_OSM_NET_EXE) $(SPATIALITE_OSM_MAP_EXE) \
	$(SPATIALITE_GML_EXE) $(SPATIALITE_OSM_RAW_EXE) \
	$(SPATIALITE_OSM_FILTER_EXE)

$(SPATIALITE_EXE): shell.obj
	cl shell.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib C:\OSGeo4W\lib\geos_c.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib \
		/Fe$(SPATIALITE_EXE)
	if exist $(SPATIALITE_EXE).manifest mt -manifest \
		$(SPATIALITE_EXE).manifest -outputresource:$(SPATIALITE_EXE);1

$(EXIF_LOADER_EXE):	exif_loader.obj
	cl exif_loader.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib C:\OSGeo4W\lib\geos_c.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(EXIF_LOADER_EXE).manifest mt -manifest \
		$(EXIF_LOADER_EXE).manifest -outputresource:$(EXIF_LOADER_EXE);1

$(SHP_DOCTOR_EXE):	shp_doctor.obj
	cl shp_doctor.obj  C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib C:\OSGeo4W\lib\geos_c.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SHP_DOCTOR_EXE).manifest mt -manifest \
		$(SHP_DOCTOR_EXE).manifest -outputresource:$(SHP_DOCTOR_EXE);1

$(SPATIALITE_NETWORK_EXE):	spatialite_network.obj
	cl spatialite_network.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_NETWORK_EXE).manifest mt -manifest \
		$(SPATIALITE_TOOL_EXE).manifest \
		-outputresource:$(SPATIALITE_TOOL_EXE);1

$(SPATIALITE_TOOL_EXE):	spatialite_tool.obj
	cl spatialite_tool.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib C:\OSGeo4W\lib\geos_c.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_TOOL_EXE).manifest mt -manifest \
		$(SPATIALITE_TOOL_EXE).manifest \
		-outputresource:$(SPATIALITE_TOOL_EXE);1

$(SPATIALITE_OSM_NET_EXE):	spatialite_osm_net.obj
	cl spatialite_osm_net.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib \
		C:\OSGeo4W\lib\readosm_i.lib \
		C:\OSGeo4W\lib\libexpat.lib \
		C:\OSGeo4W\lib\zlib.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_OSM_EXE).manifest mt -manifest \
		$(SPATIALITE_OSM_EXE).manifest \
		-outputresource:$(SPATIALITE_OSM_NET_EXE);1

$(SPATIALITE_OSM_MAP_EXE):	spatialite_osm_map.obj
	cl spatialite_osm_map.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib \
		C:\OSGeo4W\lib\readosm_i.lib \
		C:\OSGeo4W\lib\libexpat.lib \
		C:\OSGeo4W\lib\zlib.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_OSM_MAP_EXE).manifest mt -manifest \
		$(SPATIALITE_OSM_MAP_EXE).manifest \
		-outputresource:$(SPATIALITE_OSM_MAP_EXE);1

$(SPATIALITE_GML_EXE):	spatialite_gml.obj
	cl spatialite_gml.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib \
		C:\OSGeo4W\lib\libexpat.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_GML_EXE).manifest mt -manifest \
		$(SPATIALITE_GML_EXE).manifest \
		-outputresource:$(SPATIALITE_GML_EXE);1

$(SPATIALITE_OSM_RAW_EXE):	spatialite_osm_raw.obj
	cl spatialite_osm_raw.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib \
		C:\OSGeo4W\lib\readosm_i.lib \
		C:\OSGeo4W\lib\libexpat.lib \
		C:\OSGeo4W\lib\zlib.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_OSM_RAW_EXE).manifest mt -manifest \
		$(SPATIALITE_OSM_RAW_EXE).manifest \
		-outputresource:$(SPATIALITE_OSM_RAW_EXE);1

$(SPATIALITE_OSM_FILTER_EXE):	spatialite_osm_filter.obj
	cl spatialite_osm_filter.obj C:\OSGeo4W\lib\proj_i.lib \
		C:\OSGeo4W\lib\iconv.lib \
		C:\OSGeo4W\lib\spatialite_i.lib C:\OSGeo4W\lib\sqlite3_i.lib 
	if exist $(SPATIALITE_OSM_FILTER_EXE).manifest mt -manifest \
		$(SPATIALITE_OSM_FILTER_EXE).manifest \
		-outputresource:$(SPATIALITE_OSM_FILTER_EXE);1

clean:
	del *.exe
	del *.exp
	del *.manifest
	del *.obj
	del *.pdb

install: all
	-mkdir $(INSTDIR)
	-mkdir $(INSTDIR)\bin
	copy *.exe $(INSTDIR)\bin