1 # This file is part of the FreeType project.
3 # lib/arch/unix/Makefile.in
6 FT_MAKEFILE
= $(ARCH
)/Makefile
14 INSTALL_DATA
= @INSTALL_DATA@
16 VPATH
= @
srcdir@
/..
/..
17 srcdir = @
srcdir@
/..
/..
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
36 # location of file component
37 FILESRC
= @TT_FILE_COMPONENT@
39 # location of mutex component
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 \
72 SRC_M
= $(srcdir)/ttapi.c \
77 $(srcdir)/ttextend.c \
79 $(srcdir)/ttinterp.c \
82 $(srcdir)/ttraster.c \
83 $(srcdir)/$(FILESRC
) \
86 SRC_S
= $(srcdir)/$(ARCH
)/freetype.c
89 HEADERS
= $(srcdir)/freetype.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
120 OBJ_S
= freetype.lo
$(EXTOBJ
)
124 INCLUDES
= -I.
-I
$(top_builddir
) -I
$(srcdir) -I
$(FTEXTDIR
)
127 CFLAGS
= @CFLAGS@ @XX_CFLAGS@
128 CPPFLAGS
= @CPPFLAGS@
129 FT_CFLAGS
= $(CFLAGS
) $(INCLUDES
)
135 LOCALEDIR
= @LOCALEDIR@
139 $(MAKE
) -f
$(FT_MAKEFILE
) LIB_FILES
="$(OBJ_S)" libttf.la
142 $(MAKE
) -f
$(FT_MAKEFILE
) LIB_FILES
="$(OBJ_M)" libttf.la
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
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 \
197 libttf.la
: $(LIB_FILES
)
198 $(LIBTOOL
) --mode
=link
$(CC
) -o libttf.la
$(LIB_FILES
) \
200 -version-info
$(version_info
) $(FT_LIBS
)
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
; \
210 -$(LIBTOOL
) --mode
=uninstall $(RM
) $(libdir)/libttf.la
211 -$(RMF
) $(includedir)/freetype
/*
212 -$(RMDIR
) $(includedir)/freetype
215 -$(RMF
) $(OBJ_S
) $(OBJ_M
) *.o
218 -$(RMF
) file.c memory.c mutex.c
220 -$(RMF
) *.orig
*~ core
*.core
221 -$(RMF
) $(ARCH
)/Makefile
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' \
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: /" ; \
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