#
#
#  Makefile for
#      - Compiling and linking main programs
#      - "Overlay" of changed Kant V2 routines
#  
#  Files:
#      objs       = List of private or overlay V2 routines (.o)  
#      liblocal.a = Archive file for altered V2 functions
#                   If this file is used it must not be empty.
#      progs      = List of names of executable programs
#      deps       = List of dependencies for these programs
#
#  Installing new functions; example: sub.c
#     (1) Write sub.c
#     (2) Add the line "sub.o \" to objs
#     (3) make
#
#  Installing new main programs; example: prg.c
#     (1) Write prg.c
#     (2) Add the line "prg.x \" to progs
#     (3) Add the dependencies in deps
#     (4) make
#     
# 
#  
 
include objs
 
LOCLIB  = liblocal.a
KANTLIB = $(INLIB)

V2   = //micky/user/kant/V2
 
include $(V2)/Makefile.inc
 
include progs

include deps
     
$(LOCLIB): $(OBJS)
	ar r $(LOCLIB) $(OBJS)
	ranlib $(LOCLIB)
 
clean:
	-rm -f *.o *.x $(LOCLIB)

