#
# Copyright (c) 1991 University College London
# All rights reserved.
#
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the Department of Computer Science, University College London.
# The name of the University may not be used to
# endorse or promote products derived from this software without
# specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
#

# Makefile for the kernel library
#
# By George Pavlou, June 1991


HFILES	=	GenericAttr.h AnyType.h AVA.h \
		GenericKS.h Coordinator.h IsodeCoord.h IsodeAgent.h \
		XCoord.h TkCoord.h
OFILES	=	GenericAttr.o AnyType.o AVA.o \
		GenericKS.o Coordinator.o IsodeCoord.o \
		XCoord.o # TkCoord.o

#INC +=		-I$(TKINC)

# comment in TkCoord.o and the INC line if you want the TkCoordinator class
#
# note this is not needed if you use the "pipe" model for communication
# between the TCL/TK GUI front end and the underlying C/C++ program
# and you better use that method for implementing TCL/TK-based GUIs


all:		libkernel.a

lib:		all

glib:		lib

install:	install-h install-lib

clean:;		rm -f *.o *.a *.ph core

install-h:;	@for i in $(HFILES); \
		    do (echo "cp $$i $(H)/$$i"; \
			      cp $$i $(H)/$$i); \
		    done

install-gh:	install-h

install-lib:	libkernel.a
		@echo 	"cp libkernel.a $(LIB)/libkernel.a; ranlib $(LIB)/libkernel.a"; \
			 cp libkernel.a $(LIB)/libkernel.a; \
			 ranlib $(LIB)/libkernel.a

install-glib:	install-lib

install-man:

libkernel.a:	$(OFILES)
		ar ruv libkernel.a $(OFILES)
		ranlib libkernel.a



GenericAttr.o:	GenericAttr.h

AnyType.o:	AnyType.h GenericAttr.h

AVA.o:		AVA.h GenericAttr.h

GenericKS.o:	Coordinator.h GenericKS.h

Coordinator.o:	Coordinator.h GenericKS.h

IsodeCoord.o:	IsodeCoord.h Coordinator.h GenericKS.h

XCoord.o:	XCoord.h Coordinator.h GenericKS.h

TkCoord.o:	TkCoord.h Coordinator.h GenericKS.h

