all: config tcpdump

config:
	cd libpcap-0.0 && (./configure; cd ..)
	cd tcpdump-3.0 && (./configure; cd ..)

tcpdump: dummy

dummy:
	cd libpcap-0.0 && (make; cd ..)
	cd tcpdump-3.0 && (make; cd ..)
	cp tcpdump-3.0/tcpdump .

install: tcpdump
	install tcpdump -m 755 /usr/bin
	install tcpdump-3.0/tcpdump.1 -m 644 /usr/man/man1

clean:
	cd libpcap-0.0 && make clean
	cd tcpdump-3.0 && make clean
	rm -f tcpdump
