summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype/freetype-1.5/lib/arch/unix/Makefile.in
blob: 0875a7a8fdadc8f4f2e14305bce88ab605f0606e (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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# This file is part of the FreeType project.
#
# lib/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
FT_MAKEFILE = $(ARCH)/Makefile

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

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

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

top_builddir=..

CC = @CC@
CPP = @CPP@

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

version_info = @version_info@

include $(top_builddir)/MakeSub

############### PORTABILITY COMPONENTS ########################

# location of memory component
MEMSRC = ttmemory.c

# location of file component
FILESRC = @TT_FILE_COMPONENT@

# location of mutex component
MUTEXSRC = ttmutex.c

# location of default extensions
FTEXTDIR = $(srcdir)/extend


# default extensions sources
EXTSRC = $(FTEXTDIR)/ftxkern.c  \
         $(FTEXTDIR)/ftxgasp.c  \
         $(FTEXTDIR)/ftxpost.c  \
         $(FTEXTDIR)/ftxcmap.c  \
         $(FTEXTDIR)/ftxsbit.c  \
         $(FTEXTDIR)/ftxwidth.c \
         $(FTEXTDIR)/ftxerr18.c \
         $(FTEXTDIR)/ftxgsub.c  \
         $(FTEXTDIR)/ftxgpos.c  \
         $(FTEXTDIR)/ftxgdef.c  \
         $(FTEXTDIR)/ftxopen.c

EXTOBJ = ftxkern.lo  \
         ftxgasp.lo  \
         ftxpost.lo  \
         ftxcmap.lo  \
         ftxsbit.lo  \
         ftxwidth.lo \
         ftxerr18.lo \
         ftxgsub.lo  \
         ftxgpos.lo  \
         ftxgdef.lo  \
         ftxopen.lo

# all engine sources
SRC_M = $(srcdir)/ttapi.c     \
        $(srcdir)/ttcache.c   \
        $(srcdir)/ttcalc.c    \
        $(srcdir)/ttcmap.c    \
        $(srcdir)/ttdebug.c   \
        $(srcdir)/ttextend.c  \
        $(srcdir)/ttgload.c   \
        $(srcdir)/ttinterp.c  \
        $(srcdir)/ttload.c    \
        $(srcdir)/ttobjs.c    \
        $(srcdir)/ttraster.c  \
        $(srcdir)/$(FILESRC)  \
        $(srcdir)/$(MEMSRC)   \
        $(srcdir)/$(MUTEXSRC)
SRC_S = $(srcdir)/$(ARCH)/freetype.c

# all header files
HEADERS = $(srcdir)/freetype.h   \
          $(srcdir)/fterrid.h    \
          $(srcdir)/ftnameid.h   \
          $(FTEXTDIR)/ftxkern.h  \
          $(FTEXTDIR)/ftxgasp.h  \
          $(FTEXTDIR)/ftxcmap.h  \
          $(FTEXTDIR)/ftxsbit.h  \
          $(FTEXTDIR)/ftxpost.h  \
          $(FTEXTDIR)/ftxwidth.h \
          $(FTEXTDIR)/ftxerr18.h \
          $(FTEXTDIR)/ftxgsub.h  \
          $(FTEXTDIR)/ftxgpos.h  \
          $(FTEXTDIR)/ftxgdef.h  \
          $(FTEXTDIR)/ftxopen.h

# all engine objects
OBJ_M = ttapi.lo    \
        ttcache.lo  \
        ttcalc.lo   \
        ttcmap.lo   \
        ttdebug.lo  \
        ttextend.lo \
        ttgload.lo  \
        ttinterp.lo \
        ttload.lo   \
        ttobjs.lo   \
        ttraster.lo \
        file.lo     \
        memory.lo   \
        mutex.lo    \
        $(EXTOBJ)
OBJ_S = freetype.lo $(EXTOBJ)


# include paths
INCLUDES = -I. -I$(top_builddir) -I$(srcdir) -I$(FTEXTDIR)

# C flags
CFLAGS = @CFLAGS@ @XX_CFLAGS@
CPPFLAGS = @CPPFLAGS@
FT_CFLAGS = $(CFLAGS) $(INCLUDES)

# linker flags
FT_LIBS = @LIBS@

# i18n stuff
LOCALEDIR = @LOCALEDIR@


all: do_link
	$(MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJ_S)" libttf.la

debug: do_link
	$(MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJ_M)" libttf.la


do_link:
	-$(RMF) memory.c file.c mutex.c
	$(LN_S) $(srcdir)/$(MEMSRC) memory.c
	$(LN_S) $(srcdir)/$(FILESRC) file.c
	$(LN_S) $(srcdir)/$(MUTEXSRC) mutex.c


.SUFFIXES: .lo
.c.lo:
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $<

ftxkern.lo: $(FTEXTDIR)/ftxkern.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxkern.c

ftxgasp.lo: $(FTEXTDIR)/ftxgasp.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgasp.c

ftxpost.lo: $(FTEXTDIR)/ftxpost.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxpost.c

ftxcmap.lo: $(FTEXTDIR)/ftxcmap.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxcmap.c

ftxsbit.lo: $(FTEXTDIR)/ftxsbit.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxsbit.c

ftxwidth.lo: $(FTEXTDIR)/ftxwidth.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxwidth.c

ftxerr18.lo: $(FTEXTDIR)/ftxerr18.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) \
                                  -DLOCALEDIR='"$(LOCALEDIR)"' \
                                  $(FTEXTDIR)/ftxerr18.c

ftxgsub.lo: $(FTEXTDIR)/ftxgsub.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgsub.c

ftxgpos.lo: $(FTEXTDIR)/ftxgpos.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgpos.c

ftxgdef.lo: $(FTEXTDIR)/ftxgdef.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgdef.c

ftxopen.lo: $(FTEXTDIR)/ftxopen.c
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxopen.c

freetype.lo: $(SRC_S) $(SRC_M)
	$(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) \
                                        -DLOCALEDIR='"$(LOCALEDIR)"' \
                                        -DTT_MAKE_OPTION_SINGLE_OBJECT \
                                        $(SRC_S)

libttf.la: $(LIB_FILES)
	$(LIBTOOL) --mode=link $(CC) -o libttf.la $(LIB_FILES) \
                               -rpath $(libdir) \
                               -version-info $(version_info) $(FT_LIBS)

install: libttf.la
	$(MKINSTALLDIRS) $(libdir) $(includedir)/freetype
	$(LIBTOOL) --mode=install $(INSTALL) libttf.la $(libdir)
	-for P in $(HEADERS) ; do \
          $(INSTALL_DATA) $$P $(includedir)/freetype ; \
        done

uninstall: 
	-$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/libttf.la
	-$(RMF) $(includedir)/freetype/*
	-$(RMDIR) $(includedir)/freetype

clean:
	-$(RMF) $(OBJ_S) $(OBJ_M) *.o

distclean: clean
	-$(RMF) file.c memory.c mutex.c
	-$(RMF) libttf.la
	-$(RMF) *.orig *~ core *.core
	-$(RMF) $(ARCH)/Makefile
	-$(RMF) .libs/*
	-$(RMDIR) .libs

depend: do_link
	(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_S) $(SRC_M) $(EXTSRC) ; do \
          $(CPP) $(CPPFLAGS) $(INCLUDES) $$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`.lo: /" ; \
        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 debug do_link install uninstall clean distclean depend

# Dependencies generated by make depend: PUT NO STUFF BELOW