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