# Makefile - makefile for target/src/usr
#
# modification history
# --------------------
# 01b,02dec96,yp   made build of statTbl.o more reliable. We find makeStatTbl
#		   from search path now
# 01a,17aug96,yp   derived from 01e of MakeSkel
#
# DESCRIPTION
# This file contains the makefile rules for building the vx library
#
#*/

TGT_DIR=$(WIND_BASE)/target

DOC_FILES=	usrLib.c memDrv.c ramDrv.c

LIBNAME=lib$(CPU)$(TOOL)vx.a
LIBDIRNAME=obj$(CPU)$(TOOL)vx

OBJS=usrLib.o statTbl.o memDrv.o ramDrv.o

NODEPENDOBJS=statTbl.c

LOCAL_CLEAN=$(NODEPENDOBJS) $(LIBDIR)/statTbl.o

include $(TGT_DIR)/h/make/rules.library

$(TGT_DIR)/lib/$(LIBNAME): $(LIBDIR)/statTbl.o

$(LIBDIR)/statTbl.o:	statTbl.c

statTbl.c:
		@ $(RM) $@
		makeStatTbl $(TGT_DIR)/h > statTbl.c
