#
#  This file is just like 'Makefile', but with the comments stripped out.
#  It shows just how small the 'Makefile' really can be.
#
TARGET		= rlm_flow
SRCS		= rlm_flow.c
HEADERS		= rlm_flow.h
RLM_CFLAGS	=
RLM_LIBS	= 
RLM_INSTALL	= install-flowmux
RLM_SUBDIRS	= flowmux

$(STATIC_OBJS): $(HEADERS)

$(DYNAMIC_OBJS): $(HEADERS)

all:
	@$(MAKE) $(MFLAGS) static dynamic
	@$(MAKE) $(MFLAGS) WHAT_TO_MAKE=$@ common

allclean:
	@$(MAKE) $(MFLAGS) WHAT_TO_MAKE=clean common

install-flowmux:
	 @$(MAKE) $(MFLAGS) WHAT_TO_MAKE=install common

common:
	@for dir in $(RLM_SUBDIRS); do \
		echo "Making $(WHAT_TO_MAKE) in $$dir..."; \
		(cd $$dir && $(MAKE) $(MFLAGS) $(WHAT_TO_MAKE)) || exit 1;\
	done

include ../rules.mak
