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

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/test/arch/win32/Makefile.CL

  • 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 and test programs for Microsoft Visual C++.
 
4
#
 
5
# You will need NMAKE.
 
6
#
 
7
#
 
8
# Use this file while in the 'test' directory with the following statement:
 
9
#
 
10
#   nmake /f arch\win32\Makefile.CL
 
11
#
 
12
# A DLL version of the library can be built and then used with
 
13
#
 
14
#   nmake DLL=1 /f arch\win32\Makefile.CL dll
 
15
#
 
16
# (do not forget to define DLL, otherwise the link phase will fail).
 
17
#
 
18
#
 
19
# Debug versions can be obtained with
 
20
#
 
21
#   nmake DEBUG=1 /f arch\win32\Makefile.CL
 
22
 
 
23
ARCH = arch\win32
 
24
FT_MAKEFILE = $(ARCH)\Makefile.CL
 
25
FT_MAKE = $(MAKE) /nologo
 
26
FT_DLL = ft13_32.dll
 
27
 
 
28
CC = cl /nologo
 
29
 
 
30
LIBDIR = ..\lib
 
31
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I. -I$(LIBDIR)\extend
 
32
 
 
33
CFLAGS_ANSI = /Za
 
34
!ifndef DEBUG
 
35
CFLAGS =     /Ox /W2 $(INCDIRS)
 
36
LDFLAGS = 
 
37
!else
 
38
CFLAGS = /Zi /Ge /W2 $(INCDIRS)
 
39
LDFLAGS = /Zi
 
40
!endif
 
41
 
 
42
!ifdef DLL
 
43
CFLAGS = $(CFLAGS) /DEXPORT_DEF=__declspec(dllexport) /DFREETYPE_DLL
 
44
!endif
 
45
 
 
46
 
 
47
# Windows graphic driver
 
48
GDRIVER = $(ARCH)\gw_win32.c
 
49
 
 
50
GSRC = display.c gmain.c blitter.c $(GDRIVER)
 
51
 
 
52
GOBJ = $(GSRC:.c=.obj)
 
53
 
 
54
 
 
55
SRC = arabic.c \
 
56
      common.c \
 
57
      ftdump.c \
 
58
      fterror.c \
 
59
      ftlint.c \
 
60
      ftmetric.c \
 
61
      ftsbit.c \
 
62
      ftstring.c \
 
63
      ftstrpnm.c \
 
64
      ftstrtto.c \
 
65
      fttimer.c \
 
66
      ftview.c \
 
67
      ftzoom.c
 
68
 
 
69
OBJ = $(SRC:.c=.obj)
 
70
 
 
71
 
 
72
.c.obj:
 
73
        @$(CC) /c /Fo$* @<<
 
74
                 $(CFLAGS) $(CFLAGS_ANSI) $<
 
75
<<
 
76
 
 
77
EXEFILES = ftdump.exe \
 
78
           fterror.exe \
 
79
           ftlint.exe \
 
80
           ftmetric.exe \
 
81
           ftsbit.exe \
 
82
           ftstring.exe \
 
83
           ftstrpnm.exe \
 
84
           ftstrtto.exe \
 
85
           fttimer.exe \
 
86
           ftview.exe \
 
87
           ftzoom.exe
 
88
 
 
89
!ifndef DEBUG
 
90
# Skiped if DEBUG build
 
91
all: freetype $(EXEFILES)
 
92
 
 
93
dll: the_dll $(EXEFILES)
 
94
 
 
95
!else
 
96
# Skipped if non-DEBUG build
 
97
default_target: debug
 
98
dll: the_debug_dll $(EXEFILES)
 
99
 
 
100
!endif
 
101
 
 
102
debug: freetype_debug $(EXEFILES)
 
103
 
 
104
freetype:
 
105
        cd $(LIBDIR)
 
106
        $(FT_MAKE) /f $(FT_MAKEFILE) all
 
107
        cd ..\test
 
108
 
 
109
freetype_debug:
 
110
        cd $(LIBDIR)
 
111
        $(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 debug
 
112
        cd ..\test
 
113
 
 
114
the_dll:
 
115
        cd $(LIBDIR)
 
116
        $(FT_MAKE) /f $(FT_MAKEFILE) DLL=1 dll
 
117
        cd ..\test
 
118
    -copy $(LIBDIR)\$(FT_DLL)
 
119
 
 
120
the_debug_dll:
 
121
        cd $(LIBDIR)
 
122
        $(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 DLL=1 dll
 
123
        cd ..\test
 
124
    -copy $(LIBDIR)\$(FT_DLL)
 
125
 
 
126
 
 
127
# C compilers are unable to include 32-bit <windows.h> in ANSI mode.
 
128
# So we have a special rule for this file, to build it outside ANSI.
 
129
$(GDRIVER:.c=.obj):
 
130
        $(CC) /c /Fo$* @<<
 
131
            $(CFLAGS) /Ze $(GDRIVER)
 
132
<<
 
133
 
 
134
.obj.exe:
 
135
        $(CC) /Fe$* @<<
 
136
            $(LDFLAGS) $** GDI32.LIB USER32.LIB
 
137
<<
 
138
 
 
139
ftzoom.exe: $(GOBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.lib
 
140
ftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.lib
 
141
ftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.lib
 
142
ftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.lib
 
143
fttimer.exe: $(GOBJ) fttimer.obj common.obj $(LIBDIR)\libttf.lib
 
144
ftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.lib
 
145
ftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.lib
 
146
ftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
 
147
ftsbit.exe: ftsbit.obj common.obj $(LIBDIR)\libttf.lib
 
148
ftmetric.exe: ftmetric.obj common.obj $(LIBDIR)\libttf.lib
 
149
fterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.lib
 
150
 
 
151
 
 
152
clean: do_clean
 
153
        cd $(LIBDIR)
 
154
        $(FT_MAKE) /f $(FT_MAKEFILE) clean
 
155
        cd ..\test
 
156
 
 
157
distclean: do_clean
 
158
        cd $(LIBDIR)
 
159
        $(FT_MAKE) /f $(FT_MAKEFILE) distclean
 
160
        cd ..\test
 
161
        -del *.exe
 
162
        -del *.dll
 
163
        -del *.pdb
 
164
 
 
165
do_clean:
 
166
        -del *.obj
 
167
        -del $(ARCH)\*.obj
 
168
        -del *.ilk
 
169
        -del *.pch
 
170
        -del *.exp
 
171
 
 
172
 
 
173
!include "$(ARCH)\depend.win"
 
174
 
 
175
# end of Makefile.CL