1 Star 1 Fork 0

xiyan-100/shapelib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
makefile.vc 2.84 KB
一键复制 编辑 原始数据 按行查看 历史
#CFLAGS = /DSHPAPI_CALL=__stdcall
# 4100: 'identifier' : unreferenced formal parameter
CFLAGS = /nologo /Ox /MD /W4 /wd4100 /D_CRT_SECURE_NO_DEPRECATE /DSHAPELIB_DLLEXPORT
IMPORT_LIB = shapelib_i.lib
STATIC_LIB = shapelib.lib
DLLNAME = shapelib.dll
LINK_LIB = $(IMPORT_LIB)
OBJ = shpopen.obj dbfopen.obj shptree.obj safileio.obj sbnsearch.obj
all: $(STATIC_LIB) $(DLLNAME) \
shpcreate.exe shpadd.exe shpdump.exe shprewind.exe dbfcreate.exe \
dbfadd.exe dbfdump.exe shptest.exe shptreedump.exe
shpopen.obj: shpopen.c shapefil.h
$(CC) $(CFLAGS) -c shpopen.c
shptree.obj: shptree.c shapefil.h
$(CC) $(CFLAGS) -c shptree.c
dbfopen.obj: dbfopen.c shapefil.h
$(CC) $(CFLAGS) -c dbfopen.c
safileio.obj: safileio.c shapefil.h
$(CC) $(CFLAGS) -c safileio.c
sbnsearch.obj: sbnsearch.c shapefil.h
$(CC) $(CFLAGS) -c sbnsearch.c
shpcreate.exe: shpcreate.c $(LINK_LIB)
$(CC) $(CFLAGS) shpcreate.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shpadd.exe: shpadd.c $(LINK_LIB)
$(CC) $(CFLAGS) shpadd.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shpdump.exe: shpdump.c $(LINK_LIB)
$(CC) $(CFLAGS) shpdump.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shprewind.exe: shprewind.c $(LINK_LIB)
$(CC) $(CFLAGS) shprewind.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
dbfcreate.exe: dbfcreate.c $(LINK_LIB)
$(CC) $(CFLAGS) dbfcreate.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
dbfadd.exe: dbfadd.c $(LINK_LIB)
$(CC) $(CFLAGS) dbfadd.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
dbfdump.exe: dbfdump.c $(LINK_LIB)
$(CC) $(CFLAGS) dbfdump.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shptest.exe: shptest.c $(LINK_LIB)
$(CC) $(CFLAGS) shptest.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shputils.exe: shputils.c $(LINK_LIB)
$(CC) $(CFLAGS) shputils.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shptreedump.exe: shptreedump.c $(LINK_LIB)
$(CC) $(CFLAGS) shptreedump.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
shpdiff.exe: shpdiff.c $(LINK_LIB)
$(CC) $(CFLAGS) shpdiff.c $(LINK_LIB) $(LINKOPT)
if exist $@.manifest mt -manifest $@.manifest -outputresource:$@;1
clean:
-del *.obj
-del *.exe
-del *.lib
-del *.dll
-del *.manifest
$(STATIC_LIB): $(OBJ)
lib /nologo /out:$(STATIC_LIB) $(OBJ)
$(IMPORT_LIB): $(DLLNAME)
$(DLLNAME): $(OBJ)
link /nologo /dll /out:$(DLLNAME) /implib:$(IMPORT_LIB) $(OBJ)
if exist $(DLLNAME).manifest mt /nologo -manifest $(DLLNAME).manifest -outputresource:$(DLLNAME);2
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/xiyan100/shapelib.git
git@gitee.com:xiyan100/shapelib.git
xiyan100
shapelib
shapelib
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385