This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / subsys / win32k / freetype / builds / win32 / w32-lcc.mk
1 #
2 # FreeType 2 Configuration rules for Win32 + LCC
3 #
4
5
6 # Copyright 1996-2000 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
8 #
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
13 # fully.
14
15
16 ifndef TOP
17   TOP := .
18 endif
19
20 DELETE   := del
21 SEP      := /
22 HOSTSEP  := $(strip \ )
23 BUILD    := $(TOP)/builds/win32
24 PLATFORM := win32
25 CC       := lcc
26
27 # The directory where all object files are placed.
28 #
29 # Note that this is not $(TOP)/obj!
30 # This lets you build the library in your own directory with something like
31 #
32 #   set TOP=.../path/to/freetype2/top/dir...
33 #   mkdir obj
34 #   make -f %TOP%/Makefile setup [options]
35 #   make -f %TOP%/Makefile
36 #
37 OBJ_DIR := obj
38
39
40 # The directory where all library files are placed.
41 #
42 # By default, this is the same as $(OBJ_DIR), however, this can be changed
43 # to suit particular needs.
44 #
45 LIB_DIR := $(OBJ_DIR)
46
47
48 # The object file extension (for standard and static libraries).  This can be
49 # .o, .tco, .obj, etc., depending on the platform.
50 #
51 O  := obj
52 SO := obj
53
54 # The library file extension (for standard and static libraries).  This can
55 # be .a, .lib, etc., depending on the platform.
56 #
57 A  := lib
58 SA := lib
59
60
61 # The name of the final library file.  Note that the DOS-specific Makefile
62 # uses a shorter (8.3) name.
63 #
64 LIBRARY := freetype
65
66
67 # Path inclusion flag.  Some compilers use a different flag than `-I' to
68 # specify an additional include path.  Examples are `/i=' or `-J'.
69 #
70 I := -I
71
72
73 # C flag used to define a macro before the compilation of a given source
74 # object.  Usually is `-D' like in `-DDEBUG'.
75 #
76 D := -D
77
78
79 # The link flag used to specify a given library file on link.  Note that
80 # this is only used to compile the demo programs, not the library itself.
81 #
82 L := -Fl
83
84
85 # Target flag.
86 #
87 T := -Fo
88
89
90 # C flags
91 #
92 #   These should concern: debug output, optimization & warnings.
93 #
94 #   Use the ANSIFLAGS variable to define the compiler flags used to enfore
95 #   ANSI compliance.
96 #
97 ifndef CFLAGS
98   CFLAGS := -c -g2 -O
99 endif
100
101 # ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
102 #
103 ANSIFLAGS :=
104
105
106 ifdef BUILD_FREETYPE
107
108   # Now include the main sub-makefile.  It contains all the rules used to
109   # build the library with the previous variables defined.
110   #
111   include $(TOP)/builds/freetype.mk
112
113   # The cleanup targets.
114   #
115   clean_freetype: clean_freetype_dos
116   distclean_freetype: distclean_freetype_dos
117
118   # This final rule is used to link all object files into a single library. 
119   # It is part of the system-specific sub-Makefile because not all
120   # librarians accept a simple syntax like
121   #
122   #   librarian library_file {list of object files} 
123   #
124   $(FT_LIBRARY): $(OBJECTS_LIST)
125           lcclib /out:$(subst $(SEP),\\,$@) \
126                  $(subst $(SEP),\\,$(OBJECTS_LIST))
127
128 endif
129
130 # EOF