contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / contrib / ftos2 / lib / arch / os2 / Makefile.icc
blob7d83f33936b64a2fa15fe80086007307a30613df
1 # This file is part of the FreeType project.
3 # It builds the library and test programs for IBM VisualAge C++ under OS/2.
5 # You will need nmake.
7 # Use this file while in the lib directory with the following statement:
9 #   nmake -f arch\os2\Makefile.icc
12 ARCH = arch\os2
13 FT_MAKEFILE = $(ARCH)\Makefile.icc
14 FT_MAKE = $(MAKE) -nologo
16 CC = icc
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
27 TTMUTEX = .\ttmutex.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 \
37         ttextend.c  $(PORT)
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)
45 all:
46   $(FT_MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJS_S)" libttf.lib
48 debug:
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
55 $(OBJS_X):
56   $(CC) -C $(CFLAGS) /Fo$@ $*.c
58 $(ARCH)\os2file.obj:
59   $(CC) -C $(CFLAGS) /Fo$@ $*.c
61 libttf.lib: $(LIB_FILES)
62   !ilib /nologo /noignorecase /nobackup $@ -+$?,,
64 clean:
65   -del *.obj
66   -del extend\*.obj
67   -del arch\os2\*.obj
69 distclean: clean
70   -del libttf.lib
72 # end of Makefile.icc