1 This document contains instructions how to build the FreeType library
2 on non-Unix systems with the help of GNU Make. Note that if you are
3 running Cygwin or MSys in Windows, you should follow the instructions
4 in the file INSTALL.UNIX instead.
7 FreeType 2 includes a powerful and flexible build system that allows
8 you to easily compile it on a great variety of platforms from the
9 command line. To do so, just follow these simple instructions.
14 Because GNU Make is the only Make tool supported to compile
15 FreeType 2, you should install it on your machine.
17 The FreeType 2 build system relies on many features special to GNU
20 NEARLY ALL OTHER MAKE TOOLS FAIL, INCLUDING `BSD MAKE', SO REALLY
21 INSTALL A RECENT VERSION OF GNU MAKE ON YOUR SYSTEM!
23 Note that make++, a make tool written in Perl, supports enough
24 features of GNU make to compile FreeType. See
26 http://makepp.sourceforge.net
28 for more information; you need version 1.19 or newer, and you must
29 pass option `--norc-substitution'.
31 Make sure that you are invoking GNU Make from the command line, by
32 typing something like:
36 to display its version number.
38 VERSION 3.80 OR NEWER IS NEEDED!
44 Go to the root directory of FreeType 2, then simply invoke GNU
45 Make from the command line. This will launch the FreeType 2 host
46 platform detection routines. A summary will be displayed, for
50 ==============================================================
51 FreeType build system -- automatic system detection
53 The following settings are used:
57 configuration directory .\builds\win32
58 configuration rules .\builds\win32\w32-gcc.mk
60 If this does not correspond to your system or settings please
61 remove the file 'config.mk' from this directory then read the
62 INSTALL file for help.
64 Otherwise, simply type 'make' again to build the library
65 or 'make refdoc' to build the API reference (the latter needs
67 =============================================================
70 If the detected settings correspond to your platform and compiler,
71 skip to step 5. Note that if your platform is completely alien to
72 the build system, the detected platform will be `ansi'.
75 3. Configure the build system for a different compiler
76 ------------------------------------------------------
78 If the build system correctly detected your platform, but you want
79 to use a different compiler than the one specified in the summary
80 (for most platforms, gcc is the default compiler), invoke GNU Make
87 to use Visual C++ on Win32, type: `make setup visualc'
88 to use Borland C++ on Win32, type `make setup bcc32'
89 to use Watcom C++ on Win32, type `make setup watcom'
90 to use Intel C++ on Win32, type `make setup intelc'
91 to use LCC-Win32 on Win32, type: `make setup lcc'
92 to use Watcom C++ on OS/2, type `make setup watcom'
93 to use VisualAge C++ on OS/2, type `make setup visualage'
95 The <compiler> name to use is platform-dependent. The list of
96 available compilers for your system is available in the file
97 `builds/<system>/detect.mk'.
99 If you are satisfied by the new configuration summary, skip to
103 4. Configure the build system for an unknown platform/compiler
104 --------------------------------------------------------------
106 The auto-detection/setup phase of the build system copies a file
107 to the current directory under the name `config.mk'.
109 For example, on OS/2+gcc, it would simply copy
110 `builds/os2/os2-gcc.mk' to `./config.mk'.
112 If for some reason your platform isn't correctly detected, copy
113 manually the configuration sub-makefile to `./config.mk' and go to
116 Note that this file is a sub-Makefile used to specify Make
117 variables for compiler and linker invocation during the build.
118 You can easily create your own version from one of the existing
119 configuration files, then copy it to the current directory under
120 the name `./config.mk'.
126 The auto-detection/setup phase should have copied a file in the
127 current directory, called `./config.mk'. This file contains
128 definitions of various Make variables used to invoke the compiler
129 and linker during the build. [It has also generated a file called
130 `ftmodule.h' in the objects directory (which is normally
131 `<toplevel>/objs/'); please read the file `docs/CUSTOMIZE' for
132 customization of FreeType.]
134 To launch the build, simply invoke GNU Make again: The top
135 Makefile will detect the configuration file and run the build with
141 The build system builds a statically linked library of the font
142 engine in the `objs' directory. It does _not_ support the build
143 of DLLs on Windows and OS/2. If you need these, you have to
144 either use an IDE-specific project file, or follow the
145 instructions in `INSTALL.ANY' to create your own Makefiles.
147 ----------------------------------------------------------------------
149 Copyright 2003, 2004, 2005, 2006, 2008 by
150 David Turner, Robert Wilhelm, and Werner Lemberg.
152 This file is part of the FreeType project, and may only be used,
153 modified, and distributed under the terms of the FreeType project
154 license, LICENSE.TXT. By continuing to use, modify, or distribute
155 this file you indicate that you have read the license and understand
159 --- end of INSTALL.GNU ---