build: BCC - recover lost functionality from commit 3d813204260b37289411
authorYang Tse <yangsita@gmail.com>
Wed, 12 Jan 2011 17:07:04 +0000 (18:07 +0100)
committerYang Tse <yangsita@gmail.com>
Wed, 12 Jan 2011 17:07:04 +0000 (18:07 +0100)
Borland's $(MAKEDIR) expands to the path where make.exe is located,
use this feature to define BCCDIR when user has not defined BCCDIR.

lib/Makefile.b32
src/Makefile.b32

index 507a089..eec7541 100644 (file)
 #  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.
index 2f0a077..53e9f2d 100644 (file)
 #  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.