#
# This is the makefile for the vslib library. 
# It may be called on its own to just create and install this library,
# or it may be called from above by the master makefile.
#

# First we include the general definitions
!include "..\..\gendefs"

# The vslib library and its dependancies

VSLIB		= $(LIBDIR)\vs.lib
3270VSLIB	= $(3270LIBDIR)\vs.lib
VSLIB_SRC	= vsem.c vsinterf.c vsintern.c
VSLIB_OBJ	= vsem.obj vsinterf.obj vsintern.obj

all: $(VSLIB)

clean:
	-del *.obj
	-del $(VSLIB)
	-del $(3270VSLIB)

$(VSLIB): $(VSLIB_OBJ)

.c.obj:
	$(CC) $(CCOPTS) {$*.c }
	&$(LIB) $(VSLIB) $(LIBFLAGS) $*
	$(CC) $(CCOPTS) $(3270FLAGS) {$*.c }
	&$(LIB) $(3270VSLIB) $(LIBFLAGS) $*

.asm.obj:
	$(ASM) {$(AFLAGS) $*.asm }
	&$(LIB) $(VSLIB) $(LIBFLAGS) $*
	$(ASM) {$(AFLAGS) $*.asm }
	&$(LIB) $(3270VSLIB) $(LIBFLAGS) $*

