Commit 6ac722b229a6ce58f61e7966bd069d870b333195

Werner Lemberg 2000-07-27T11:32:13

Adapting changes for Unix to other makefiles.

diff --git a/builds/ansi/ansi.mk b/builds/ansi/ansi.mk
index d326f83..6ecc6fb 100644
--- a/builds/ansi/ansi.mk
+++ b/builds/ansi/ansi.mk
@@ -23,17 +23,19 @@ HOSTSEP  := $(SEP)
 BUILD    := $(TOP)/builds/ansi
 PLATFORM := ansi
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f $TOP/Makefile setup [options]
 #   make -f $TOP/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/dos/dos-gcc.mk b/builds/dos/dos-gcc.mk
index b9f55a2..b748e7c 100644
--- a/builds/dos/dos-gcc.mk
+++ b/builds/dos/dos-gcc.mk
@@ -23,17 +23,19 @@ HOSTSEP  := $(strip \ )
 BUILD    := $(TOP)/builds/dos
 PLATFORM := dos
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/os2/os2-dev.mk b/builds/os2/os2-dev.mk
index 93939d2..5d78053 100644
--- a/builds/os2/os2-dev.mk
+++ b/builds/os2/os2-dev.mk
@@ -26,17 +26,19 @@ BUILD    := $(TOP)/builds/os2
 PLATFORM := os2
 CC       := gcc
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/os2/os2-gcc.mk b/builds/os2/os2-gcc.mk
index 14992e6..9694aee 100644
--- a/builds/os2/os2-gcc.mk
+++ b/builds/os2/os2-gcc.mk
@@ -24,17 +24,19 @@ BUILD    := $(TOP)/builds/os2
 PLATFORM := os2
 CC       := gcc
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
-#   make -f %TOP%/Makefile setup [options]
-#   make -f %TOP%/Makefile
+#   set OBJ_DIR=.../path/to/obj/dir
+#   make -f %TOP%Makefile setup [options]
+#   make -f %TOP%Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/win32/w32-dev.mk b/builds/win32/w32-dev.mk
index 8eea55a..278a600 100644
--- a/builds/win32/w32-dev.mk
+++ b/builds/win32/w32-dev.mk
@@ -29,17 +29,19 @@ BUILD    := $(TOP)/builds/win32
 PLATFORM := win32
 CC       := gcc
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/win32/w32-gcc.mk b/builds/win32/w32-gcc.mk
index 3501a79..af814d5 100644
--- a/builds/win32/w32-gcc.mk
+++ b/builds/win32/w32-gcc.mk
@@ -27,17 +27,19 @@ BUILD    := $(TOP)/builds/win32
 PLATFORM := win32
 CC       := gcc
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/win32/w32-icc.mk b/builds/win32/w32-icc.mk
index 504579e..4a3ea6f 100644
--- a/builds/win32/w32-icc.mk
+++ b/builds/win32/w32-icc.mk
@@ -20,17 +20,19 @@ BUILD    := $(TOP)$(SEP)config$(SEP)win32
 PLATFORM := win32
 CC       := icc
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/win32/w32-lcc.mk b/builds/win32/w32-lcc.mk
index 476de14..c835c1b 100644
--- a/builds/win32/w32-lcc.mk
+++ b/builds/win32/w32-lcc.mk
@@ -24,17 +24,19 @@ BUILD    := $(TOP)/builds/win32
 PLATFORM := win32
 CC       := lcc
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.
diff --git a/builds/win32/w32-vcc.mk b/builds/win32/w32-vcc.mk
index 955f44a..f1f2d3f 100644
--- a/builds/win32/w32-vcc.mk
+++ b/builds/win32/w32-vcc.mk
@@ -24,17 +24,19 @@ BUILD    := $(TOP)/builds/win32
 PLATFORM := win32
 CC       := cl
 
+
 # The directory where all object files are placed.
 #
-# Note that this is not $(TOP)/obj!
 # This lets you build the library in your own directory with something like
 #
 #   set TOP=.../path/to/freetype2/top/dir...
-#   mkdir obj
+#   set OBJ_DIR=.../path/to/obj/dir
 #   make -f %TOP%/Makefile setup [options]
 #   make -f %TOP%/Makefile
 #
-OBJ_DIR := obj
+ifndef OBJ_DIR
+  OBJ_DIR := $(TOP)$(SEP)obj
+endif
 
 
 # The directory where all library files are placed.