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

« back to all changes in this revision

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

  • 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 Microsoft C for MS-DOS, large model.
 
4
# It also works for Visual C++ 1.x 16-bits compiler, but you should
 
5
# instead use the Makefile customized for it, Makefile.VC.
 
6
# Due to size constraints, it does not try to pack all modules into one.
 
7
#
 
8
# Tested with Microsoft C v.6.0ax, C/C++ v.7.0, Visual C++ v.1.5.
 
9
# Microsoft C v.5.1 chokes on some (definitively) ANSI constructs,
 
10
# like switch() with an expression of type long. Upgrade your compiler!
 
11
#
 
12
# You will need NMAKE.
 
13
#
 
14
# Use this file while in the lib directory with the following statement:
 
15
#
 
16
#   nmake /f arch\msdos\Makefile.MS
 
17
#
 
18
#
 
19
# A debug version can be obtained with
 
20
#
 
21
#   nmake DEBUG=1 /f arch\msdos\Makefile.MS
 
22
#
 
23
# A special version enabled to handle big fonts (with more than 16,384
 
24
# glyphs) can be obtained with
 
25
#
 
26
#   nmake BIGFONTS=1 /f arch\msdos\Makefile.MS
 
27
#
 
28
#
 
29
# Copyright 1996-2002 by
 
30
# David Turner, Robert Wilhelm, and Werner Lemberg.
 
31
#
 
32
# This file is part of the FreeType project, and may only be used, modified,
 
33
# and distributed under the terms of the FreeType project license,
 
34
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
 
35
# indicate that you have read the license and understand and accept it
 
36
# fully.
 
37
 
 
38
ARCH = arch\msdos
 
39
FT_MAKEFILE = $(ARCH)\Makefile.MS
 
40
 
 
41
CC = cl /nologo
 
42
LIB = lib
 
43
 
 
44
!ifndef DEBUG
 
45
CFLAGS = /Ox /AL /W0 /G2 /I$(ARCH) /I. /Iextend
 
46
!else
 
47
CFLAGS = /Zi /AL /W0 /G2 /I$(ARCH) /I. /Iextend
 
48
!endif
 
49
 
 
50
 
 
51
!ifndef BIGFONTS
 
52
CFLAGS = $(CFLAGS) /Za
 
53
 
 
54
TTFILE = .\ttfile.c
 
55
TTMEMORY = .\ttmemory.c
 
56
!else
 
57
CFLAGS = $(CFLAGS) /DTT_HUGE_PTR=huge /Ze
 
58
 
 
59
TTFILE = $(ARCH)\hugefile.c
 
60
TTMEMORY = $(ARCH)\hugemem.c
 
61
!endif
 
62
 
 
63
TTMUTEX = .\ttmutex.c
 
64
 
 
65
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
 
66
 
 
67
OBJS_X = extend\ftxgasp.obj extend\ftxkern.obj  extend\ftxpost.obj \
 
68
         extend\ftxcmap.obj extend\ftxwidth.obj extend\ftxerr18.obj \
 
69
         extend\ftxsbit.obj extend\ftxopen.obj  extend\ftxgsub.obj \
 
70
         extend\ftxgpos.obj extend\ftxgdef.obj
 
71
# the line below does not work with these old versions of nmake...
 
72
# OBJS_X = $(SRC_X:.c=.obj)
 
73
 
 
74
OBJS_M = ttapi.obj     ttcache.obj   ttcalc.obj   ttcmap.obj  ttdebug.obj \
 
75
         ttgload.obj   ttinterp.obj  ttload.obj   ttobjs.obj  \
 
76
         ttraster.obj  ttextend.obj  $(PORT)      $(OBJS_X)
 
77
# OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
 
78
 
 
79
# Not used here because the compiler runs out of memory...
 
80
OBJ_S = $(ARCH)\freetype.obj
 
81
#SRC_S = $(ARCH)\freetype.c
 
82
OBJS_S = $(OBJ_S) $(OBJS_X)
 
83
 
 
84
 
 
85
# Since Microsoft's NMAKE does not handle $($(LIB_FILES)), and using
 
86
# LIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we include
 
87
# each .obj in the library as soon as it is compiled. Better schemes are
 
88
# used in the other Makefile's, please give them a look.
 
89
.c.obj:
 
90
        $(CC) /c /Fo$@ $(CFLAGS) $*.c
 
91
        $(LIB) libttf -+$*.obj;
 
92
 
 
93
 
 
94
!ifndef DEBUG
 
95
# Skipped if DEBUG build
 
96
#   (but it changes nothing, since we always build in multiple parts).
 
97
all: $(OBJS_M)
 
98
#       -del libttf.lib
 
99
#       $(LIB) libttf.lib @<<response
 
100
#+ $(OBJS_M: = -+ );
 
101
#<<KEEP
 
102
!endif
 
103
 
 
104
debug: $(OBJS_M)
 
105
#       -del libttf.lib
 
106
#       $(LIB) libttf.lib @<<response
 
107
#+ $(OBJS_M: = -+ );
 
108
#<<KEEP
 
109
 
 
110
#$(OBJ_S): $(SRC_S) $(SRC_M)
 
111
 
 
112
# Not used here because it excesses the capacity of COMMAND.COM...
 
113
libttf.lib: $(LIB_FILES)
 
114
        $(LIB) $@ +-$(?: =-+);
 
115
 
 
116
clean:
 
117
        -del *.obj
 
118
        -del extend\*.obj
 
119
        -del $(ARCH)\*.obj
 
120
        -del response
 
121
 
 
122
distclean: clean
 
123
        -del libttf.lib
 
124
 
 
125
!include "$(ARCH)\depend.dos"
 
126
 
 
127
# end of Makefile.MS