summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype/freetype-1.5/test/arch/msdos/Makefile.gcc
blob: 64a9dd35279b32d74c317b872a09b02421a9dc55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# This file is part of the FreeType project.
#
# It builds the library and test programs for emx-gcc and djgpp under MSDOS.
#
# You will need a recent GNU make DOS port.
#
# Use this file while in the 'test' directory with the following statements:
#
#   make -f arch/msdos/Makefile.gcc depend
#   make -f arch/msdos/Makefile.gcc
#
#
# If you have the GNU gettext package installed with DJGPP, you can also try
#
#   make -f arch/msdos/Makefile.gcc HAVE_GETTEXT
#
# Note that this version takes in account new versions of GNU gettext,
# which in turn requires the iconv library. If you have an old version
# of gettext and don't have the iconv library, just erase the `-l iconv'.
#
# Also take a look at the lib Makefile (at ../lib/arch/msdos/Makefile.gcc),
# about the need to have the path to the *.mo files correct.
#
#
# Copyright 1996-2002 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.

ARCH = arch/msdos
FT_MAKEFILE = $(ARCH)/Makefile.gcc

CC = gcc

LIBDIR = ../lib
INCDIRS = -I$(LIBDIR) -I$(LIBDIR)/$(ARCH) -I. -I$(LIBDIR)/extend

ifndef GETTEXT
GETTEXT=NO_GETTEXT
endif

CFLAGS = -Wall -ansi -O2 -g $(INCDIRS) -D$(GETTEXT)
# CFLAGS = -ansi -Wall -O2 -s $(INCDIRS) -D$(GETTEXT)


# full-screen MSDOS driver
GDRIVER = $(ARCH)/gfs_dos.c $(ARCH)/gmain_dj.c

SRC = arabic.c \
      common.c \
      textdisp.c \
      ftdump.c \
      fterror.c \
      ftlint.c \
      ftmetric.c \
      ftsbit.c \
      ftstring.c \
      ftstrpnm.c \
      ftstrtto.c \
      fttimer.c \
      ftview.c \
      ftzoom.c

GSRC = display.c blitter.c $(GDRIVER)
GOBJ = $(GSRC:.c=.o)


%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<


ifeq ($(GETTEXT),HAVE_GETTEXT)
%.exe:
	$(CC) $(CFLAGS) -o $@ $^ -lintl -liconv
#                  Remove `-l iconv' above if you have an old version
#                  of GNU gettext (like 0.10.35) and no iconv library.
else
%.exe:
	$(CC) $(CFLAGS) -o $@ $^
endif


EXEFILES = ftdump.exe \
           fterror.exe \
           ftlint.exe \
           ftmetric.exe \
           ftsbit.exe \
           ftstring.exe \
           ftstrpnm.exe \
           ftstrtto.exe \
           fttimer.exe \
           ftview.exe \
           ftzoom.exe

.PHONY: all debug freetype freetype_debug \
        clean distclean do_clean depend


all: freetype $(EXEFILES)

debug: freetype_debug $(EXEFILES)

HAVE_GETTEXT:
	$(MAKE) -f $(FT_MAKEFILE) GETTEXT=HAVE_GETTEXT all

freetype:
	$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) all

freetype_debug:
	$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) debug

ftzoom.exe: $(GOBJ) ftzoom.o common.o $(LIBDIR)/libttf.a
ftview.exe: $(GOBJ) ftview.o common.o $(LIBDIR)/libttf.a
ftlint.exe: ftlint.o common.o $(LIBDIR)/libttf.a
ftdump.exe: ftdump.o common.o $(LIBDIR)/libttf.a
fterror.exe: fterror.o common.o $(LIBDIR)/libttf.a
ftstring.exe: $(GOBJ) ftstring.o common.o $(LIBDIR)/libttf.a
fttimer.exe: $(GOBJ) fttimer.o common.o $(LIBDIR)/libttf.a
ftstrpnm.exe: ftstrpnm.o common.o $(LIBDIR)/libttf.a
ftsbit.exe: ftsbit.o common.o textdisp.o $(LIBDIR)/libttf.a
ftmetric.exe: ftmetric.o common.o textdisp.o $(LIBDIR)/libttf.a
ftstrtto.exe: $(GOBJ) ftstrtto.o common.o arabic.o $(LIBDIR)/libttf.a


clean: do_clean
	$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) clean

distclean: do_clean
	$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) distclean
	-del dep.end
	-del *.exe
	-del core

do_clean:
	-del *.o
	-del response
	-del $(ARCH)\gfs_dos.o

depend: $(SRC) $(GSRC)
	$(MAKE) -C $(LIBDIR) -f $(FT_MAKEFILE) depend
	$(CC) -E -MM $(INCDIRS) $^ > dep.end

ifeq (dep.end,$(wildcard dep.end))
  include dep.end
endif

# end of Makefile.gcc