2 # FreeType 2 Configuration rules for Win32 + IBM Visual Age C++
6 # Copyright 1996-2000 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
9 # This file is part of the FreeType project, and may only be used, modified,
10 # and distributed under the terms of the FreeType project license,
11 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
12 # indicate that you have read the license and understand and accept it
18 HOSTSEP := $(strip \ )
19 BUILD := $(TOP)$(SEP)config$(SEP)win32
23 # The directory where all object files are placed.
25 # Note that this is not $(TOP)/obj!
26 # This lets you build the library in your own directory with something like
28 # set TOP=.../path/to/freetype2/top/dir...
30 # make -f %TOP%/Makefile setup [options]
31 # make -f %TOP%/Makefile
36 # The directory where all library files are placed.
38 # By default, this is the same as $(OBJ_DIR), however, this can be changed
39 # to suit particular needs.
44 # The object file extension (for standard and static libraries). This can be
45 # .o, .tco, .obj, etc., depending on the platform.
50 # The library file extension (for standard and static libraries). This can
51 # be .a, .lib, etc., depending on the platform.
57 # The name of the final library file. Note that the DOS-specific Makefile
58 # uses a shorter (8.3) name.
63 # Path inclusion flag. Some compilers use a different flag than `-I' to
64 # specify an additional include path. Examples are `/i=' or `-J'.
69 # C flag used to define a macro before the compilation of a given source
70 # object. Usually is `-D' like in `-DDEBUG'.
75 # The link flag used to specify a given library file on link. Note that
76 # this is only used to compile the demo programs, not the library itself.
88 # These should concern: debug output, optimization & warnings.
91 CFLAGS := /Q- /Gd+ /O2 /G5 /W3 /C
94 # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
101 # Now include the main sub-makefile. It contains all the rules used to
102 # build the library with the previous variables defined.
104 include $(TOP)/builds/freetype.mk
106 # The cleanup targets.
108 clean_freetype: clean_freetype_dos
109 distclean_freetype: distclean_freetype_dos
111 # This final rule is used to link all object files into a single library.
112 # It is part of the system-specific sub-Makefile because not all
113 # librarians accept a simple syntax like
115 # librarian library_file {list of object files}
117 $(FT_LIBRARY): $(OBJECTS_LIST)
118 lib /nologo /out:$@ $(OBJECTS_LIST)