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

« back to all changes in this revision

Viewing changes to build/source/libs/libttf/arch/msdos/Makefile.VC

  • 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 Visual C++ 1.x for MS-DOS, large model.
 
4
# It also works for Microsoft C/C++ v.7.0 16-bit compiler, but not for
 
5
# previous versions (use Makefile.MS instead).
 
6
#
 
7
# You will need NMAKE.
 
8
#
 
9
# Use this file while in the lib directory with the following statement:
 
10
#
 
11
#   nmake /f arch\msdos\Makefile.VC
 
12
#
 
13
#
 
14
# A debug version can be obtained with
 
15
#
 
16
#   nmake DEBUG=1 /f arch\msdos\Makefile.VC
 
17
#
 
18
# A special version enabled to handle big fonts (with more than 16,384
 
19
# glyphs) can be obtained with
 
20
#
 
21
#   nmake BIGFONTS=1 /f arch\msdos\Makefile.VC
 
22
 
 
23
ARCH = arch\msdos
 
24
FT_MAKEFILE = $(ARCH)\Makefile.VC
 
25
 
 
26
CC = cl /nologo
 
27
LIB = lib /noignorecase /nologo
 
28
 
 
29
# One can also consider using "set MSC_CMD_FLAGS=/Gr /Op- /Gy /YX".
 
30
# With Microsoft C/C++ 7.0, use /G2 instead of /G3.
 
31
!ifndef DEBUG
 
32
CFLAGS = $(CFLAGS) /Ox /AL /W2 /G3 /I$(ARCH) /I. /Iextend
 
33
!else
 
34
CFLAGS = $(CFLAGS) /Zi /Ge /AL /W2 /G3 /I$(ARCH) /I. /Iextend
 
35
!endif
 
36
 
 
37
 
 
38
!ifndef BIGFONTS
 
39
CFLAGS = $(CFLAGS) /Za
 
40
 
 
41
TTFILE = .\ttfile.c
 
42
TTMEMORY = .\ttmemory.c
 
43
!else
 
44
CFLAGS = $(CFLAGS) /DTT_HUGE_PTR=__huge /Ze
 
45
 
 
46
TTFILE = $(ARCH)\hugefile.c
 
47
TTMEMORY = $(ARCH)\hugemem.c
 
48
!endif
 
49
 
 
50
TTMUTEX = .\ttmutex.c
 
51
 
 
52
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
 
53
 
 
54
# Do not insert spaces between the file names or at end of line, otherwise
 
55
# the substitution for LIB command line will fail. Thank you.
 
56
#
 
57
SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c\
 
58
extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c extend\ftxsbit.c\
 
59
extend\ftxopen.c extend\ftxgsub.c extend\ftxgpos.c extend\ftxgdef.c
 
60
OBJS_X = $(SRC_X:.c=.obj)
 
61
 
 
62
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c\
 
63
ttgload.c ttinterp.c ttload.c ttobjs.c ttraster.c ttextend.c $(PORT)
 
64
OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
 
65
 
 
66
SRC_S = $(ARCH)\freetype.c
 
67
OBJ_S = $(SRC_S:.c=.obj)
 
68
OBJS_S = $(OBJ_S) $(OBJS_X)
 
69
 
 
70
 
 
71
# Since Microsoft's NMAKE does not handle $($(LIB_FILES)), and using
 
72
# LIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat
 
73
# by constructing LIB's response file directly in the `all' target.
 
74
#
 
75
# Another solution, useful during debugging of part of the library,
 
76
# would be to include each .obj in the library as soon as it is compiled.
 
77
# It is commented out below.  See Makefile.TC for an application.
 
78
.c.obj:
 
79
        @$(CC) /c /Fo$@ @<<
 
80
            $(CFLAGS) $*.c
 
81
<<
 
82
#       $(LIB) libttf +-$*.obj
 
83
 
 
84
 
 
85
!ifndef DEBUG
 
86
# Skipped if DEBUG build
 
87
all: $(OBJS_S)
 
88
        -del libttf.lib
 
89
        $(LIB) libttf.lib @<<response
 
90
+ $(OBJS_S: = + );
 
91
<<KEEP
 
92
!endif
 
93
 
 
94
debug: $(OBJS_M)
 
95
        -del libttf.lib
 
96
        $(LIB) libttf.lib @<<response
 
97
+ $(OBJS_M: = + );
 
98
<<KEEP
 
99
 
 
100
$(OBJ_S): $(SRC_S) $(SRC_M)
 
101
 
 
102
# Not used here because it excesses the capacity of COMMAND.COM...
 
103
libttf.lib: $(LIB_FILES)
 
104
        $(LIB) $@ +-$(?: =-+);
 
105
 
 
106
clean:
 
107
        -del *.obj
 
108
        -del extend\*.obj
 
109
        -del $(ARCH)\*.obj
 
110
        -del response
 
111
 
 
112
distclean: clean
 
113
        -del libttf.lib
 
114
 
 
115
!include "$(ARCH)\depend.dos"
 
116
 
 
117
# end of Makefile.VC