#
# 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 system management agent
#
# By George Pavlou, June 1991


PROG	=	sma
MANPAGE	=	sma.8c

MIBLIBS	=	../isode_mib/libisodemib.a ../isode_mib/libisodesntx.a \
		../ux_mib/libuxmib.a \
		$(MONMET_MIB_LIB) $(MONMET_SNTX_LIB) $(MONSUP_MIB_LIB)
MISLIBS	=	../gms/libgms.a ../smi/libsmisntx.a $(TOP)/kernel/libkernel.a
UTILIB	=	$(TOP)/util/util/libutil.a
OSILIBS	=	$(SECURITY_LIB) $(TOP)/msap/libmsap.a $(LT_LIB) \
		$(TOP)/util/sntx/libsntx.a $(OSISEC_LIB) $(X500_LIB) \
		$(ISODE)/libisode$(LPP).a


all:		prog

prog:		$(PROG)

install:	install-prog install-man

install-prog:	$(PROG)
		@echo "cp $(PROG) $(BIN)/$(PROG)"; cp $(PROG) $(BIN)/$(PROG)

install-man:;	@echo "cp $(MANPAGE) $(MAN)/man8/$(MANPAGE)"; \
		cp $(MANPAGE) $(MAN)/man8/$(MANPAGE)

clean:;		rm -f *.o $(PROG) core *~

$(PROG):	Sma.o $(MIBLIBS) $(MISLIBS) $(OSILIBS)
		$(PURIFYPLUS) $(CCPLUS) $(LDFLAGS) -o $@ Sma.o \
		$(MIBLIBS) $(MISLIBS) $(UTILIB) $(OSILIBS) $(LSOCKET) -lm

Sma.o:		Sma.h

