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

« back to all changes in this revision

Viewing changes to unix/xc/extras/FreeType/test/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 and test programs for Microsoft C compilers
 
4
# for 16-bit Windows, large model, using QuickWin to display console
 
5
# outputs. It also works for Visual C++ 1.x 16-bits compiler, but
 
6
# you should instead use the Makefile customized for it, Makefile.VC.
 
7
#
 
8
# You will need NMAKE.
 
9
#
 
10
#
 
11
# Use this file while in the 'test' directory with the following statement:
 
12
#
 
13
#   nmake /f arch\win16\Makefile.MS
 
14
#
 
15
#
 
16
# A debug version can be obtained with
 
17
#
 
18
#   nmake DEBUG=1 /f arch\win16\Makefile.MS
 
19
 
 
20
ARCH = arch\win16
 
21
FT_MAKEFILE = $(ARCH)\Makefile.MS
 
22
FT_MAKE = $(MAKE) /nologo
 
23
 
 
24
CC = cl /nologo
 
25
 
 
26
LIBDIR = ..\lib
 
27
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I. -I$(LIBDIR)\extend
 
28
 
 
29
!ifndef DEBUG
 
30
CFLAGS = /Ox /AL /Za /W2 /G2 $(INCDIRS)
 
31
LDFLAGS = /AL
 
32
!else
 
33
CFLAGS = /Zi /AL /Za /W2 /G2 $(INCDIRS)
 
34
LDFLAGS = /Zi /AL
 
35
!endif
 
36
 
 
37
CFLAGS = $(CFLAGS) /GA /Mq
 
38
LDFLAGS = $(LDFLAGS) /GA /Mq
 
39
 
 
40
 
 
41
# Windows graphic driver
 
42
GDRIVER = $(ARCH)\gw_win16.c
 
43
 
 
44
GSRC = display.c gmain.c blitter.c $(GDRIVER)
 
45
 
 
46
GOBJ = $(GSRC:.c=.obj)
 
47
 
 
48
 
 
49
SRC = arabic.c \
 
50
      common.c \
 
51
      ftdump.c \
 
52
      fterror.c \
 
53
      ftlint.c \
 
54
      ftmetric.c \
 
55
      ftsbit.c \
 
56
      ftstring.c \
 
57
      ftstrpnm.c \
 
58
      ftstrtto.c \
 
59
      fttimer.c \
 
60
      ftview.c \
 
61
      ftzoom.c
 
62
 
 
63
OBJ = $(SRC:.c=.obj)
 
64
 
 
65
 
 
66
.c.obj:
 
67
        @$(CC) /c /Fo$* @<<
 
68
            $(CFLAGS) $<
 
69
<<
 
70
 
 
71
EXEFILES = ftdump.exe \
 
72
           fterror.exe \
 
73
           ftlint.exe \
 
74
           ftmetric.exe \
 
75
           ftsbit.exe \
 
76
           ftstring.exe \
 
77
           ftstrpnm.exe \
 
78
           ftstrtto.exe \
 
79
           fttimer.exe \
 
80
           ftview.exe \
 
81
           ftzoom.exe
 
82
 
 
83
!ifndef DEBUG
 
84
# Skiped if DEBUG build
 
85
all: freetype $(EXEFILES)
 
86
 
 
87
!endif
 
88
 
 
89
debug: freetype_debug $(EXEFILES)
 
90
 
 
91
freetype:
 
92
        cd $(LIBDIR)
 
93
        $(FT_MAKE) /f $(FT_MAKEFILE) all
 
94
        cd ..\test
 
95
 
 
96
freetype_debug:
 
97
        cd $(LIBDIR)
 
98
        $(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 debug
 
99
        cd ..\test
 
100
 
 
101
 
 
102
# C compilers are unable to include 16-bit <windows.h> in ANSI mode.
 
103
# So we have a special rule for this file, to build it outside ANSI.
 
104
$(GDRIVER:.c=.obj):
 
105
        @$(CC) /c /Fo$* @<<
 
106
            $(CFLAGS) /Ze $(GDRIVER)
 
107
<<
 
108
 
 
109
.obj.exe:
 
110
        $(CC) /Fe$* @<<
 
111
            $(LDFLAGS) $**
 
112
<<
 
113
 
 
114
ftzoom.exe: $(GOBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.lib
 
115
ftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.lib
 
116
ftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.lib
 
117
ftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.lib
 
118
fttimer.exe: $(GOBJ) fttimer.obj common.obj $(LIBDIR)\libttf.lib
 
119
ftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.lib
 
120
ftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.lib
 
121
ftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
 
122
ftsbit.exe: ftsbit.obj common.obj $(LIBDIR)\libttf.lib
 
123
ftmetric.exe: ftmetric.obj common.obj $(LIBDIR)\libttf.lib
 
124
fterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.lib
 
125
 
 
126
 
 
127
clean: do_clean
 
128
        cd $(LIBDIR)
 
129
        $(FT_MAKE) /f $(FT_MAKEFILE) clean
 
130
        cd ..\test
 
131
 
 
132
distclean: do_clean
 
133
        cd $(LIBDIR)
 
134
        $(FT_MAKE) /f $(FT_MAKEFILE) distclean
 
135
        cd ..\test
 
136
        -del *.exe
 
137
 
 
138
do_clean:
 
139
        -del *.obj
 
140
        -del $(ARCH)\*.obj
 
141
 
 
142
 
 
143
!include "$(ARCH)\depend.win"
 
144
 
 
145
# end of Makefile.MS