TARGETS = concatcap  pcap-idx  tcptrace

all: $(TARGETS)

concatcap:
	@cd concatcap && $(MAKE) all

pcap-idx:
	@cd pcap-idx && $(MAKE) all

tcptrace: tcptrace/Makefile
	@cd tcptrace && $(MAKE) all

tcptrace/Makefile:
	@cd tcptrace && ./configure

clean:
	@for d in $(TARGETS); do (cd $$d && $(MAKE) clean) || exit 1; done

distclean: clean
	@cd tcptrace && rm -f Makefile

.PHONY: all $(TARGETS) clean distclean
