1
# This file is part of the FreeType project.
3
# It builds the library for Microsoft C for Windows, large model.
4
# It also works for Visual C++ 1.x 16-bit compilers, but you should
5
# instead use the Makefile customized for it, Makefile.VC.
6
# Due to size constraints, it does not try to pack all modules into one.
10
# Use this file while in the lib directory with the following statement:
12
# nmake /f arch\win16\Makefile.MS
15
# A debug version can be obtained with
17
# nmake DEBUG=1 /f arch\win16\Makefile.MS
20
FT_MAKEFILE = $(ARCH)\Makefile.MS
23
LIB = lib /noignorecase /nologo
26
CFLAGS = /Ox /AL /Za /W2 /G2 -I$(ARCH) -I. -Iextend
28
CFLAGS = /Zi /AL /Za /W2 /G2 -I$(ARCH) -I. -Iextend
31
# Use /Gw instead with Microsoft C version 6
32
CFLAGS = $(CFLAGS) /GA
36
TTMEMORY = .\ttmemory.c
39
PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
41
# Do not insert spaces between the file names or at end of line, otherwise
42
# the substitution for LIB command line will fail. Thank you.
44
SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c\
45
extend\ftxcmap.c extend\ftxwidth.c extend\ftxerr18.c extend\ftxsbit.c\
46
extend\ftxopen.c extend\ftxgsub.c extend\ftxgpos.c extend\ftxgdef.c
47
OBJS_X = $(SRC_X:.c=.obj)
49
SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c\
50
ttgload.c ttinterp.c ttload.c ttobjs.c ttraster.c ttextend.c $(PORT)
51
OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
53
SRC_S = $(ARCH)\freetype.c
54
OBJ_S = $(SRC_S:.c=.obj)
55
OBJS_S = $(OBJ_S) $(OBJS_X)
58
# Since Microsoft's NMAKE does not handle $($(LIB_FILES)), and using
59
# LIB_FILES="$(OBJS_S)" will excess the capacity of COMMAND.COM, we cheat
60
# by constructing LIB's response file directly in the `all' target.
62
# Another solution, useful during debugging of part of the library,
63
# would be to include each .obj in the library as soon as it is compiled.
64
# See ..\msdos\Makefile.TC for an application.
72
# Skipped if DEBUG build
73
# (but it changes nothing, since we always build in multiple parts).
76
$(LIB) libttf.lib @<<response
84
$(LIB) libttf.lib @<<response
89
$(OBJ_S): $(SRC_S) $(SRC_M)
91
# Not used here because it excesses the capacity of COMMAND.COM...
92
libttf.lib: $(LIB_FILES)
93
$(LIB) $@ +-$(?: =-+);
104
!include "$(ARCH)\depend.win"