#
# Copyright (c) 1993 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
#

LIBDIR	 =	
PROGDIR	 =	
GPROGDIR = gdmo
UTILDIR	= flex byacc
DIR 	= $(GPROGDIR) $(UTILDIR)

all:		utils gprog

lib:;

glib:;

gprog:	utils make-gprog

prog:	gprog

make-gprog:;	@for i in $(GPROGDIR); \
		    do (echo "cd $$i; ./make prog"; \
			      cd $$i; ./make prog); \
		    done

utils:;		@for i in $(UTILDIR); \
		    do (echo "cd $$i; make"; \
			      cd $$i; make); \
		    done

install:	utils install-h install-lib install-gprog install-man


clean:;		@for i in $(DIR); \
			do (echo "cd $$i; make clean"; \
				  cd $$i; make clean); \
			done

install-h:

install-gh:;	

install-lib:;	

install-glib:;	

install-prog:	install-gprog

install-gprog:	utils install-gprogdir

install-gprogdir:;	@for i in $(GPROGDIR) ; \
		    do (echo "cd $$i; ./make install-gprog"; \
			      cd $$i; ./make install-gprog); \
		    done

install-man:	install-gman

install-gman:;	@for i in $(GPROGDIR); \
		    do (echo "cd $$i; ./make install-gman"; \
			      cd $$i; ./make install-gman); \
		    done
