1 # This file is part of the FreeType project.
3 # It builds the library and test programs for emx-gcc and djgpp under MSDOS.
5 # You will need a recent GNU make DOS port.
7 # Use this file while in the 'test' directory with the following statement:
9 # make -f arch/msdos/Makefile.gcc
12 # If you have the GNU gettext package installed with DJGPP, you can also try
14 # make -f arch/msdos/Makefile.gcc HAVE_GETTEXT
17 FT_MAKEFILE = $(ARCH)/Makefile.gcc
22 INCDIRS = -I$(LIBDIR) -I$(LIBDIR)/$(ARCH) -I. -I$(LIBDIR)/extend
28 CFLAGS = -Wall -ansi -O2 -g $(INCDIRS) -D$(GETTEXT)
29 # CFLAGS = -ansi -Wall -O2 -s $(INCDIRS) -D$(GETTEXT)
32 # full-screen MSDOS driver
33 GDRIVER = $(ARCH)/gfs_dos.c
49 GSRC = gmain.c display.c blitter.c $(GDRIVER)
54 $(CC) $(CFLAGS) -c -o $@ $<
57 ifeq ($(GETTEXT),HAVE_GETTEXT)
59 $(CC) $(CFLAGS) -o $@ $^ -lintl
62 $(CC) $(CFLAGS) -o $@ $^
66 EXEFILES = ftdump.exe \
78 .PHONY: all debug freetype freetype_debug \
79 clean distclean do_clean depend
82 all: freetype $(EXEFILES)
84 debug: freetype_debug $(EXEFILES)
87 $(MAKE) -f $(FT_MAKEFILE) GETTEXT=HAVE_GETTEXT all
90 $(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) all
93 $(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) debug
95 ftzoom.exe: $(GOBJ) ftzoom.o common.o $(LIBDIR)/libttf.a
96 ftview.exe: $(GOBJ) ftview.o common.o $(LIBDIR)/libttf.a
97 ftlint.exe: ftlint.o common.o $(LIBDIR)/libttf.a
98 ftdump.exe: ftdump.o common.o $(LIBDIR)/libttf.a
99 fterror.exe: fterror.o common.o $(LIBDIR)/libttf.a
100 ftstring.exe: $(GOBJ) ftstring.o common.o $(LIBDIR)/libttf.a
101 fttimer.exe: $(GOBJ) fttimer.o common.o $(LIBDIR)/libttf.a
102 ftstrpnm.exe: ftstrpnm.o common.o $(LIBDIR)/libttf.a
103 ftsbit.exe: ftsbit.o common.o $(LIBDIR)/libttf.a
104 ftmetric.exe: ftmetric.o common.o $(LIBDIR)/libttf.a
105 ftstrtto.exe: $(GOBJ) ftstrtto.o common.o arabic.o $(LIBDIR)/libttf.a
109 $(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) clean
112 $(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) distclean
120 -del $(ARCH)\gfs_dos.o
122 depend: $(SRC) $(GSRC)
123 $(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) depend
124 $(CC) -E -M $(INCDIRS) $^ > dep.end
126 ifeq (dep.end,$(wildcard dep.end))
130 # end of Makefile.gcc