ifeq (802.3,$(findstring 802.3,$(PJ_TESTMODE)))
EXTRA=iperf
endif
SUBDIRS := ortp libosip2 libeXosip2 pcre lighttpd wireless_tools.26 pppd tcp_wrappers portmap ez-ipupdate openntpd samba libdaemon ifplugd mii-tool miniupnpc lld2d $(EXTRA)

.PHONY: all clean distclean opensources install
all: opensources
clean:
	[ "$(PJ_NAME)" != "" ]
	for subdir in $(SUBDIRS); do \
		make -C $$subdir clean; \
	done
distclean:
	[ "$(PJ_NAME)" != "" ]
	-for subdir in $(SUBDIRS); do \
		make -C $$subdir distclean; \
	done

opensources:
	[ "$(PJ_NAME)" != "" ]
	for subdir in $(SUBDIRS); do \
		make -C $$subdir install || exit 1; \
	done

install:
	[ "$(PJ_NAME)" != "" ]
	for subdir in $(SUBDIRS); do \
		make -C $$subdir install || exit 1; \
	done

