### # $Id$ # # Windows nmake make file. This code should compile with the Microsoft .NET # compiler. # # Currently for a typical build on windows you would do the following. # - cd back to the ossim top and edit its nmake.opt file appropriately. # - nmake /f makefile # # NOTE: If you make shared apps it's handy to copy the ossim.dll to the bin # directory. ### !INCLUDE ..\nmake.opt PLUGIN_ROOT = ossim_png_plugin ### # PNG includes and libs. # WINDOWS : use IntelCompiler7 prebuilt binaries (issues with Visual Studio) ### PNG_HOME = c:\earth_package\3rdParty PNG_LINK = /LIBPATH:"$(PNG_HOME)\lib" libpng.lib PNG_INCLUDES = -I"$(PNG_HOME)\include" INC = -I.. -I. -I$(OSSIM_HOME)\include $(PNG_INCLUDES) $(TIFF_INC) LINK = link LFLAGS = /NOLOGO /SUBSYSTEM:WINDOWS /LIBPATH:"$(OSSIM_HOME)\lib" $(SHARED_OSSIM_LINK) $(PNG_LINK) OBJ = \ ossimPngPluginInit.obj \ ossimPngReader.obj \ ossimPngReaderFactory.obj \ ossimPngWriter.obj \ ossimPngWriterFactory.obj default: $(OBJ) link /VERSION:1.0.0 /DLL /OUT:"$(INSTALL_DIR)\$(PLUGIN_ROOT).dll" /IMPLIB:"$(LIB_DIR)\$(PLUGIN_ROOT).lib" $(OBJ) $(LFLAGS) clean: $(RM) *.obj $(RM) $(LIB_DIR)\$(PLUGIN_ROOT).*