contrib/OWB: add correct SDL dependency, fix compilers used
[AROS-Contrib.git] / freetype1 / lib / arch / unix / Makefile.in
blob321cc7f8f7215442da0389609b94e68b6c6891b8
1 # This file is part of the FreeType project.
3 # lib/arch/unix/Makefile.in
5 ARCH = arch/unix
6 FT_MAKEFILE = $(ARCH)/Makefile
8 RM = @RM@
9 RMF = @RM@ -f
10 RMDIR = @RMDIR@
11 LN_S = @LN_S@
13 INSTALL = @INSTALL@
14 INSTALL_DATA = @INSTALL_DATA@
16 VPATH = @srcdir@/../..
17 srcdir = @srcdir@/../..
19 top_builddir=..
21 CC = @CC@
22 CPP = @CPP@
24 LIBTOOL = $(top_builddir)/libtool
25 MKINSTALLDIRS = $(srcdir)/../mkinstalldirs
27 version_info = @version_info@
29 include $(top_builddir)/MakeSub
31 ############### PORTABILITY COMPONENTS ########################
33 # location of memory component
34 MEMSRC = ttmemory.c
36 # location of file component
37 FILESRC = @TT_FILE_COMPONENT@
39 # location of mutex component
40 MUTEXSRC = ttmutex.c
42 # location of default extensions
43 FTEXTDIR = $(srcdir)/extend
46 # default extensions sources
47 EXTSRC = $(FTEXTDIR)/ftxkern.c \
48 $(FTEXTDIR)/ftxgasp.c \
49 $(FTEXTDIR)/ftxpost.c \
50 $(FTEXTDIR)/ftxcmap.c \
51 $(FTEXTDIR)/ftxsbit.c \
52 $(FTEXTDIR)/ftxwidth.c \
53 $(FTEXTDIR)/ftxerr18.c \
54 $(FTEXTDIR)/ftxgsub.c \
55 $(FTEXTDIR)/ftxgpos.c \
56 $(FTEXTDIR)/ftxgdef.c \
57 $(FTEXTDIR)/ftxopen.c
59 EXTOBJ = ftxkern.lo \
60 ftxgasp.lo \
61 ftxpost.lo \
62 ftxcmap.lo \
63 ftxsbit.lo \
64 ftxwidth.lo \
65 ftxerr18.lo \
66 ftxgsub.lo \
67 ftxgpos.lo \
68 ftxgdef.lo \
69 ftxopen.lo
71 # all engine sources
72 SRC_M = $(srcdir)/ttapi.c \
73 $(srcdir)/ttcache.c \
74 $(srcdir)/ttcalc.c \
75 $(srcdir)/ttcmap.c \
76 $(srcdir)/ttdebug.c \
77 $(srcdir)/ttextend.c \
78 $(srcdir)/ttgload.c \
79 $(srcdir)/ttinterp.c \
80 $(srcdir)/ttload.c \
81 $(srcdir)/ttobjs.c \
82 $(srcdir)/ttraster.c \
83 $(srcdir)/$(FILESRC) \
84 $(srcdir)/$(MEMSRC) \
85 $(srcdir)/$(MUTEXSRC)
86 SRC_S = $(srcdir)/$(ARCH)/freetype.c
88 # all header files
89 HEADERS = $(srcdir)/freetype.h \
90 $(srcdir)/fterrid.h \
91 $(srcdir)/ftnameid.h \
92 $(FTEXTDIR)/ftxkern.h \
93 $(FTEXTDIR)/ftxgasp.h \
94 $(FTEXTDIR)/ftxcmap.h \
95 $(FTEXTDIR)/ftxsbit.h \
96 $(FTEXTDIR)/ftxpost.h \
97 $(FTEXTDIR)/ftxwidth.h \
98 $(FTEXTDIR)/ftxerr18.h \
99 $(FTEXTDIR)/ftxgsub.h \
100 $(FTEXTDIR)/ftxgpos.h \
101 $(FTEXTDIR)/ftxgdef.h \
102 $(FTEXTDIR)/ftxopen.h
104 # all engine objects
105 OBJ_M = ttapi.lo \
106 ttcache.lo \
107 ttcalc.lo \
108 ttcmap.lo \
109 ttdebug.lo \
110 ttextend.lo \
111 ttgload.lo \
112 ttinterp.lo \
113 ttload.lo \
114 ttobjs.lo \
115 ttraster.lo \
116 file.lo \
117 memory.lo \
118 mutex.lo \
119 $(EXTOBJ)
120 OBJ_S = freetype.lo $(EXTOBJ)
123 # include paths
124 INCLUDES = -I. -I$(top_builddir) -I$(srcdir) -I$(FTEXTDIR)
126 # C flags
127 CFLAGS = @CFLAGS@ @XX_CFLAGS@
128 CPPFLAGS = @CPPFLAGS@
129 FT_CFLAGS = $(CFLAGS) $(INCLUDES)
131 # linker flags
132 FT_LIBS = @LIBS@
134 # i18n stuff
135 LOCALEDIR = @LOCALEDIR@
138 all: do_link
139 $(MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJ_S)" libttf.la
141 debug: do_link
142 $(MAKE) -f $(FT_MAKEFILE) LIB_FILES="$(OBJ_M)" libttf.la
145 do_link:
146 -$(RMF) memory.c file.c mutex.c
147 $(LN_S) $(srcdir)/$(MEMSRC) memory.c
148 $(LN_S) $(srcdir)/$(FILESRC) file.c
149 $(LN_S) $(srcdir)/$(MUTEXSRC) mutex.c
152 .SUFFIXES: .lo
153 .c.lo:
154 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $<
156 ftxkern.lo: $(FTEXTDIR)/ftxkern.c
157 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxkern.c
159 ftxgasp.lo: $(FTEXTDIR)/ftxgasp.c
160 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgasp.c
162 ftxpost.lo: $(FTEXTDIR)/ftxpost.c
163 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxpost.c
165 ftxcmap.lo: $(FTEXTDIR)/ftxcmap.c
166 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxcmap.c
168 ftxsbit.lo: $(FTEXTDIR)/ftxsbit.c
169 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxsbit.c
171 ftxwidth.lo: $(FTEXTDIR)/ftxwidth.c
172 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxwidth.c
174 ftxerr18.lo: $(FTEXTDIR)/ftxerr18.c
175 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) \
176 -DLOCALEDIR='"$(LOCALEDIR)"' \
177 $(FTEXTDIR)/ftxerr18.c
179 ftxgsub.lo: $(FTEXTDIR)/ftxgsub.c
180 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgsub.c
182 ftxgpos.lo: $(FTEXTDIR)/ftxgpos.c
183 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgpos.c
185 ftxgdef.lo: $(FTEXTDIR)/ftxgdef.c
186 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxgdef.c
188 ftxopen.lo: $(FTEXTDIR)/ftxopen.c
189 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) $(FTEXTDIR)/ftxopen.c
191 freetype.lo: $(SRC_S) $(SRC_M)
192 $(LIBTOOL) --mode=compile $(CC) -c $(FT_CFLAGS) \
193 -DLOCALEDIR='"$(LOCALEDIR)"' \
194 -DTT_MAKE_OPTION_SINGLE_OBJECT \
195 $(SRC_S)
197 libttf.la: $(LIB_FILES)
198 $(LIBTOOL) --mode=link $(CC) -o libttf.la $(LIB_FILES) \
199 -rpath $(libdir) \
200 -version-info $(version_info) $(FT_LIBS)
202 install: libttf.la
203 $(MKINSTALLDIRS) $(libdir) $(includedir)/freetype
204 $(LIBTOOL) --mode=install $(INSTALL) libttf.la $(libdir)
205 -for P in $(HEADERS) ; do \
206 $(INSTALL_DATA) $$P $(includedir)/freetype ; \
207 done
209 uninstall:
210 -$(LIBTOOL) --mode=uninstall $(RM) $(libdir)/libttf.la
211 -$(RMF) $(includedir)/freetype/*
212 -$(RMDIR) $(includedir)/freetype
214 clean:
215 -$(RMF) $(OBJ_S) $(OBJ_M) *.o
217 distclean: clean
218 -$(RMF) file.c memory.c mutex.c
219 -$(RMF) libttf.la
220 -$(RMF) *.orig *~ core *.core
221 -$(RMF) $(ARCH)/Makefile
222 -$(RMF) .libs/*
223 -$(RMDIR) .libs
225 depend: do_link
226 (echo '/^#.* PUT NO STUFF BELOW/,$$d' ; echo w ; echo q) | \
227 ed - $(ARCH)/Makefile
228 echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \
229 >> $(ARCH)/Makefile
230 for file in $(SRC_S) $(SRC_M) $(EXTSRC) ; do \
231 $(CPP) $(CPPFLAGS) $(INCLUDES) $$file | \
232 sed -n -e 's|^# [1-9][0-9]* "\([^/].*\.h\)".*|\1|p' \
233 -e 's|^# [1-9][0-9]* "\($(srcdir)/.*\.h\)".*|\1|p' | \
234 sed -e 's|/\./|.|g' -e "s/^/`basename $$file .c`.lo: /" ; \
235 done | \
236 sort -u | \
237 awk '{ if (LINE == 1) \
238 { line = last = $$1 } \
239 else if ($$1 != last) \
240 { print line ; line = last = $$1 } \
241 line = line " " $$2 } \
242 END { print line }' >> $(ARCH)/Makefile
244 # Dependencies generated by make depend: PUT NO STUFF BELOW