1 # This file is part of the FreeType project.
3 # It builds the library and test programs for IBM VisualAge C++ under OS/2.
7 # Use this file while in the lib directory with the following statement:
9 # nmake -f arch\os2\Makefile.icc
13 FT_MAKEFILE = $(ARCH)\Makefile.icc
14 FT_MAKE = $(MAKE) -nologo
17 CFLAGS = -Wcnd- -Wpro- -Ss -Sp1 -Rn -Ge- -O+ -G4 -Q+ -Iarch\os2 -I. -Iextend
18 #CFLAGS = -Wcnd- -Wpro- -Ss -Sp1 -Rn -Ge- -Ti+ Q+ -Iarch\os2 -I. -Iextend
20 # NOTE: Optimizations are discarded, as it seems that Visual Age
21 # is buggy when producing ttraster.obj. The resulting code
22 # crashes under some circumstances (performing vertical dropout
23 # control when rendering smoothed outlines)!
25 TTFILE = $(ARCH)\os2file.c
26 TTMEMORY = .\ttmemory.c
29 PORT = $(TTFILE) $(TTMEMORY) $(TTMUTEX)
31 SRC_X = extend\ftxgasp.c extend\ftxkern.c extend\ftxpost.c \
32 extend\ftxcmap.c extend\ftxwidth.c
33 OBJS_X = $(SRC_X:.c=.obj)
35 SRC_M = ttapi.c ttcache.c ttcalc.c ttcmap.c ttdebug.c \
36 ttgload.c ttinterp.c ttload.c ttobjs.c ttraster.c \
38 OBJS_M = $(SRC_M:.c=.obj) $(OBJS_X)
40 SRC_S = $(ARCH)\freetype.c
41 OBJ_S = $(SRC_S:.c=.obj)
42 OBJS_S = $(OBJ_S) $(OBJS_X)
46 $(FT_MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJS_S)" libttf.lib
49 $(FT_MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJS_M)" libttf.lib
52 $(OBJ_S): $(SRC_S) $(SRC_M)
53 $(CC) -C $(CFLAGS) /Fo$@ $*.c
56 $(CC) -C $(CFLAGS) /Fo$@ $*.c
59 $(CC) -C $(CFLAGS) /Fo$@ $*.c
61 libttf.lib: $(LIB_FILES)
62 !ilib /nologo /noignorecase /nobackup $@ -+$?,,