1# 2# Minimal makefile for 'icmpinfo' 3# a tool to look at the icmp you receive 4# modified from BSD ping by Laurent Demailly 5# <dl@hplyot.obspm.fr> 6# 7# see man page & README (Installation section at least) 8 9VERS = 1.11 10 11# You may need to add libraries here : 12# like for Solaris, uncomment next line : 13#LDLIBS= -lsocket -lnsl 14 15# To override default compiler flags : 16#CFLAGS=-O2 -s 17 18# To change default compiler 19#CC=gcc 20 21RM = rm -f 22 23LDFLAGS= $(CFLAGS) 24 25OBJECTS= recvping.o print.o err.o icmpinfo.o 26TARGET = icmpinfo 27 28$(TARGET): $(OBJECTS) 29 $(CC) $(LDFLAGS) -o $@ $(OBJECTS) $(LDLIBS) 30 31tgz: clean 32 rm -f CHECKSUMS.asc 33 md5sum * > ../CHECKSUMS 34 mv ../CHECKSUMS . 35 pgp -asw CHECKSUMS 36 chmod 444 CHECKSUMS.asc 37 cd .. ; tar cvf icmpinfo-$(VERS).tar icmpinfo-$(VERS) ; gzip icmpinfo-$(VERS).tar 38 39clean: 40 $(RM) $(OBJECTS) $(TARGET) core *~ 41 42