For an NMAKE guru this is probably and elementary question.
I'm building open-source GEOTIFF libraries; however, to do so one must first edit the Makefile.vc and set the BUILD (absolute) PATHS to TIFF and PROJ4 directories at the start of the Makefile.vc residing in the libgeotiff repository. This
is not really acceptable since the path includes specific project folders/directories to your current build area. I'd like to make this more adaptable for any project. Is there way to pass in paths in the NAMKE process, say as arguments?
Currently I nmake from the VS command line - Visual Studio Tools >> Visual Studio Command Prompt. This all works fine just a-bit clunky.
I see I can create an MAKEFILE visual studio project. Anyone aware of examples replacing the command namke /f Makefile.vc process to the VS2010 Makefile project.
I use the nmake process to build static libraries from the open-source which I use to link to with a VB.NET(Managed)/CLI/C(Unmanaged) project
At a high level of abstraction....
I nmake PROJ4 to get a proj.lib library
I nmake TIFF to get a libtiff.lib library
Finally, I nmake LIBGEOTIFF to create geotiff.lib library which requires the latter two libraries above.
So, If I were to create VS Makefile Projects would I create 3 separate Makefile projects?
I have also tried to create a VS "Class Library" Project with some moderate success but but there were some other issues with function name resolution going between C++ and C. It seem best to stick with the suggested LIBGEOTIFF/TIFF linking
process.
I' suppose I'm looking for a other strategies. Maybe the use of the VS 2010 Command line compilation is the best methodology. I have actually developed all the VB/CLI interfaces with my static (unmanaged) libraries and everything works fine. I just
wanted to see if I could improve the library build processes on the open-source stuff.