contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / test / arch / win32 / Makefile.BC
blob9acb6ca7ee07e98d8d27e6e6ee78d81efd9977d6
1 # This file is part of the FreeType project.
3 # It builds the library and test programs for BC++ for Win32.
5 # Tested with Borland C++ v.4.02, 5.0, and Borland C++ builder 4.
6 # You will need Borland MAKE.
9 # Use this file while in the 'test' directory with the following statement:
11 #   make -farch\win32\Makefile.BC
14 # A DLL version of the library can be built and then used with
16 #   make -DDLL -farch/win16/Makefile.BC dll
18 # (do not forget to define DLL, otherwise the link phase will fail).
21 # A debug version can be obtained with
23 #   make -DDEBUG -farch\win32\Makefile.BC
25 ARCH = arch\win32
26 FT_MAKEFILE = $(ARCH)\Makefile.BC
27 FT_DLL = ft13_32.dll
29 CC = bcc32
31 LIBDIR = ..\lib
32 INCDIRS = -I$(LIBDIR);$(LIBDIR)\$(ARCH);.;$(LIBDIR)\extend
33 SPURIOUS_WARNINGS = -w-nak -w-par -w-use -w-aus -w-stu -w-stv -w-cln -w-sig -w-pia
34 CFLAGS =  -i48 $(INCDIRS) $(SPURIOUS_WARNINGS)
36 !ifndef DEBUG
37 CFLAGS = $(CFLAGS) -O2 -A
38 LDFLAGS = -WC
39 !else
40 CFLAGS = $(CFLAGS) -v
41 LDFLAGS = -v -WC
42 !endif
44 !ifdef DLL
45 CFLAGS = $(CFLAGS) -DFREETYPE_DLL
46 !endif
48 # Windows graphic driver
49 GDRIVER = $(ARCH)\gw_win32.c
51 DISPLAY = display.c
53 G1SRC = gmain.c blitter.c $(GDRIVER)
54 GSRC = $(DISPLAY) $(G1SRC)
56 GOBJ = $(GSRC:.c=.obj)
57 G1OBJ = $(G1SRC:.c=.obj)
60 SRC = arabic.c \
61       common.c \
62       ftdump.c \
63       fterror.c \
64       ftlint.c \
65       ftmetric.c \
66       ftsbit.c \
67       ftstring.c \
68       ftstrpnm.c \
69       ftstrtto.c \
70       fttimer.c \
71       ftview.c \
72       ftzoom.c
74 OBJ = $(SRC:.c=.obj)
77 .c.obj:
78         $(CC) -c -o$* @&&|
79             $(CFLAGS) $<
82 EXEFILES = ftdump.exe \
83            fterror.exe \
84            ftlint.exe \
85            ftmetric.exe \
86            ftsbit.exe \
87            ftstring.exe \
88            ftstrpnm.exe \
89            ftstrtto.exe \
90            fttimer.exe \
91            ftview.exe \
92            ftzoom.exe
94 !ifndef DEBUG
95 # Skipped if DEBUG build
96 all: freetype $(EXEFILES)
98 dll: the_dll $(EXEFILES)
100 !else
101 # Skipped if non-DEBUG build
102 default_target: debug
103 dll: the_debug_dll $(EXEFILES)
105 !endif
107 debug: freetype_debug $(EXEFILES)
109 freetype:
110         cd $(LIBDIR)
111         make -f$(FT_MAKEFILE) all
112         cd ..\test
114 freetype_debug:
115         cd $(LIBDIR)
116         make -f$(FT_MAKEFILE) -DDEBUG debug
117         cd ..\test
119 the_dll:
120         cd $(LIBDIR)
121         make -f$(FT_MAKEFILE) -DDLL dll
122         cd ..\test
123     -copy $(LIBDIR)\$(FT_DLL)
125 the_debug_dll:
126         cd $(LIBDIR)
127         make -f$(FT_MAKEFILE) -DDEBUG -DDLL dll
128         cd ..\test
129     -copy $(LIBDIR)\$(FT_DLL)
132 # C compilers are unable to include <windows.h> in ANSI mode,
133 # because of the // comments...
134 # So we have a special rule for this file, to build it outside ANSI.
135 $(GDRIVER:.c=.obj):
136         $(CC) -c -o$* @&&|
137             $(CFLAGS) -A- $*.c
141 # Borland versions of make are unable to use the $** variable inside
142 # implicit rules (like .obj.exe:). The job have to be done by hand. :-(
143 ftzoom.exe: $(G1OBJ) ftzoom.obj common.obj $(LIBDIR)\libttf.lib
144         $(CC) $(LDFLAGS) ftzoom.obj $(G1OBJ) common.obj $(LIBDIR)\libttf.lib
146 ftview.exe: $(GOBJ) ftview.obj common.obj $(LIBDIR)\libttf.lib
147         $(CC) $(LDFLAGS) ftview.obj $(GOBJ) common.obj $(LIBDIR)\libttf.lib
149 ftstring.exe: $(GOBJ) ftstring.obj common.obj $(LIBDIR)\libttf.lib
150         $(CC) $(LDFLAGS) ftstring.obj $(GOBJ) common.obj $(LIBDIR)\libttf.lib
152 ftstrtto.exe: $(GOBJ) ftstrtto.obj common.obj arabic.obj $(LIBDIR)\libttf.lib
153         $(CC) $(LDFLAGS) ftstrtto.obj $(GOBJ) common.obj arabic.obj \
154                           $(LIBDIR)\libttf.lib
156 fttimer.exe: $(G1OBJ) fttimer.obj common.obj $(LIBDIR)\libttf.lib
157         $(CC) $(LDFLAGS) fttimer.obj $(G1OBJ) common.obj $(LIBDIR)\libttf.lib
159 ftlint.exe: ftlint.obj common.obj $(LIBDIR)\libttf.lib
160         $(CC) $(LDFLAGS) ftlint.obj common.obj $(LIBDIR)\libttf.lib
162 ftdump.exe: ftdump.obj common.obj $(LIBDIR)\libttf.lib
163         $(CC) $(LDFLAGS) ftdump.obj common.obj $(LIBDIR)\libttf.lib
165 ftstrpnm.exe: ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
166         $(CC) $(LDFLAGS) ftstrpnm.obj common.obj $(LIBDIR)\libttf.lib
168 ftsbit.exe: ftsbit.obj common.obj $(LIBDIR)\libttf.lib
169         $(CC) $(LDFLAGS) ftsbit.obj common.obj $(LIBDIR)\libttf.lib
171 ftmetric.exe: ftmetric.obj common.obj $(LIBDIR)\libttf.lib
172         $(CC) $(LDFLAGS) ftmetric.obj common.obj $(LIBDIR)\libttf.lib
174 fterror.exe: fterror.obj common.obj $(LIBDIR)\libttf.lib
175         $(CC) $(LDFLAGS) fterror.obj common.obj $(LIBDIR)\libttf.lib
178 clean: do_clean
179         cd $(LIBDIR)
180         make -f$(FT_MAKEFILE) clean
181         cd ..\test
183 distclean: do_clean
184         cd $(LIBDIR)
185         make -f$(FT_MAKEFILE) distclean
186         cd ..\test
187         -del *.exe
188         -del *.dll
190 do_clean:
191         -del *.obj
192         -del $(ARCH)\*.obj
193         -del *.tds
195 !include "$(ARCH)\depend.win"
197 # end of Makefile