summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype/freetype-1.5/test/arch/unix/Makefile.in
blob: 887ee57f2e834a4876435968abcb36a5273819ce (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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# This file is part of the FreeType project.
#
# test/arch/unix/Makefile.in
#
#
# Copyright 1996-2001 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/unix

top_builddir=..

VPATH = @srcdir@/../..
srcdir = @srcdir@/../..

RM = @RM@
RMF = @RM@ -f
RMDIR = @RMDIR@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

CC = @CC@
CPP = @CPP@

LIBTOOL = $(top_builddir)/libtool
MKINSTALLDIRS = $(srcdir)/../mkinstalldirs

include $(top_builddir)/MakeSub

FT_LIBDIR = $(srcdir)/../lib
INCDIRS = -I. -I$(srcdir) -I$(top_builddir) \
          -I$(FT_LIBDIR) -I$(FT_LIBDIR)/extend

CFLAGS = @CFLAGS@ @X_CFLAGS@ @XX_CFLAGS@
CPPFLAGS = @CPPFLAGS@
FT_CFLAGS = $(INCDIRS) $(CFLAGS) $(CPPFLAGS) -DX11 -DLOCALEDIR='"@LOCALEDIR@"'

FT_LIBS = @X_LIBS@ @X_PRE_LIBS@ @X_EXTRA_LIBS@ @LIBS@

SRC = $(srcdir)/arabic.c           \
      $(srcdir)/common.c           \
      $(srcdir)/textdisp.c         \
      $(srcdir)/ftdump.c           \
      $(srcdir)/fterror.c          \
      $(srcdir)/ftlint.c           \
      $(srcdir)/ftmetric.c         \
      $(srcdir)/ftsbit.c           \
      $(srcdir)/ftstring.c         \
      $(srcdir)/ftstrpnm.c         \
      $(srcdir)/fttimer.c          \
      $(srcdir)/ftview.c           \
      $(srcdir)/ftzoom.c           \
      $(srcdir)/ftstrtto.c         \
      $(srcdir)/gmain.c            \
      $(srcdir)/$(ARCH)/gwin_x11.c

DISPOBJS = common.o gmain.o display.o gwin_x11.o blitter.o

PROGRAMS = ftdump fterror ftlint ftmetric ftsbit ftstrpnm
X_PROGRAMS = ftstring ftstrtto fttimer ftview ftzoom

ALL_PROGRAMS = $(PROGRAMS) @X_PROGRAMS@

# set this variable to nil if you don't need to use Electric-Fence
EFENCE =
#EFENCE = -lefence


# variables used to compile either with libtool or not
#
PROCESS = $(LIBTOOL) --mode=link  $(CC) $(FT_CFLAGS)
#PROCESS = $(CC) $(FT_CFLAGS)

LIBTTF = $(top_builddir)/lib/libttf.la
#LIBTTF =$(top_builddir)/lib/libttf.a

.c.o:
	$(CC) -c $(FT_CFLAGS) $<


all: $(ALL_PROGRAMS)


gwin_x11.o: $(srcdir)/$(ARCH)/gwin_x11.c
	$(CC) -c $(FT_CFLAGS) $(srcdir)/$(ARCH)/gwin_x11.c

ftzoom: ftzoom.o $(DISPOBJS) $(LIBTTF)
	$(PROCESS) -o ftzoom ftzoom.o $(DISPOBJS) \
          $(EFENCE) $(LIBTTF) $(FT_LIBS) -lX11

fttimer: fttimer.o $(DISPOBJS) $(LIBTTF)
	$(PROCESS) -o fttimer fttimer.o $(DISPOBJS) \
          $(EFENCE) $(LIBTTF) $(FT_LIBS) -lX11

ftview: ftview.o $(DISPOBJS) $(LIBTTF)
	$(PROCESS) -o ftview ftview.o $(DISPOBJS) \
          $(EFENCE) $(LIBTTF) $(FT_LIBS) -lX11

ftlint: ftlint.o common.o $(LIBTTF)
	$(PROCESS) -o ftlint ftlint.o common.o \
          $(EFENCE) $(LIBTTF) $(FT_LIBS)

ftdump: ftdump.o common.o $(LIBTTF)
	$(PROCESS) -o ftdump ftdump.o common.o \
          $(EFENCE) $(LIBTTF) $(FT_LIBS)

ftmetric: ftmetric.o common.o textdisp.o $(LIBTTF)
	$(PROCESS) -o ftmetric ftmetric.o common.o textdisp.o \
          $(EFENCE) $(LIBTTF) $(FT_LIBS)

ftsbit: ftsbit.o common.o textdisp.o $(LIBTTF)
	$(PROCESS) -o ftsbit ftsbit.o common.o textdisp.o \
          $(EFENCE) $(LIBTTF)

ftstring: ftstring.o $(DISPOBJS) $(LIBTTF)
	$(PROCESS) -o ftstring ftstring.o $(DISPOBJS) \
          $(EFENCE) $(LIBTTF) $(FT_LIBS) -lX11

ftstrpnm: ftstrpnm.o common.o $(LIBTTF)
	$(PROCESS) -o ftstrpnm ftstrpnm.o common.o \
          $(EFENCE) $(LIBTTF)

fterror: fterror.o common.o $(LIBTTF)
	$(PROCESS) -o fterror fterror.o common.o \
          $(EFENCE) $(LIBTTF) $(FT_LIBS)

ftstrtto: ftstrtto.o $(DISPOBJS) arabic.o $(LIBTTF)
	$(PROCESS) -o ftstrtto ftstrtto.o $(DISPOBJS) arabic.o \
          $(EFENCE) $(LIBTTF) $(FT_LIBS) -lX11


install: $(ALL_PROGRAMS)
	$(MKINSTALLDIRS) $(bindir)
	for P in $(ALL_PROGRAMS) ; do \
          $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$P $(bindir)/$$P ; \
        done

uninstall:
	-for P in $(ALL_PROGRAMS) ; do \
          $(LIBTOOL) --mode=uninstall $(RM) $(bindir)/$$P ; \
        done

clean: do_clean

distclean: do_clean
	-$(RMF) $(ALL_PROGRAMS)
	-$(RMF) *~ *.orig core *.core
	-$(RMF) config.cache config.log config.status
	-$(RMF) $(ARCH)/Makefile
	-$(RMF) .libs/*
	-$(RMDIR) .libs

do_clean:
	-$(RMF) *.o

depend:
	(echo '/^#.* PUT NO STUFF BELOW/,$$d' ; echo w ; echo q) | \
         ed - $(ARCH)/Makefile
	echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
          >> $(ARCH)/Makefile
	for file in $(SRC) ; do \
          $(CPP) $(CPPFLAGS) $(INCDIRS) $$file | \
           sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
                  -e 's|^# [1-9][0-9]* "\($(srcdir)/.*\.h\)".*|\1|p' | \
           sed -e 's|/\./|.|g' -e "s/^/`basename $$file .c`.o: /" ; \
        done | \
         sort -u | \
         awk '{ if (LINE == 1) \
                  { line = last = $$1 } \
                else if ($$1 != last) \
                  { print line ; line = last = $$1 } \
                line = line " " $$2 } \
              END { print line }' >> $(ARCH)/Makefile

.PHONY: all install uninstall clean distclean do_clean depend

# Dependencies generated by make depend: PUT NO STUFF BELOW