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