# OVOPS++ top-level makefile.

# Subdirs that contain necessary modules
SUBDIRS =	$(OPPSRC)/sf \
		$(OPPSRC)/pf

# Install options. Quotes are needed if value contains whitespaces.
INSTALL = install
INSTALLOPTS = "-c -m 644"
INSTALLTARGET = /usr/local/lib

#
# Include a Rules file
#
include $(OPPSRC)/Rules.Make

static dynamic static_install dynamic_install :
	@for i in $(SUBDIRS); do ( cd $$i && $(MAKE) $@ INSTALL=$(INSTALL) INSTALLOPTS=$(INSTALLOPTS) INSTALLTARGET=$(INSTALLTARGET) ); done

# Default 'install' rule.
install :
	@echo "Please do 'make dynamic_install' or 'make static_install'."

# deepdep makes dependencies in current directory and all SUBDIRS.
deepdep : dep
	@for i in $(SUBDIRS); do ( cd $$i && $(MAKE) dep ); done

# deepclean cleans current directory and all SUBDIRS.
deepclean : clean
	@for i in $(SUBDIRS); do ( cd $$i && $(MAKE) clean ); done


# Dependencies are below. The next line is used by makedepend, so
# DO NOT DELETE
