#
# 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	 =	mocompiler
CMPLDIR	 =	asncompiler mocompiler


all:		asncomp prog 

# Cheat the main compilation. This is because some of the librarries to be
# built require the compiler to be present.

# Make sure the $(TOP)/bin directory exists
bin-dir:;	@if test ! -d $(BIN) ; \
		     then \
		     echo "creating $(BIN)" ; \
		     mkdir $(BIN) ; \
                 fi

lib:

glib:

# Ensure the pepsy path conversion is carried out...
asncomp:;	@echo "cd asncompiler; ./make all"; \
		       cd asncompiler; ./make all

gprog:		prog

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

install:	install-h install-lib install-prog install-man


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

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

install-gh:	

install-lib:

install-glib:

install-prog:	bin-dir
		@for i in $(CMPLDIR) ; \
		    do (echo "cd $$i; ./make install-prog"; \
			      cd $$i; ./make install-prog); \
		    done

install-gprog:	install-prog

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

install-gman:	install-man
