1999-12-17 00:11:37 +01:00
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
# FreeType 2 configuration file to detect a DOS host platform.
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2000-03-05 02:14:19 +01:00
|
|
|
# Copyright 1996-2000 by
|
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
2000-03-05 02:14:19 +01:00
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
1999-12-17 00:11:37 +01:00
|
|
|
|
|
|
|
|
2000-03-05 02:14:19 +01:00
|
|
|
# We test for the COMSPEC environment variable, then run the `ver'
|
|
|
|
# command-line program to see if its output contains the word `Dos'.
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
# If this is true, we are running a Dos-ish platform (or an emulation).
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
ifeq ($(PLATFORM),ansi)
|
1999-12-17 00:11:37 +01:00
|
|
|
|
2000-03-05 02:14:19 +01:00
|
|
|
ifdef COMSPEC
|
|
|
|
|
|
|
|
is_dos := $(findstring Dos,$(shell ver))
|
|
|
|
|
|
|
|
# We try to recognize a Dos session under OS/2. The `ver' command
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
# returns `Operating System/2 ...' there, so `is_dos' should be empty.
|
2000-03-05 02:14:19 +01:00
|
|
|
#
|
|
|
|
# To recognize a Dos session under OS/2, we check COMSPEC for the
|
|
|
|
# substring `MDOS\COMMAND'
|
|
|
|
#
|
|
|
|
ifeq ($(is_dos),)
|
|
|
|
is_dos := $(findstring MDOS\COMMAND,$(COMSPEC))
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(is_dos),)
|
|
|
|
|
|
|
|
PLATFORM := dos
|
|
|
|
DELETE := del
|
|
|
|
COPY := copy
|
|
|
|
|
|
|
|
# Use DJGPP (i.e. gcc) by default.
|
|
|
|
#
|
|
|
|
CONFIG_FILE := dos-gcc.mk
|
|
|
|
SEP := /
|
|
|
|
ifndef CC
|
|
|
|
CC := gcc
|
|
|
|
endif
|
|
|
|
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
# additionally, we provide hooks for various other compilers
|
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C
|
|
|
|
CONFIG_FILE := dos-tcc.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := tcc
|
|
|
|
.PHONY: turboc
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
|
|
|
CONFIG_FILE := dos-wat.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := wcc386
|
|
|
|
.PHONY: watcom
|
|
|
|
endif
|
|
|
|
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16-bit
|
2000-03-05 02:14:19 +01:00
|
|
|
CONFIG_FILE := dos-bcc.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := bcc
|
|
|
|
.PHONY: borlandc16
|
|
|
|
endif
|
|
|
|
|
A complete revision of FreeType 2's GNU makefiles (of the library):
Tons of unnecessary stuff have been removed; only the essential rules
have been retained.
The source files now depend on all header files in include/freetype,
include/freetype/config, and include/freetype/internal. This is not
optimal, I know, and I'll try to improve this, but it is better than
before (namely no dependencies on `internal').
FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know
exactly whether this is really useful, but it doesn't harm.
There is now more documentation in the makefiles itself.
io-frames.html: Use of <th>, <code>, and <var> for better tagging.
Reactivating of FT_DEBUG_LEVEL_xxx macros.
Added a lot of #include directives to make `multi' builds possible -- note
that currently the modules cid, t1, and t1z have clashing structures and
functions which means that you can only use one of these three modules for a
multi build.
Added some missing function declarations to (local) header files.
Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot
of other functions should be renamed also...
Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished
yet...
Fixed FT_Free() to allow a NULL pointer without an assertion (this has
always been a valid assumption in FreeType, at least in FT 1.x).
A lot of other, minor fixes (mostly documentation).
2000-06-11 05:46:57 +02:00
|
|
|
ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32-bit
|
2000-03-05 02:14:19 +01:00
|
|
|
CONFIG_FILE := dos-bcc.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := bcc32
|
|
|
|
.PHONY: borlandc
|
|
|
|
endif
|
|
|
|
|
|
|
|
setup: dos_setup
|
|
|
|
|
|
|
|
endif # test Dos
|
|
|
|
endif # test COMSPEC
|
|
|
|
endif # test PLATFORM
|
|
|
|
|
|
|
|
# EOF
|