#
# 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 OSI Management Information Services
#
# By Kevin McCarthy, November 1993

PROG		=iqa

GEN-PRX-lib	=../proxy/libiqamib.a ../proxy/libiqasyntaxes.a
SNMP-lib	=../snmp/librmibsnmp.a

SMF-lib		=$(MONMET_MIB_LIB) $(MONMET_SNTX_LIB)
GMS-lib         =$(TOP)/agent/gms/libgms.a $(TOP)/agent/smi/libsmisntx.a
MSAP-lib        =$(TOP)/msap/libmsap.a
KERNEL-lib      =$(TOP)/kernel/libkernel.a
UTIL-lib        =$(TOP)/util/util/libutil.a

LT-lib		=$(LT_LIB)
ISODE-lib       =$(TOP)/util/sntx/libsntx.a $(X500_LIB) $(ISODE)/libisode$(LPP).a \
		 $(LSOCKET)


PMA-lib		=$(GEN-PRX-lib)\
		 $(SNMP-lib)\
		 $(SMF-lib)\
		 $(GMS-lib)\
		 $(MSAP-lib)\
		 $(KERNEL-lib)\
		 $(UTIL-lib)\
		 $(LT-lib)\
		 $(ISODE-lib)\
		 -lm

# Files
O-files		=Pma.o

# Making
all: 		prog

prog:		$(PROG)

install:	install-prog

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

install-man:;

$(PROG): 	$(O-files) $(SYS-lib) $(GMS-lib) $(KERNEL-lib)
		$(PURIFYPLUS) $(CCPLUS) $(O-files) $(PMA-lib) -o $@

$(PROG):	$(GEN-PRX-lib) $(SNMP-lib)

Pma.o:		Pma.h

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