diff --git a/lib/Makefile.b32 b/lib/Makefile.b32 index 507a08912326ed0c8ed4722f7e3dc6cff44d5f48..eec7541be6d175d2316a2cbad61eb342b5729b65 100644 --- a/lib/Makefile.b32 +++ b/lib/Makefile.b32 @@ -10,9 +10,10 @@ # Written by Jaepil Kim, pit@paradise.net.nz ############################################################ -# Check if BCCDIR is set. -!if !$d(BCCDIR) -!error BCCDIR not defined +# Borland's $(MAKEDIR) expands to the path where make.exe is located, +# use this feature to define BCCDIR when user has not defined BCCDIR. +!if "$(BCCDIR)" == "" +BCCDIR = $(MAKEDIR)\.. !endif # Edit the path below to point to the base of your Zlib sources. diff --git a/src/Makefile.b32 b/src/Makefile.b32 index 2f0a0779457c83a46bf9d56f847280a083a4e4b8..53e9f2d05dc275f20a0ced6c3929353cc1b786a6 100644 --- a/src/Makefile.b32 +++ b/src/Makefile.b32 @@ -10,9 +10,10 @@ # Written by Jaepil Kim, pit@paradise.net.nz ############################################################ -# Check if BCCDIR is set. -!if !$d(BCCDIR) -!error BCCDIR not defined +# Borland's $(MAKEDIR) expands to the path where make.exe is located, +# use this feature to define BCCDIR when user has not defined BCCDIR. +!if "$(BCCDIR)" == "" +BCCDIR = $(MAKEDIR)\.. !endif # Edit the path below to point to the base of your Zlib sources.