# # $Id$ # # Libnet ethernet testcode makefile # # (c) 1998, 1999, 2000 Mike D. Schiffman # @configure_input@ CC = @CC@ CFLAGS = @CFLAGS@ OBJECTS = arp.o tcp.o icmp_mask.o get_address.o poink.o DEFINES += @DEFS@ LIBS = -L../../lib/ -lnet @ADDITIONAL_LIBS@ .c.o: $(CC) $(CFLAGS) $(DEFINES) -c $< -o $@ all: arp tcp icmp_mask get_address poink arp: $(OBJECTS) $(CC) arp.o $(LIBS) -o ./arp tcp: $(OBJECTS) $(CC) tcp.o $(LIBS) -o ./tcp icmp_mask: $(OBJECTS) $(CC) icmp_mask.o $(LIBS) -o ./icmp_mask get_address: $(OBJECTS) $(CC) get_address.o $(LIBS) -o ./get_address poink: $(OBJECTS) $(CC) poink.o $(LIBS) -o ./poink clean: rm -f *.core arp tcp icmp_mask get_address poink *.o distclean: clean rm -f Makefile # EOF