⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.windows

📁 ArcGIS编程学习事例
💻 WINDOWS
字号:
#
# The PROGRAM macro defines the name of the program or project.  It
# allows the program name to be changed by editing in only one
# location
#

PROGRAM = QueryShapefile.exe

#
# Command line parameters: Edit these parameters so that you can 
# easily run the sample by typing "nmake /f Makefile.Windows run".
# 
# FULL_NAME is the full name of the output shapefile
#

FULL_NAME = c:\data\tempshapefile

#
# The INCLUDEDIRS macro contains a list of include directories
# to pass to the compiler so it can find necessary header files.
# This must include not only the location of the SDK headers, but
# also the location of the ArcGIS OLB files.
#

INCLUDEDIRS = \
	/I "C:\Program Files\ArcGIS\include\CPPAPI" \
	/I "C:\Program Files\ArcGIS\Com"

#
# The CPPSOURCES macro contains a list of source files.
#
# The CPPOBJECTS macro contains a list of object files.
#
# The CPPFLAGS macro contains a list of options to be passed to
# the compiler.  The /GX flag enables synchronous exception handling.
# Adding "/Yd" to this line will cause the compiler to add 
# debugging information to the executable.
#

CPPSOURCES = ..\QueryShapefile.cpp ..\LicenseUtilities.cpp ..\PathUtilities.cpp
CPPOBJECTS = QueryShapefile.obj LicenseUtilities.obj PathUtilities.obj
CPPFLAGS = /DESRI_WINDOWS $(INCLUDEDIRS) /nologo /GX

#
# Link target: automatically builds its object dependencies before
# executing its link command.
#

$(PROGRAM): $(CPPOBJECTS)
	link.exe /out:$@ $(CPPOBJECTS)

#
# Create an inference rule for .obj targets in the current directory
# and .cpp dependents which are one directory above
#

{..\}.cpp{}.obj:
	$(CPP) $(CPPFLAGS) /c ..\$*.cpp

#
# Object targets: rules that define objects, their dependencies, and
# a list of commands for compilation.  NMake provides "infered" rules
# for certain target/dependency combinations, so that you do not need
# to provide the full compilation line, just the rule.
#

QueryShapefile.obj: ..\QueryShapefile.cpp ..\QueryShapefile.h ..\LicenseUtilities.h

LicenseUtilities.obj:	..\LicenseUtilities.cpp ..\LicenseUtilities.h

#
# Clean target: "nmake clean" to remove unwanted objects and executables.
#

clean:
	del $(CPPOBJECTS) $(PROGRAM) *.tlh

#
# run target: Edit the command line parameters at the top of the file 
# and type "nmake /f Makefile.Windows run" to run the sample.
#

run:
	$(PROGRAM) $(FULL_NAME)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -