#
# This is the makefile for the vjclib 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 vjclib library and its dependancies

VJCLIB		= $(LIBDIR)\vjc.lib
3270VJCLIB	= $(3270LIBDIR)\vjc.lib
VJCLIB_SRC	= slcompre.c
VJCLIB_OBJ	= slcompre.obj

all: $(VJCLIB)

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

$(VJCLIB): $(VJCLIB_OBJ)

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

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



