# This file is part of the distribution for Philip Brown's
# adjusted "vgatext" driver for opensolaris.
# Philip's distribution is hosted at
#  http://www.bolthole.com/solaris/drivers/vgatext.html
#
#  The adjustments are in order to allow choosing your own VGA font
# for solaris x86 console mode.
#
# It creates TWO kernel modules: vgatext, and vga_font
# They should be installed to
#  /kernel/drv/vgatext (saving original sun one somewhere first)
#  /kernel/misc/vga_font
#
#  You must use makevgafont to generate your own vga_font module,
#  using the "bdf" font of your choice.
#  Note that there is a utility "pcftobdf" floating around on the net,
#  if your favourite font is in .pcf format. See also "getbdf"
#  Sadly, pcftobdf comes in "full" X11 distributions like bsd, but
#  not Solaris's distribution, it seems.
#

DISTSRCS= OPENSOLARIS.LICENSE vgatext.c bdf_to_c.awk font_header.h \
     Makefile makevgafont  \
     sys
#     sys/README sys/font.h sys/vgareg.h sys/vgasubr.h
#     and now, even more files.
# I distribute them so that this code can be compiled on any sol10,
# not just opensolaris sol10+

all:	vgatext vga_font

vgatext:	vgatext.c
	$(CC) -D_KERNEL -I. -c vgatext.c
	ld -r -o $@ vgatext.o

vga_font:
	@echo ""
	@echo You must now run '"makevgafont somefile.bdf"'
	@echo which will generate vga_font.c and compile to vga_font module
	@

vga_font.c:
	@echo vga_font.c does not exist. 

tar:
	@echo making distribution tarball
	sccs check
	rm -fr /tmp/vgatext
	mkdir /tmp/vgatext
	tar cf - $(DISTSRCS) | (cd /tmp/vgatext && tar xf -)
	cd /tmp && tar cvf vgatext.tar vgatext
	rm -fr /tmp/vgatext
