-
Notifications
You must be signed in to change notification settings - Fork 3
/
makefile.vc
49 lines (38 loc) · 1.07 KB
/
makefile.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
# $Id: makefile.vc 2012/05/05 Sandro Furieri $
#
# NMAKE Makefile to build libreadosm on Windows
#
!INCLUDE nmake.opt
LIBOBJ = src\readosm.obj src\osmxml.obj \
src\protobuf.obj src\osm_objects.obj
READOSM_DLL = readosm$(VERSION).dll
CFLAGS = /nologo -I. -Iheaders -IC:\OSGeo4W\include $(OPTFLAGS)
default: all
all: readosm.lib readosm_i.lib
readosm.lib: $(LIBOBJ)
if exist readosm.lib del readosm.lib
lib /out:readosm.lib $(LIBOBJ)
$(READOSM_DLL): readosm_i.lib
readosm_i.lib: $(LIBOBJ)
link /debug /dll /out:$(READOSM_DLL) \
/implib:readosm_i.lib $(LIBOBJ) \
C:\OSGeo4w\lib\libexpat.lib C:\OSGeo4w\lib\zlib.lib
if exist $(READOSM_DLL).manifest mt -manifest \
$(READOSM_DLL).manifest -outputresource:$(READOSM_DLL);2
.c.obj:
$(CC) $(CFLAGS) /c $*.c /Fo$@
clean:
del *.dll
del *.exp
del *.manifest
del *.lib
del *.obj
del *.pdb
install: all
-mkdir $(INSTDIR)
-mkdir $(INSTDIR)\bin
-mkdir $(INSTDIR)\lib
-mkdir $(INSTDIR)\include
copy *.dll $(INSTDIR)\bin
copy *.lib $(INSTDIR)\lib
copy headers\readosm.h $(INSTDIR)\include