#### # $Id$ # # Typical build with .net compiler using nmake # cd to: "ossim/src/packages" # unzip and untar the file gdal.tgz # set the environment variable OSSIM_HOME # cd to the top of ossim # nmake /f makefile.vc # # Edit this file as required. # # NOTE: # # You should either set the environment variable "OSSIM_HOME" or uncomment and # set it in this file for include paths and linking. Since external packages # such as ossim_qt looks for the environment variable, it is preferable to set # the environment variable to setting it in this file. # # See: "Start->Control Panel->System->Advanced->Environment Variables" (XP) # to set the environment variables. ### OSSIM_HOME = E:\sw\vs7\drb\ossim !INCLUDE $(OSSIM_HOME)\nmake.opt CORE_DIR = $(OSSIM_HOME)\src\ossim_core BINDIR = $(OSSIM_HOME)\bin BIN_DIR = $(OSSIM_HOME)\bin INSTALL_DIR = $(OSSIM_HOME)\bin ### # Plugin home. ### OSSIM_PLUGINS_HOME = E:\sw\vs7\drb\ossim_plugins OSSIM_PLUGINS_INCLUDES = -I$(OSSIM_PLUGINS_HOME) ### # Optional png support. ### PNG_DIR = $(3RD_PARTY_HOME) PNG_INC = -I$(3RD_PARTY_HOME)\include PNG_LIB = $(3RD_PARTY_HOME)\lib\libpng.lib ZLIB_LIB = $(3RD_PARTY_HOME)\lib\zdll.lib ### # GDAL support. ### GDAL_DIR = $(FWTOOLS_HOME) GDAL_INC = -I$(OSSIM_PLUGINS_HOME)\gdal -I$(GDAL_DIR)\include GDAL_LIBS = $(GDAL_DIR)\lib\gdal_i.lib ### # GDAL libs with odbc support # GDAL_LIBS = $(GDAL_DIR)\gdal.lib odbc32.lib odbccp32.lib user32.lib ### ### # CFLAGS We must override the core CFLAGS to use "OSSIMUSINGDLL" not # "OSSIMMAKINGDLL" or all the ossim symbols will be undefined! ### CFLAGS = $(OPTFLAGS) /DOSSIMUSINGDLL $(INC) $(EXTRAFLAGS)