# # $Id$ # # Libnet example code toplevel Makefile # (c) 1998 - 2001 Mike D. Schiffman # # @configure_input@ all: example example: if ! test -e ../lib/libnet.a; then \ cd .. && make; \ fi gcc `libnet-config --defines` libnet-example-1.c \ `libnet-config --libs` -o example-1 gcc `libnet-config --defines` libnet-example-2.c \ `libnet-config --libs` -o example-2 gcc `libnet-config --defines` libnet-example-3.c \ `libnet-config --libs` -o example-3 gcc `libnet-config --defines` libnet-example-4.c \ `libnet-config --libs` -o example-4 clean: rm -f *.o example-1 example-2 example-3 example-4 distclean: clean rm -f Makefile # EOF