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

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/test/arch/msdos/Makefile.VC

  • 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++ 1.x
 
4
# and Microsoft C/C++ v.7.0 16-bit compilers for MS-DOS, large model.
 
5
#
 
6
# You will need NMAKE.
 
7
#
 
8
#
 
9
# Use this file while in the 'test' directory with the following statement:
 
10
#
 
11
#   nmake /f arch\msdos\Makefile.VC
 
12
#
 
13
#
 
14
# Debug versions 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
FT_MAKE = $(MAKE) /nologo
 
26
 
 
27
CC = cl /nologo
 
28
 
 
29
LIBDIR = ..\lib
 
30
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I. -I$(LIBDIR)\extend
 
31
 
 
32
# One can also consider using "set MSC_CMD_FLAGS=/Gr /Op- /Gy /YX".
 
33
# With Microsoft C/C++ 7.0, use /G2 instead of /G3.
 
34
!ifndef DEBUG
 
35
CFLAGS = /Ox /AL /Za /W2 /G3 $(INCDIRS)
 
36
LDFLAGS = /AL
 
37
!else
 
38
CFLAGS = /Zi /Ge /AL /Za /W2 /G3 $(INCDIRS)
 
39
LDFLAGS = /Zi /AL
 
40
!endif
 
41
 
 
42
 
 
43
# full-screen MSDOS driver
 
44
GDRIVER = $(ARCH)\gfs_dos.c
 
45
 
 
46
GSRC = display.c gmain.c blitter.c $(GDRIVER)
 
47
 
 
48
GOBJ = $(GSRC:.c=.obj)
 
49
 
 
50
 
 
51
SRC = arabic.c \
 
52
      common.c \
 
53
      ftdump.c \
 
54
      fterror.c \
 
55
      ftlint.c \
 
56
      ftmetric.c \
 
57
      ftsbit.c \
 
58
      ftstring.c \
 
59
      ftstrpnm.c \
 
60
      ftstrtto.c \
 
61
      fttimer.c \
 
62
      ftview.c \
 
63
      ftzoom.c
 
64
 
 
65
OBJ = $(SRC:.c=.obj)
 
66
 
 
67
 
 
68
.c.obj:
 
69
        @$(CC) /c /Fo$* @<<
 
70
            $(CFLAGS) $<
 
71
<<
 
72
 
 
73
EXEFILES = ftdump.exe \
 
74
           fterror.exe \
 
75
           ftlint.exe \
 
76
           ftmetric.exe \
 
77
           ftsbit.exe \
 
78
           ftstring.exe \
 
79
           ftstrpnm.exe \
 
80
           ftstrtto.exe \
 
81
           fttimer.exe \
 
82
           ftview.exe \
 
83
           ftzoom.exe
 
84
 
 
85
!ifndef DEBUG
 
86
# Skiped if DEBUG build
 
87
all: freetype $(EXEFILES)
 
88
 
 
89
!endif
 
90
 
 
91
debug: freetype_debug $(EXEFILES)
 
92
 
 
93
!ifdef BIGFONTS
 
94
MAKEBIG = BIGFONTS=1
 
95
!endif
 
96
 
 
97
freetype:
 
98
        cd $(LIBDIR)
 
99
        $(FT_MAKE) /f $(FT_MAKEFILE) $(MAKEBIG) all
 
100
        cd ..\test
 
101
 
 
102
freetype_debug:
 
103
        cd $(LIBDIR)
 
104
        $(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 $(MAKEBIG) debug
 
105
        cd ..\test
 
106
 
 
107
.obj.exe:
 
108
        $(CC) /Fe$* @<<
 
109
            $(LDFLAGS) $**
 
110
<<
 
111
 
 
112
ftzoom.exe: $(GOBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.lib
 
113
ftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.lib
 
114
ftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.lib
 
115
ftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.lib
 
116
fttimer.exe: $(GOBJ) fttimer.obj common.obj $(LIBDIR)\libttf.lib
 
117
ftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.lib
 
118
ftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.lib
 
119
ftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
 
120
ftsbit.exe: ftsbit.obj common.obj $(LIBDIR)\libttf.lib
 
121
ftmetric.exe: ftmetric.obj common.obj $(LIBDIR)\libttf.lib
 
122
fterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.lib
 
123
 
 
124
 
 
125
clean: do_clean
 
126
        cd $(LIBDIR)
 
127
        $(FT_MAKE) /f $(FT_MAKEFILE) clean
 
128
        cd ..\test
 
129
 
 
130
distclean: do_clean
 
131
        cd $(LIBDIR)
 
132
        $(FT_MAKE) /f $(FT_MAKEFILE) distclean
 
133
        cd ..\test
 
134
        -del *.exe
 
135
 
 
136
do_clean:
 
137
        -del *.obj
 
138
        -del $(ARCH)\*.obj
 
139
 
 
140
 
 
141
!include "$(ARCH)\depend.dos"
 
142
 
 
143
# end of Makefile.VC