1999-12-17 00:11:37 +01:00
|
|
|
#
|
2000-03-05 02:14:19 +01:00
|
|
|
# FreeType 2 configuration file to detect a Win32 host platform.
|
1999-12-17 00:11:37 +01:00
|
|
|
#
|
|
|
|
|
2000-01-07 15:37:00 +01:00
|
|
|
|
2000-03-05 02:14:19 +01:00
|
|
|
# Copyright 1996-2000 by
|
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
2000-01-07 15:37:00 +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.
|
2000-01-07 15:37:00 +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
|
|
|
# Detecting Windows NT is easy, as the OS variable must be defined and
|
|
|
|
# contains `Windows_NT'. Untested with Windows 2K, but I guess it should
|
|
|
|
# work...
|
|
|
|
#
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
is_windows := 1
|
|
|
|
|
|
|
|
# We test for the COMSPEC environment variable, then run the `ver'
|
|
|
|
# command-line program to see if its output contains the word `Windows'.
|
|
|
|
#
|
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
|
|
|
# If this is true, we are running a win32 platform (or an emulation).
|
2000-03-05 02:14:19 +01:00
|
|
|
#
|
|
|
|
else
|
|
|
|
ifdef COMSPEC
|
|
|
|
is_windows := $(findstring Windows,$(strip $(shell ver)))
|
|
|
|
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
|
|
|
endif # test NT
|
2000-03-05 02:14:19 +01:00
|
|
|
|
|
|
|
ifdef is_windows
|
|
|
|
|
|
|
|
PLATFORM := win32
|
|
|
|
DELETE := del
|
|
|
|
COPY := copy
|
|
|
|
|
|
|
|
CONFIG_FILE := w32-gcc.mk # gcc Makefile by default
|
|
|
|
SEP := /
|
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
|
|
|
ifeq ($(firstword $(CC)),cc)
|
2000-03-05 02:14:19 +01:00
|
|
|
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 visualc,$(MAKECMDGOALS)),) # Visual C/C++
|
|
|
|
CONFIG_FILE := w32-vcc.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := cl
|
|
|
|
visualc: setup
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
|
|
|
CONFIG_FILE := w32-wat.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := wcc386
|
|
|
|
watcom: setup
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
|
|
|
|
CONFIG_FILE := w32-icc.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := icc
|
|
|
|
visualage: setup
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring lcc,$(MAKECMDGOALS)),) # LCC-Win32
|
|
|
|
CONFIG_FILE := w32-lcc.mk
|
|
|
|
SEP := $(BACKSLASH)
|
|
|
|
CC := lcc
|
|
|
|
lcc: setup
|
|
|
|
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 devel,$(MAKECMDGOALS)),) # development target
|
2000-03-05 02:14:19 +01:00
|
|
|
CONFIG_FILE := w32-dev.mk
|
|
|
|
CC := gcc
|
|
|
|
SEP := /
|
|
|
|
devel: setup
|
|
|
|
endif
|
|
|
|
|
|
|
|
setup: dos_setup
|
|
|
|
|
|
|
|
endif # test is_windows
|
|
|
|
endif # test PLATFORM
|
|
|
|
|
|
|
|
# EOF
|