From ed3b07c4e214795931f8ab67cfe4be13755fa8f8 Mon Sep 17 00:00:00 2001 From: Bob Friesenhahn Date: Tue, 28 Jan 2020 08:16:05 -0600 Subject: [PATCH] Make sure that tif_config.h is produced prior to entering the port directory and add an include path so that the port files can include tif_config.h. Do not actually include tif_config.h at this time since CMake and Autotools builds are not prepared for that. This issue could be handled by updating the CMake and Autotools builds or by adding a define which directs libport.h to include tif_config.h. --- Makefile.vc | 3 +++ port/Makefile.vc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Makefile.vc b/Makefile.vc index 6e66c730..eeb5d04d 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -31,6 +31,9 @@ all: port lib tools port:: + cd libtiff + $(MAKE) /f Makefile.vc tif_config.h + cd.. cd port $(MAKE) /f Makefile.vc cd.. diff --git a/port/Makefile.vc b/port/Makefile.vc index 501f7d74..6122b192 100644 --- a/port/Makefile.vc +++ b/port/Makefile.vc @@ -55,6 +55,8 @@ EXTRAFLAGS = -DHAVE_STRTOULL $(EXTRAFLAGS) STRTOULL_OBJ = strtoull.obj !ENDIF +INCL = -I..\libtiff + OBJ = \ snprintf.obj \ strcasecmp.obj \