# Makefile for V-System C library.
#
# Date Written    : February 24, 1985
# Programmer      : James Wilson
#
# This buildfile will execute the makefile on the lower level m68k directories
#

MACHINE = m68k
MDLIBVDIRS =
MDDIRS = 
MDINSTALL = libsun1rawio.a libsun2rawio.a libsun3rawio.a

# must be before buildlibtemplate
LINT = lint68

#for now, don't install the graphics stuff
# INSTALLED_FILES = \
#	libV.a \
#	../sun100graphics/libsun100graphics.a \
#	../sun120graphics/libsun120graphics.a \
#	../sfonts/libsfonts.a \
#	../../standalone/libVsa3.a \
#	../../standalone/libVsa10.a \
#	../../standalone/libVsa10x.a
INSTALLED_FILES = \
	libV.a \
	libVsa.a \
	libVsaconsole.a \
	llib-lV.ln \
	lockedmalloc.b \
	liblockedmalloc.a \
	../info/$(MACHINE)/libVinfo.a
#	^ Why does libc/vax/buildfile only list libV{,sa,saconsole}.a and
#	  not these other goodies?

OBJSUFFIX = b

# include the machine independent description
#include ../buildlibtemplate

libV.a: $(LIBVDIRS)
	rm -f    $@
	ar cq    $@ $<
	ranlib68 $@

libVsa.a: $(SALIB)
	rm -f    $@
	ar cr    $@ $<
	ranlib68 $@

libVsaconsole.a: $(SACONSOLE)
	rm -f    $@
	ar cr    $@ $<
	ranlib68 $@

libsun1rawio.a: ../rawio/m68k/sun1rawio.b
	rm -f    $@
	ar cr    $@ $<
	ranlib68 $@

libsun2rawio.a: ../rawio/m68k/sun2rawio.b
	rm -f    $@
	ar cr    $@ $<
	ranlib68 $@

libsun3rawio.a: ../rawio/m68k/sun3rawio.b
	rm -f    $@
	ar cr    $@ $<
	ranlib68 $@

liblockedmalloc.a: lockedmalloc.b
	rm -f    $@
	ar cr    $@ $<
	ranlib68 $@
