~ubuntu-branches/ubuntu/jaunty/texlive-bin/jaunty-security

« back to all changes in this revision

Viewing changes to build/source/libs/freetype/lib/arch/msdos/Makefile.BC

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2008-06-26 23:14:59 UTC
  • mfrom: (2.1.30 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080626231459-y02rjsrgtafu83yr
Tags: 2007.dfsg.2-3
add missing source roadmap.fig of roadmap.eps in fontinst documentation
(Closes: #482915) (urgency medium due to RC bug)
(new patch add-missing-fontinst-source)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This file is part of the FreeType project.
 
2
#
 
3
# It builds the library for Borland C++ for MS-DOS, large model.
 
4
# Due to size constraints, it does not try to pack all modules into one
 
5
# (`single-object mode').
 
6
#
 
7
# You will need Borland MAKE.
 
8
# Tested with Borland C++ v.3.1, 4.02, 4.51, 5.02.
 
9
# See below for a note for Borland C++ 2.0, 3.0 or Turbo C++ 3.0.
 
10
#
 
11
# Use this file while in the lib directory with the following statement:
 
12
#
 
13
#   make -farch/msdos/Makefile.BC
 
14
#
 
15
#
 
16
# A debug version can be obtained with
 
17
#
 
18
#   make -DDEBUG -farch/msdos/Makefile.BC
 
19
#
 
20
# A special version enabled to handle big fonts (with more than 16,384
 
21
# glyphs) can be obtained with
 
22
#
 
23
#   make -DBIGFONTS -farch/msdos/Makefile.BC
 
24
#
 
25
#
 
26
# Copyright 1996-2001 by
 
27
# David Turner, Robert Wilhelm, and Werner Lemberg.
 
28
#
 
29
# This file is part of the FreeType project, and may only be used, modified,
 
30
# and distributed under the terms of the FreeType project license,
 
31
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
 
32
# indicate that you have read the license and understand and accept it
 
33
# fully.
 
34
#
 
35
#
 
36
# Various notes about specific versions...
 
37
#
 
38
# NOTE: Borland C++ v. 2.0, 3.0, or Turbo C++ 3.0
 
39
#
 
40
#   There is something that will fail as it stands: the -i40 option
 
41
#   passed to CFLAGS was not recognized until v.3.1, so the compiler
 
42
#   will complain. So you should remove the -i40 option below.
 
43
#
 
44
#   Also, __huge was not introduced before v.3.1, so if you want the
 
45
#   BIGFONTS option, you should use _huge instead (and perhaps remove
 
46
#   -A in CFLAGS).
 
47
#
 
48
# NOTE 2: Turbo C++ 3.0
 
49
#
 
50
#   You should write `CC=tcc' below, as it should be obvious.
 
51
#   Alternatively, you can `set CC=tcc', then invoke make with -e.
 
52
#
 
53
# NOTE 3: Borland C++ 2.0
 
54
#
 
55
#   Not really very tested; expect problems with make (overflows).
 
56
#   Alternatively, use Makefile.TC, replacing there tcc with bcc.
 
57
 
 
58
 
 
59
ARCH = arch\msdos
 
60
FT_MAKEFILE = $(ARCH)\Makefile.BC
 
61
 
 
62
!if ! $d(CC)
 
63
CC = bcc
 
64
!endif
 
65
 
 
66
LIB = tlib /c /e
 
67
 
 
68
# Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern
 
69
# Borland compilers (from BC++ 3.1 on) can increase the limit on
 
70
# the length of identifiers.
 
71
 
 
72
!if ! $d(DEBUG)
 
73
CFLAGS = -ml -A -O2 -3 -i40 -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -I$(ARCH);.;extend
 
74
!else
 
75
CFLAGS = -v -N -ml -A -i40 -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -I$(ARCH);.;extend
 
76
!endif
 
77
 
 
78
 
 
79
!if $d(BIGFONTS)
 
80
CFLAGS = $(CFLAGS) -DTT_HUGE_PTR=__huge
 
81
 
 
82
TTFILE = $(ARCH)\.\hugefile.c
 
83
TTMEMORY = $(ARCH)\.\hugemem.c
 
84
!else
 
85
TTFILE = .\ttfile.c
 
86
TTMEMORY = .\ttmemory.c
 
87
!endif
 
88
TTMUTEX = .\ttmutex.c
 
89
 
 
90
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
 
91
 
 
92
# Do not insert spaces before the \ at end of line,
 
93
# otherwise the substitution for TLIB command line will fail.
 
94
SRC_X = extend\ftxgasp.c extend\ftxkern.c  extend\ftxpost.c \
 
95
        extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c \
 
96
        extend\ftxsbit.c extend\ftxgsub.c  extend\ftxgpos.c \
 
97
        extend\ftxopen.c extend\ftxgdef.c
 
98
OBJS_X = $(SRC_X:.c=.obj)
 
99
 
 
100
SRC_M = ttapi.c     ttcache.c   ttcalc.c   ttcmap.c \
 
101
        ttgload.c   ttinterp.c  ttload.c   ttobjs.c \
 
102
        ttraster.c  ttextend.c  ttdebug.c  $(PORT)
 
103
OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
 
104
 
 
105
SRC_S = $(ARCH)\.\freetype.c
 
106
OBJ_S = $(SRC_S:.c=.obj)
 
107
OBJS_S = $(OBJ_S) $(OBJS_X)
 
108
 
 
109
 
 
110
# Since Borland's make does not handle $($(LIB_FILES)), and using
 
111
# -DLIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat
 
112
# by constructing TLIB's response file directly in the `all' target.
 
113
#
 
114
# Another solution, useful during debugging of part of the library,
 
115
# would be to include each .obj in the library as soon as it is compiled.
 
116
# It is commented out below.  See Makefile.TC for an application.
 
117
.c.obj:
 
118
        $(CC) -c -o$* @&&|
 
119
            $(CFLAGS) $<
 
120
|
 
121
#       $(LIB) libttf +-$*.obj
 
122
 
 
123
 
 
124
!if !$d(DEBUG)
 
125
# Skipped if DEBUG build
 
126
#  (but it changes nothing, since we always build in multiple parts).
 
127
all: $(OBJS_M)
 
128
        -del libttf.lib
 
129
        $(LIB) libttf.lib @&&|
 
130
+ $(OBJS_M: = + )
 
131
|
 
132
 
 
133
!endif
 
134
 
 
135
 
 
136
debug: $(OBJS_M)
 
137
        -del libttf.lib
 
138
        $(LIB) libttf.lib @&&|
 
139
+ $(OBJS_M: = + )
 
140
|
 
141
 
 
142
$(OBJ_S): $(SRC_S) $(SRC_M)
 
143
 
 
144
# Not used here because it excesses the capacity of COMMAND.COM...
 
145
libttf.lib: $(LIB_FILES)
 
146
        -del libttf.lib
 
147
        $(LIB) libttf.lib @&&|
 
148
+ $(**: = + )
 
149
|
 
150
 
 
151
!if $d(BIGFONTS)
 
152
$(TTMEMORY:.c=.obj): $(TTMEMORY)
 
153
        $(CC) -c -o$* @&&|
 
154
            $(CFLAGS) -A- $*.c
 
155
|
 
156
!endif
 
157
 
 
158
 
 
159
clean:
 
160
        -del *.obj
 
161
        -del extend\*.obj
 
162
        -del $(ARCH)\*.obj
 
163
        -del libttf.bak
 
164
        -del response
 
165
 
 
166
distclean: clean
 
167
        -del libttf.lib
 
168
 
 
169
!include "$(ARCH)\depend.dos"
 
170
 
 
171
# end of Makefile