📄 makefile.solaris
字号:
#
# 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 = MosaicRaster
#
# Command line parameters: Edit these parameters so that you can
# easily run the sample by typing "make -f Makefile.Solaris run".
# FULL_PATH_TO_INPUT_RASTERS is the path to the input GRID rasters
# (e.g. /path/to/dataset/directory). INPUT_1 and INPUT_2 are the
# names of GRID rasters in the input directory that will be mosaiced.
# If you have 3 or 4 rasters to mosaic add additional parameters for
# them here and edit the run target at the bottom of the file.
# OUTPUT_FORMAT (either "GRID", "TIFF", or "IMAGINE") is the format
# for the mosaiced raster. OUTPUT_NAME is the name of the raster that
# will be created. You may want to enclose path in quotes.
#
PATH_TO_INPUT_RASTERS =
INPUT_1 =
INPUT_2 =
OUTPUT_FORMAT =
OUTPUT_NAME =
#
# The INCLUDEDIRS macro contains a list of include directories
# to pass to the compiler so it can find necessary header files.
#
# The LIBDIRS macro contains a list of library directories
# to pass to the linker so it can find necessary libraries.
#
# The LIBS macro contains a list of libraries that the the
# executable must be linked against.
#
INCLUDEDIRS = \
-I$(ARCENGINEHOME)/include
LIBDIRS = \
-L$(ARCENGINEHOME)/bin
LIBS = -larcsdk
#
# The VPATH macro contains a list of directories to search for
# prerequisites.
#
# The CXXSOURCES macro contains a list of source files.
#
# The CXXOBJECTS macro converts the CXXSOURCES macro into a list
# of object files.
#
# The CXXFLAGS macro contains a list of options to be passed to
# the compiler. Adding "-g" to this line will cause the compiler
# to add debugging information to the executable.
#
# The CXX macro defines the C++ compiler.
#
# The LDFLAGS macro contains all of the library and library
# directory information to be passed to the linker.
#
VPATH = ../
CXXSOURCES = MosaicRaster.cpp LicenseUtilities.cpp # list of source files
CXXOBJECTS = $(CXXSOURCES:.cpp=.o) # expands to list of object files
CXXFLAGS = -DESRI_UNIX $(INCLUDEDIRS)
CXX = CC
LDFLAGS = $(LIBDIRS) $(LIBS)
#
# Default target: the first target is the default target.
# Just type "make -f Makefile.Solaris" to build it.
#
all: $(PROGRAM)
#
# Link target: automatically builds its object dependencies before
# executing its link command.
#
$(PROGRAM): $(CXXOBJECTS)
$(CXX) -o $@ $(CXXOBJECTS) $(LDFLAGS)
#
# Object targets: rules that define objects, their dependencies, and
# a list of commands for compilation.
#
MosaicRaster.o: MosaicRaster.cpp MosaicRaster.h LicenseUtilities.h
$(CXX) $(CXXFLAGS) -c -o $@ $<
LicenseUtilities.o: LicenseUtilities.cpp LicenseUtilities.h
$(CXX) $(CXXFLAGS) -c -o $@ $<
#
# Clean target: "make -f Makefile.Solaris clean" to remove unwanted objects and executables.
#
clean:
$(RM) -f $(CXXOBJECTS) $(PROGRAM)
#
# run target: Edit the command line parameters at the top of the file
# and type "make -f Makefile.Solaris run" to run the sample. If you need
# to mosaic 3 or 4 rasters then add additional parameters here and at
# the top of the file.
#
run:
./$(PROGRAM) -p $(PATH_TO_INPUT_RASTERS) -i $(INPUT_1) -i $(INPUT_2) -f $(OUTPUT_FORMAT) -o $(OUTPUT_NAME)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -