blob: a3316c53f234b8c549c89becc17b468149a075ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
# This file is part of the FreeType project.
#
# It builds the library for Turbo C for MS-DOS, large model.
# Due to size constraints, it does not try to pack all modules into one.
#
# You will need Borland MAKE.
# Tested with Turbo C v.1.5, v.2.0, Turbo C++ v.1.0
# Turbo C v.1.0 (May '87) is too old (lack of structure assignment)
# to compile FreeType. Update your compiler. ;-)
#
# Use this file while in the lib directory with the following statement:
#
# make -farch/msdos/Makefile.TC
#
#
# A debug version can be obtained (except for TC1.5) with
#
# make -DDEBUG -farch/msdos/Makefile.TC
ARCH = arch\msdos
FT_MAKEFILE = $(ARCH)\Makefile.TC
CC = tcc
LIB = tlib /c
!if ! $d(DEBUG)
CFLAGS = -ml -A -a -G -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -I$(ARCH);.;extend
!else
# For Turbo C v.1.5, replace the -v option below by -y.
CFLAGS = -v -N -ml -A -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -I$(ARCH);.;extend
!endif
TTFILE = .\ttfile.obj
TTMEMORY = .\ttmemory.obj
TTMUTEX = .\ttmutex.obj
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
OBJS_X = extend\ftxgasp.obj extend\ftxkern.obj extend\ftxpost.obj \
extend\ftxcmap.obj extend\ftxwidth.obj extend\ftxerr18.obj \
extend\ftxsbit.obj extend\ftxopen.obj extend\ftxgsub.obj \
extend\ftxgpos.obj extend\ftxgdef.obj
# the line below does not work with these old versions of make...
# OBJS_X = $(SRC_X:.c=.obj)
OBJS_M = ttapi.obj ttcache.obj ttcalc.obj ttcmap.obj ttdebug.obj \
ttgload.obj ttinterp.obj ttload.obj ttobjs.obj \
ttraster.obj ttextend.obj $(PORT) $(OBJS_X)
# OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
# Not used here because the compiler runs out of memory...
OBJ_S = $(ARCH)\freetype.obj
OBJS_S = $(OBJ_S) $(OBJS_X)
# Since Borland's make is very primitive, we include each .obj
# in the library as soon as it is compiled.
.c.obj:
$(CC) $(CFLAGS) -c -o$* $<
$(LIB) libttf +-$*.obj
!if !$d(DEBUG)
# Skipped if DEBUG build
# (but it changes nothing, since we always build in multiple parts).
all: $(OBJS_M)
!endif
debug: $(OBJS_M)
clean:
-del *.obj
-del extend\*.obj
-del $(ARCH)\*.obj
-del libttf.bak
# -del response
distclean: clean
-del libttf.lib
!include "$(ARCH)\depend.dos"
# end of Makefile
|