#
# This is the makefile for tn3270's ctlr 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 ctlr library and its dependancies

CTLR		= $(3270LIBDIR)\ctlr.lib
CTLR_SRC	= api.c function.c inbound.c oia.c options.c outbound.c
CTLR_OBJ	= api.obj function.obj inbound.obj oia.obj \
                  options.obj outbound.obj

all: $(CTLR)

clean:
	-del *.obj
   	-del $(CTLR)

$(CTLR): $(CTLR_OBJ)

	copy $(CTLR) $(3270LIBDIR)\$(CTLR)

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

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






