1
# This file is part of the FreeType project.
3
# It builds the library and test programs for Microsoft Visual C++.
8
# Use this file while in the 'test' directory with the following statement:
10
# nmake /f arch\win32\Makefile.CL
12
# A DLL version of the library can be built and then used with
14
# nmake DLL=1 /f arch\win32\Makefile.CL dll
16
# (do not forget to define DLL, otherwise the link phase will fail).
19
# Debug versions can be obtained with
21
# nmake DEBUG=1 /f arch\win32\Makefile.CL
24
FT_MAKEFILE = $(ARCH)\Makefile.CL
25
FT_MAKE = $(MAKE) /nologo
31
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I. -I$(LIBDIR)\extend
35
CFLAGS = /Ox /W2 $(INCDIRS)
38
CFLAGS = /Zi /Ge /W2 $(INCDIRS)
43
CFLAGS = $(CFLAGS) /DEXPORT_DEF=__declspec(dllexport) /DFREETYPE_DLL
47
# Windows graphic driver
48
GDRIVER = $(ARCH)\gw_win32.c
50
GSRC = display.c gmain.c blitter.c $(GDRIVER)
52
GOBJ = $(GSRC:.c=.obj)
74
$(CFLAGS) $(CFLAGS_ANSI) $<
77
EXEFILES = ftdump.exe \
90
# Skiped if DEBUG build
91
all: freetype $(EXEFILES)
93
dll: the_dll $(EXEFILES)
96
# Skipped if non-DEBUG build
98
dll: the_debug_dll $(EXEFILES)
102
debug: freetype_debug $(EXEFILES)
106
$(FT_MAKE) /f $(FT_MAKEFILE) all
111
$(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 debug
116
$(FT_MAKE) /f $(FT_MAKEFILE) DLL=1 dll
118
-copy $(LIBDIR)\$(FT_DLL)
122
$(FT_MAKE) /f $(FT_MAKEFILE) DEBUG=1 DLL=1 dll
124
-copy $(LIBDIR)\$(FT_DLL)
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.
131
$(CFLAGS) /Ze $(GDRIVER)
136
$(LDFLAGS) $** GDI32.LIB USER32.LIB
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
154
$(FT_MAKE) /f $(FT_MAKEFILE) clean
159
$(FT_MAKE) /f $(FT_MAKEFILE) distclean
173
!include "$(ARCH)\depend.win"