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


MACHINE = vax
MDLIBVDIRS =
MDDIRS =

# must be before buildlibtemplate
LINT = lintvax

INSTALLED_FILES = \
		"../process/$(MACHINE)/_start.o \
		 libV.a \
		 libVsa.a \
		 libVsaconsole.a"
OBJSUFFIX = o

.SUFFIXES:
.SUFFIXES: .$(OBJSUFFIX) .c .s

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

libV.a: $(LIBVDIRS)
	rm -f libV.a
	ar cr libV.a `lorder $(LIBVDIRS) | tsort`
#	ranlib libV.a

SALIB = ../sa/vax/*.o ../mem/vax/*.o ../strings/vax/*.o \
	../numeric/vax/*.o \
	../io/vax/seek.o \
	../io/vax/read.o \
	../io/vax/write.o \
	../io/vax/flush.o \
	../io/vax/open.o \
	../io/vax/_open.o \
	../stdio/vax/*.o

libVsa.a:
	rm -f libVsa.a
	ar cr libVsa.a $(SALIB)
	ranlib libVsa.a

CONSOLE = ../saconsole/vax/*.o \
	../mem/vax/*.o \
	../strings/vax/*.o \
	../numeric/vax/*.o

libVsaconsole.a:
	rm -f libVsaconsole.a
	ar cr libVsaconsole.a `lorder $(CONSOLE) | tsort`

