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

API		= $(3270LIBDIR)\api.lib
API_SRC		= api_bsd.c api_exch.c apilib.c asc_ebc.c astosc.c \
		  dctype.c disp_asc.c ebc_disp.c
API_OBJ		= api_bsd.obj api_exch.obj apilib.obj asc_ebc.obj astosc.obj \
		  dctype.obj disp_asc.obj ebc_disp.obj

all: $(API)

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

$(API): $(API_OBJ)

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

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



