Permalink
Browse files

build: BCC - recover lost functionality from commit 3d81320

Borland's $(MAKEDIR) expands to the path where make.exe is located,
use this feature to define BCCDIR when user has not defined BCCDIR.
  • Loading branch information...
1 parent 42f5e8a commit 5f7d34811a1ff21d4a8962e3c7c99d4a702bd684 @yangtse yangtse committed Jan 12, 2011
Showing with 8 additions and 6 deletions.
  1. +4 −3 lib/Makefile.b32
  2. +4 −3 src/Makefile.b32
View
7 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.
View
7 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.

0 comments on commit 5f7d348

Please sign in to comment.