#
#   $Id: Makefile.in,v 1.1.1.1 1999/05/18 15:33:42 dugsong Exp $
#
#   Libnet simple testcode makefile
#   Copyright (c) 1998, 1999 Mike D. Schiffman <mike@infonexus.com>
#                            route|daemon9 <route@infonexus.com>
#   @configure_input@

CC          =   @CC@
CFLAGS      =   @CFLAGS@
OBJECTS     =   icmp_echo.o     \
		icmp_unreach.o  \
		icmp_timexceed.o  \
		icmp_timestamp.o

DEFINES     +=  @DEFS@
LIBS        =   -L../../lib/ -lnet @ADDITIONAL_LIBS@

.c.o:
	$(CC) $(CFLAGS) $(DEFINES) -c $< -o $@

all: 	icmp_echo      \
	icmp_unreach   \
	icmp_timexceed \
	icmp_timestamp

icmp_echo: $(OBJECTS)
	$(CC) icmp_echo.o $(LIBS) -o ./icmp_echo

icmp_unreach: $(OBJECTS)
	$(CC) icmp_unreach.o $(LIBS) -o ./icmp_unreach

icmp_timexceed: $(OBJECTS)
	$(CC) icmp_timexceed.o $(LIBS) -o ./icmp_timexceed

icmp_timestamp: $(OBJECTS)
	$(CC) icmp_timestamp.o $(LIBS) -o ./icmp_timestamp

clean:
	rm -f *.core icmp_echo icmp_unreach icmp_timexceed icmp_timestamp *.o

distclean: clean
	rm -f Makefile

# EOF
