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

SYS_DOS		= $(3270LIBDIR)\sys_dos.lib
SYS_DOS_SRC	= support.asm spintc.c system.c termout.c spintasm.asm
SYS_DOS_OBJ	= spintc.obj support.obj system.obj termout.obj spintasm.obj

all: $(SYS_DOS)

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

$(SYS_DOS): $(SYS_DOS_OBJ)

.c.obj:
	$(CC) $(CCOPTS) $(3270FLAGS) {$*.c }
	&$(LIB) $(SYS_DOS) $(LIBFLAGS) $*
.asm.obj:
	$(ASM) {$(AFLAGS) $(3270FLAGS) $*.asm }
	&$(LIB) $(SYS_DOS) $(LIBFLAGS) $*


