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

GENERAL		= $(3270LIBDIR)\general.lib
GENERAL_SRC	= genbsubs.c globals.c
GENERAL_OBJ	= genbsubs.obj globals.obj

all: $(GENERAL)

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

$(GENERAL): $(GENERAL_OBJ)

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

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


