sed -e "s/-O3 -lpcap/-O3/" -e "s/\(gcc.*b.c\)/\1 -lpcap/" Makefile > Makefile.new cp Makefile Makefile.old; mv Makefile.new Makefile make