1 # This file is part of the FreeType project
3 # This builds the test programs with the Watcom compiler
5 # You'll need Watcom's wmake
7 # Invoke by "wmake -f arch\os2\Makefile.wat" when in the "test" directory
10 FT_MAKEFILE = $(ARCH)\Makefile.wat
14 .EXTENSIONS: .exe .obj .c .h
22 INCDIRS = -I$(LIBDIR) -I$(LIBDIR)\$(ARCH) -I$(LIBDIR)\extend
23 LIBFILE = $(LIBDIR)\libttf.lib
27 OBJ_CFLAGS = /c /otexanl+ /s /w4 /zq $(INCDIRS)
29 CCFLAGS = /otexanl+ /s /w4 /zq $(INCDIRS)
31 GFSDRIVER = $(ARCH)\gfs_os2.obj
32 GFSDRIVER_SRC = $(ARCH)\gfs_os2.c
34 GPMDRIVER = $(ARCH)\gpm_os2.obj
35 GPMDRIVER_SRC = $(ARCH)\gpm_os2.c
36 GPMDRIVER_DEF = $(ARCH)\gpm_os2.def
38 SRC = gmain.c display.c blitter.c &
39 fttimer.c ftview.c ftlint.c ftzoom.c ftdump.c ftstring.c &
40 ftstrpnm.c ftsbit.c ftmetric.c ftstrtto.c &
41 $(GPMDRIVER_SRC) $(GFSDRIVER_SRC)
43 GFSOBJ = gmain.obj $(GFSDRIVER) blitter.obj display.obj
44 GPMOBJ = gmain.obj $(GPMDRIVER) blitter.obj display.obj
46 PM = $(LIBFILE) $(GPMOBJ) common.obj
47 FS = $(LIBFILE) $(GFSOBJ) common.obj
50 # graphics utility and test driver
52 EXEFILES = ftview.exe ftviewfs.exe &
53 fttimer.exe fttimefs.exe &
56 ftstring.exe ftstrfs.exe &
57 ftzoom.exe ftzoomfs.exe &
61 ftstrtto.exe ftstrtfs.exe
64 all: freetype $(EXEFILES)
66 debug: freetype_debug $(EXEFILES)
71 $(FT_MAKE) -f $(FT_MAKEFILE) all
74 freetype_debug: .symbolic
76 $(FT_MAKE) -f $(FT_MAKEFILE) debug
82 $(CC) $(OBJ_CFLAGS) $[* /fo=$[*.obj
85 # the full-screen graphics driver
87 $(GFSDRIVER): $(GFSDRIVER_SRC)
88 $(CC) $(OBJ_CFLAGS) $[*.c /fo=$[*.obj
90 # the pm graphics driver
92 $(GPMDRIVER): $(GPMDRIVER_SRC)
93 $(CC) $(OBJ_CFLAGS) $[*.c /fo=$[*.obj
95 ftzoom.exe : ftzoom.obj $(LIBFILE) $(PM) $(GPMDRIVER_DEF)
96 $(CC) $(CCFLAGS) -l=os2v2_pm $(PM) $[*.c /fe=$[*.exe
98 ftzoomfs.exe : ftzoom.obj $(LIBFILE) $(FS)
99 $(CC) $(CCFLAGS) $(FS) $[@ /fe=ftzoomfs.exe
101 ftview.exe : ftview.obj $(LIBFILE) $(PM) $(GPMDRIVER_DEF)
102 $(CC) $(CCFLAGS) -l=os2v2_pm $(PM) $[*.c /fe=$[*.exe
104 ftviewfs.exe : ftview.obj $(LIBFILE) $(FS)
105 $(CC) $(CCFLAGS) $(FS) $[*.c /fe=ftviewfs.exe
107 ftstring.exe : ftstring.obj $(LIBFILE) $(PM) $(GPMDRIVER_DEF)
108 $(CC) $(CCFLAGS) -l=os2v2_pm $(PM) $[*.c /fe=$[*.exe
110 ftstrfs.exe : ftstring.obj $(LIBFILE) $(FS)
111 $(CC) $(CCFLAGS) $(FS) $[*.c /fe=ftstrfs.exe
113 fttimer.exe: fttimer.obj $(LIBFILE) $(PM) $(GPMDRIVER_DEF)
114 $(CC) $(CCFLAGS) -l=os2v2_pm $(PM) $[*.c /fe=$[*.exe
116 fttimefs.exe: fttimer.obj $(LIBFILE) $(FS)
117 $(CC) $(CCFLAGS) $(FS) $[*.c /fe=fttimefs.exe
119 ftlint.exe: ftlint.obj $(LIBFILE)
120 $(CC) $(CCFLAGS) $(LIBFILE) common.obj $[*.c /fe=$[*.exe
122 ftdump.exe: ftdump.obj $(LIBFILE)
123 $(CC) $(CCFLAGS) $(LIBFILE) common.obj $[*.c /fe=$[*.exe
125 ftstrpnm.exe: ftstrpnm.obj $(LIBFILE)
126 $(CC) $(CCFLAGS) $(LIBFILE) common.obj $[*.c /fe=$[*.exe
128 ftsbit.exe: ftsbit.obj $(LIBFILE)
129 $(CC) $(CCFLAGS) $(LIBFILE) common.obj $[*.c /fe=$[*.exe
131 ftmetric.exe: ftmetric.obj $(LIBFILE)
132 $(CC) $(CCFLAGS) $(LIBFILE) common.obj $[*.c /fe=$[*.exe
134 ftstrtto.exe : ftstrtto.obj arabic.obj $(LIBFILE) $(PM) $(GPMDRIVER_DEF)
135 $(CC) $(CCFLAGS) -l=os2v2_pm $(PM) $[*.c /fe=$[*.exe
137 ftstrtfs.exe : ftstrtto.obj arabic.obj $(LIBFILE) $(FS)
138 $(CC) $(CCFLAGS) $(FS) $[*.c /fe=ftstrtfs.exe
143 @-erase $(ARCH)\*.obj
145 distclean: .symbolic clean
149 $(FT_MAKE) -f $(FT_MAKEFILE) distclean
155 # end of Makefile.wat