#                 Interface Monitor - Master Makefile
#
# Configure the source before using this Makefile.
#
# For help on configuring the source, type:
#
#       # ./configure --help
#
# Or read the installation instructions for more details, type:
#
#       # more INSTALL
#


# Shell:
#
# Uncomment this if you need to set the shell explicitly
#
#SHELL = /bin/bash

# GNU Make:
#
# Uncomment this if you need to set the make program explicitly
#
#MAKE = /usr/bin/gmake


# Source Directories List:
#
# List of subdirectories in this source that contain targets that need
# to be built.
#
ALL_SRC_DIRS=ifmon


# Build Rules:
#
all config:
	@for subdir in $(ALL_SRC_DIRS); do			\
            $(MAKE) -s -C $$subdir -f Makefile $@ || exit 1;	\
        done
	@echo "To install, type \"su\" (to gain root privileges)\
and then type \"make install\"."


# Install
#
install:
	@for subdir in $(ALL_SRC_DIRS); do			\
            $(MAKE) -s -C $$subdir -f Makefile $@ || exit 1;	\
        done
	@echo "Installation done."


# Clean
#
clean:
	@for subdir in $(ALL_SRC_DIRS); do			\
            $(MAKE) -s -C $$subdir -f Makefile $@;		\
        done
