
#   ************************************************************************
#   *		    makefile for the Keep C support library		   *
#   ************************************************************************

#   This makefile produces a library to aid the preparation of resident C
#   programs that discard code and data not needed after initialisation.

!INCLUDE	<standard.mak>
!INCLUDE	<keepc.mak>

LIBDIR = ..\..\..\lib

#   ========================================================================

TARGETS : keepclib.lib

#   KEEPCLIB.LIB - optional support for resident programming.

chainint.obj : chainint.asm

closeall.obj : closeall.c

free_env.obj : free_env.c

keepexit.obj : keepexit.asm

onexit.obj : onexit.asm

shift.obj : shift.c
  $(COMPILE) $(KEEP) shift.c

keepclib.lib : chainint.obj closeall.obj free_env.obj keepexit.obj \
		onexit.obj shift.obj
  !$(LIBRARIAN) keepclib.lib -+$?;
  del keepclib.bak
  copy keepclib.lib $(LIBDIR)

#   ************************************************************************

