# 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

SHELL = sh
MAKE = make
# GNU Libtool
LIBTOOL=../libtool

# defs
include ../make-sub

# Target
VFLIB=libVFlib.lib

# VFontcap file
VFCAP =

 
#DEBUGOPT = -DDYNAMIC_OPEN_CLOSE_DEBUG


# for the HBF API
FS=WIN32

#all:
#	$(MAKE) $(VFLIB) ttindex.exe bdfindex.exe fwindex.exe

all:
	$(MAKE) $(VFLIB) ttindex.exe

# Core objs
CORE_OBJ= VFlib.obj VFenc.obj VFEtable.obj VFcap.obj fn2ent.obj fman.obj

# Font drivers
DRV_OBJ=  VF_Sony.obj VF_Zeit.obj VF_Jg.obj VF_TT.obj VF_Bdf.obj \
          VF_Hbf.obj hbf.obj VF_Comp.obj VF_BitOp.obj VF_FNTWV.obj \
          VF_Comp2.obj VF_Null.obj VF_Ftype.obj

# EXT_LIBRARY=../../../libs/freetype15/lib/libttf.lib
EXT_LIBRARY=
# VFlib
$(VFLIB):  $(CORE_OBJ) $(DRV_OBJ)
	rm -f $@
	lib -out:$(VFLIB) $(CORE_OBJ) $(DRV_OBJ) $(EXT_LIBRARY) 


# VFlib
VFlib.obj:  	VFlib.c
	$(CC) $(CFLAGS) -c VFlib.c

# font capability database 
VFcap.obj:	VFcap.c
	 $(CC) $(CFLAGS) $(VFCAP) -c VFcap.c

# handling of font encodings
VFenc.obj:	VFenc.c
	 $(CC) $(CFLAGS) -c VFenc.c

# font encoding and character set tables
VFEtable.obj:	VFEtable.c
	$(CC) $(CFLAGS) -c VFEtable.c

# conv font name to font entry name
fn2ent.obj:	fn2ent.c
	 $(CC) $(CFLAGS)  -c fn2ent.c

# dynamic file stream manager
fman.obj:		fman.c
	 $(CC) $(CFLAGS) -c fman.c

# Sony Font driver
VF_Sony.obj:  	VF_Sony.c
	 $(CC) $(CFLAGS) $(USEFSLIB) -c VF_Sony.c
# Zeit Syotai-Club Font driver
VF_Zeit.obj:  	VF_Zeit.c
	 $(CC) $(CFLAGS)  -c VF_Zeit.c
# Zeit JG Font driver
VF_Jg.obj:  	VF_Jg.c
	 $(CC) $(CFLAGS)  -c VF_Jg.c
# TrueType Driver
VF_TT.obj:  	VF_TT.c
	 $(CC) $(CFLAGS)  -c VF_TT.c
# BDF Driver
VF_Bdf.obj:  	VF_Bdf.c
	 $(CC) $(CFLAGS)  -c VF_Bdf.c
# HBF Driver
VF_Hbf.obj:	VF_Hbf.c
	 $(CC) $(CFLAGS) -c VF_Hbf.c
hbf.obj:	hbf.c
	 $(CC) $(CFLAGS) -D$(FS)=1 -c hbf.c
# Composite font driver
VF_Comp.obj:  	VF_Comp.c
	 $(CC) $(CFLAGS)  -c VF_Comp.c
# Yet another Composite font driver
VF_Comp2.obj:  	VF_Comp2.c
	 $(CC) $(CFLAGS)  -c VF_Comp2.c
# Font Wave font driver
VF_FNTWV.obj:  	VF_FNTWV.c
	 $(CC) $(CFLAGS)  -c VF_FNTWV.c
# Bit-Operated font driver
VF_BitOp.obj:  	VF_BitOp.c
	 $(CC) $(CFLAGS)  -c VF_BitOp.c
# FreeType driver
VF_Ftype.obj:  	VF_Ftype.c
	 $(CC) $(CFLAGS)  -c VF_Ftype.c
# Null font driver
VF_Null.obj:  	VF_Null.c
	$(CC) $(CFLAGS)  -c VF_Null.c

# Index generator for TrueType font
ttindex.exe:	ttindex.obj 
	$(CC) $(CFLAGS) -Fe$@ ttindex.obj
ttindex.obj:	ttindex.c 
	$(CC) $(CFLAGS) -c ttindex.c

# Index generator for BDF font
bdfindex.exe:	bdfindex.obj $(VFLIB)
	$(CC) $(CFLAGS) -Febdfindex.exe bdfindex.obj $(VFLIB) 
bdfindex.obj:	bdfindex.c
	$(CC) $(CFLAGS) -c bdfindex.c

# Index generator for BDF font 
#   - A subset of bdfindex. This can be used only for Japanese.
bdfjpindex.exe:	bdfjpindex.obj 
	$(CC) $(CFLAGS) -Febdfjpindex.exe bdfjpindex.obj 
bdfjpindex.obj:	bdfjpindex.c 
	$(CC) $(CFLAGS) -c bdfjpindex.c

# Index generator for FontWave font
fwindex.exe:        fwindex.obj
	$(CC) $(CFLAGS) -Fefwindex.exe fwindex.obj
fwindex.obj:        fwindex.c fwindex.h
	$(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.lib libVFlib2.lib ttindex bdfindex fwindex bdfjpindex
#veryclean:: clean
#	-$(RM) libVFlib2.lib libVFlib2.lib ttindex bdfindex fwindex bdfjpindex
#distclean:: veryclean
#	-$(RM) libVFlib2.lib libVFlib2.lib 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`.obj: /"; \
#	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
