Instead of exiting with error lets set BCCDIR self.
authorGuenter Knauf <lists@gknw.net>
Tue, 11 Jan 2011 17:22:42 +0000 (18:22 +0100)
committerGuenter Knauf <lists@gknw.net>
Tue, 11 Jan 2011 17:22:42 +0000 (18:22 +0100)
lib/Makefile.b32
src/Makefile.b32

index 1f5d3fac2414f56abb76a87e4d42850777746bb9..77404a160e4828f70940e94bd9abd32e76f3ed63 100644 (file)
@@ -4,16 +4,12 @@
 #
 #  'lib' directory
 #
-#  'BCCDIR' has to be set up to point to the base directory
-#  of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
-#  where c:\Borland\BCC55 is the compiler is installed
-#
 #  Written by Jaepil Kim, pit@paradise.net.nz
 ############################################################
 
-# Check if BCCDIR is set.
-!if !$d(BCCDIR)
-!error BCCDIR isn't defined
+# Check if BCCDIR is set and guess if not set.
+!ifndef BCCDIR
+BCCDIR = $(MAKEDIR)/..
 !endif
 
 # Edit the path below to point to the base of your Zlib sources.
index c418f1b47f1a59ecb65eab154f093bdd18a5f917..e67c549bb500e331a640d929e21cd93b53a85614 100644 (file)
@@ -4,16 +4,12 @@
 #
 #  'src' directory
 #
-#  'BCCDIR' has to be set up to point to the base directory
-#  of the compiler, i.e. SET BCCDIR = c:\Borland\BCC55
-#  where c:\Borland\BCC55 is the compiler is installed
-#
 #  Written by Jaepil Kim, pit@paradise.net.nz
 ############################################################
 
-# Check if BCCDIR is set.
-!if !$d(BCCDIR)
-!error BCCDIR isn't defined
+# Check if BCCDIR is set and guess if not set.
+!ifndef BCCDIR
+BCCDIR = $(MAKEDIR)/..
 !endif
 
 # Edit the path below to point to the base of your Zlib sources.