makefile.vc 1.04 KB
Newer Older
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

CFLAGS	=	/Ox /MD /nologo /I.. /IC:\OSGeo4W\include \
		/D_LITTLE_ENDIAN -DPROJ4 

LINKARGS =	..\shapelib_i.lib C:\OSGeo4W\lib\proj_i.lib

default:	all

all:	shpcat.exe shpcentrd.exe shpdxf.exe shpinfo.exe shpproj.exe

shpcat.exe:	shpcat.obj shpgeo.obj 
	$(CC) $(CFLAGS) shpcat.obj  $(LINKARGS) 
	if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1

shpcentrd.exe:	shpcentrd.obj shpgeo.obj 
	$(CC) $(CFLAGS) shpcentrd.obj  shpgeo.obj $(LINKARGS) 
	if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1

shpproj.exe:	shpproj.obj shpgeo.obj 
	$(CC) $(CFLAGS) shpproj.obj shpgeo.obj $(LINKARGS) 
	if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1

shpdxf.exe:	shpdxf.obj shpgeo.obj 
	$(CC) $(CFLAGS) shpdxf.obj  $(LINKARGS) 
	if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1

shpinfo.exe:	shpinfo.obj shpgeo.obj 
	$(CC) $(CFLAGS) shpinfo.obj  $(LINKARGS) 
	if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1

clean:
	-del *.obj
	-del *.exe
	-del *.manifest