1
# This file is part of the FreeType project.
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.
11
# Use this file while in the 'test' directory with the following statement:
13
# nmake /f arch\win16\Makefile.MS
16
# A debug version can be obtained with
18
# nmake DEBUG=1 /f arch\win16\Makefile.MS
21
FT_MAKEFILE = $(ARCH)\Makefile.MS
22
FT_MAKE = $(MAKE) /nologo
27
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I. -I$(LIBDIR)\extend
30
CFLAGS = /Ox /AL /Za /W2 /G2 $(INCDIRS)
33
CFLAGS = /Zi /AL /Za /W2 /G2 $(INCDIRS)
37
CFLAGS = $(CFLAGS) /GA /Mq
38
LDFLAGS = $(LDFLAGS) /GA /Mq
41
# Windows graphic driver
42
GDRIVER = $(ARCH)\gw_win16.c
44
GSRC = display.c gmain.c blitter.c $(GDRIVER)
46
GOBJ = $(GSRC:.c=.obj)
71
EXEFILES = ftdump.exe \
84
# Skiped if DEBUG build
85
all: freetype $(EXEFILES)
89
debug: freetype_debug $(EXEFILES)
93
$(FT_MAKE) /f $(FT_MAKEFILE) all
98
$(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 debug
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.
106
$(CFLAGS) /Ze $(GDRIVER)
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
129
$(FT_MAKE) /f $(FT_MAKEFILE) clean
134
$(FT_MAKE) /f $(FT_MAKEFILE) distclean
143
!include "$(ARCH)\depend.win"