#
#   $Id: Makefile.in,v 1.1.1.1 1999/05/18 15:33:43 dugsong Exp $
#
#   Libnet ethernet testcode makefile
#   
#   (c) 1998, 1999  Mike D. Schiffman <mike@infonexus.com>
#                   route|daemon9 <route@infonexus.com>
#   @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
