~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/lib/arch/win16/Makefile.MS

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

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