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

NCSALIB		= $(LIBDIR)\ncsa.lib
3270NCSALIB	= $(3270LIBDIR)\ncsa.lib
NCSALIB_SRC	= ncsaio.asm
NCSALIB_OBJ	= ncsaio.obj

all: $(NCSALIB)

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

$(NCSALIB): $(NCSALIB_OBJ)

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

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




