# Generated automatically from Makefile.in by configure. # # Makefile for VFlib version 2 # by H.Kakugawa # # # Copyright (C) 1993-1998 Hirotsugu Kakugawa. All rights reserved. # # This file is part of the VFlib Library. This library is free # software; you can redistribute it and/or modify it under the terms of # the GNU Library General Public License as published by the Free # Software Foundation; either version 2 of the License, or (at your # option) any later version. This library is distributed in the hope # that it will be useful, but WITHOUT ANY WARRANTY; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR # PURPOSE. See the GNU Library General Public License for more details. # You should have received a copy of the GNU Library General Public # License along with this library; if not, write to the Free Software # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # #------------------------------------------- # YOU DO NOT HAVE TO EDIT FOLLOWING LINES #------------------------------------------- default: all # GNU Libtool LIBTOOL=../libtool # defs include ../make-sub # Target VFLIB=libVFlib2.la # VFontcap file VFCAP = -DDEFAULT_VFCAP=\"$(default_vfontcap)\" #DEBUGOPT = -DDYNAMIC_OPEN_CLOSE_DEBUG # for the HBF API #ifdef __MSDOS__ FS=msdos #else FS=unix #endif all: $(MAKE) $(VFLIB) ttindex bdfindex fwindex # Core objs CORE_OBJ= VFlib.lo VFenc.lo VFEtable.lo VFcap.lo fn2ent.lo fman.lo # Font drivers DRV_OBJ= VF_Sony.lo VF_Zeit.lo VF_Jg.lo VF_TT.lo VF_Bdf.lo VF_Hbf.lo hbf.lo \ VF_Comp.lo VF_BitOp.lo VF_FNTWV.lo VF_Comp2.lo VF_Ftype.lo VF_FtypeGBK.lo \ VF_Null.lo # VFlib $(VFLIB): $(CORE_OBJ) $(DRV_OBJ) $(LIBTOOL) --mode=link \ $(CC) -o $(VFLIB) $(CORE_OBJ) $(DRV_OBJ) \ -version-info 24:4:0 -rpath $(libdir) \ $(EXT_LIBRARY) # VFlib VFlib.lo: VFlib.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VFlib.c # font capability database VFcap.lo: VFcap.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) $(VFCAP) -c VFcap.c # handling of font encodings VFenc.lo: VFenc.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VFenc.c # font encoding and character set tables VFEtable.lo: VFEtable.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VFEtable.c # conv font name to font entry name fn2ent.lo: fn2ent.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c fn2ent.c # dynamic file stream manager fman.lo: fman.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c fman.c # Sony Font driver VF_Sony.lo: VF_Sony.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) $(USEFSLIB) -c VF_Sony.c # Zeit Syotai-Club Font driver VF_Zeit.lo: VF_Zeit.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_Zeit.c # Zeit JG Font driver VF_Jg.lo: VF_Jg.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_Jg.c # TrueType Driver VF_TT.lo: VF_TT.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_TT.c # BDF Driver VF_Bdf.lo: VF_Bdf.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_Bdf.c # HBF Driver VF_Hbf.lo: VF_Hbf.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -D$(FS) -c VF_Hbf.c hbf.lo: hbf.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -D$(FS) -c hbf.c # Composite font driver VF_Comp.lo: VF_Comp.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_Comp.c # Yet another Composite font driver VF_Comp2.lo: VF_Comp2.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_Comp2.c # Font Wave font driver VF_FNTWV.lo: VF_FNTWV.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_FNTWV.c # Bit-Operated font driver VF_BitOp.lo: VF_BitOp.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_BitOp.c # FreeType driver VF_Ftype.lo: VF_Ftype.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -I/usr/local/include/freetype1/freetype -c VF_Ftype.c VF_FtypeGBK.lo: VF_FtypeGBK.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -I/usr/local/include/freetype1/freetype -c VF_FtypeGBK.c # Null font driver VF_Null.lo: VF_Null.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c VF_Null.c # Index generator for TrueType font ttindex: ttindex.lo $(LIBTOOL) --mode=link \ $(CC) $(CFLAGS) -o ttindex ttindex.lo ttindex.lo: ttindex.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c ttindex.c # Index generator for BDF font bdfindex: bdfindex.lo $(VFLIB) $(LIBTOOL) --mode=link \ $(CC) $(CFLAGS) -o bdfindex bdfindex.lo $(VFLIB) $(EXT_LIBRARY) bdfindex.lo: bdfindex.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c bdfindex.c # Index generator for BDF font # - A subset of bdfindex. This can be used only for Japanese. bdfjpindex: bdfjpindex.lo $(LIBTOOL) --mode=link \ $(CC) $(CFLAGS) -o bdfjpindex bdfjpindex.lo bdfjpindex.lo: bdfjpindex.c $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c bdfjpindex.c # Index generator for FontWave font fwindex: fwindex.lo $(LIBTOOL) --mode=link \ $(CC) $(CFLAGS) -o fwindex fwindex.lo fwindex.lo: fwindex.c fwindex.h $(LIBTOOL) --mode=compile \ $(CC) $(CFLAGS) -c fwindex.c # Installing install: $(LIBTOOL) $(CP) $(VFLIB) $(libdir)/$(VFLIB) $(LIBTOOL) -n --finish $(libdir) $(CP) VF.h $(includedir)/VF.h $(CP) VF.h $(runtimedir)/VF.h $(LIBTOOL) $(CP) ttindex $(bindir)/ttindex $(LIBTOOL) $(CP) bdfindex $(bindir)/bdfindex $(LIBTOOL) $(CP) fwindex $(bindir)/fwindex uninstall: -$(LIBTOOL) $(RM) $(libdir)/$(VFLIB) -$(RM) $(includedir)/VF.h -$(RM) $(runtimedir)/VF.h -$(LIBTOOL) $(RM) $(bindir)/ttindex -$(LIBTOOL) $(RM) $(bindir)/bdfindex -$(LIBTOOL) $(RM) $(bindir)/fwindex # Cleaning clean:: -$(RM) libVFlib2.a libVFlib2.la ttindex bdfindex fwindex bdfjpindex veryclean:: clean -$(RM) libVFlib2.a libVFlib2.la ttindex bdfindex fwindex bdfjpindex distclean:: veryclean -$(RM) libVFlib2.a libVFlib2.la ttindex bdfindex fwindex bdfjpindex # Ross Paterson (rap@doc.ic.ac.uk) wrote this ingenious part. depend: (echo '/^#.* PUT NO STUFF BELOW/,$$d'; echo w; echo q) \ | ed - Makefile echo '# Dependencies generated by make depend: PUT NO STUFF BELOW' \ >> Makefile for file in *.c; \ do $(CC) $(CPPFLAGS) -E $$file \ | sed -n 's|^# [1-9][0-9]* "\([^/].*\.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 }' \ >> Makefile echo "#EOF" >>Makefile # Dependencies generated by make depend: PUT NO STUFF BELOW