#
# 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 standard managed object library
#
# By George Pavlou, June 1991


HFILES	=	systemSim.h systemSim.inc.h TimeManager.h TimeManagerRelay.h
CLEANFILES =	systemSim.cc systemSim.h System.cc System.h \
		gdmo.log oidtable.tmp Makefile.mo
OFILES	=	systemSim.o GenericKS.o TimeManager.o TimeManagerRelay.o


all:		lib

lib:		libsimtime.a

glib:		lib

install:	install-h install-lib

clean:;		rm -f *.o *.ph *.a core $(CLEANFILES)

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

install-glib:	install-lib

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

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

systemSim.o:	systemSim.h systemSim.inc.h systemSim.inc.cc

systemSim.h systemSim.cc:	MIB.gdmo
		$(GDMO-CMPL) MIB.gdmo

GenericKS.o:	TimeManager.h

TimeManager.o:	TimeManager.h

TimeManagerRelay.o:	TimeManagerRelay.h TimeManager.h

