
#
#
# this makefile has been edited to compile on linux machines
#
#

# This Makefile will help automate the installation of the binaries that
# are needed to enable Van Jacobson's traceroute.  This Makefile has been
# written for and tested on a Sun 3, Sun 3x, and Sun 4 machines running
# SunOS 4.0.x.  There is no reason, however, why it could not be expanded
# to the 386i or other machines.
#
# Set DESTDIR to the directory in which the traceroute executable will be
# installed.  /usr/etc is a good place to put a network debugging tool such
# as this. Or wherever...

DESTDIR= /usr/local/bin

# You shouldn't need to change anything below this line.

CC= cc
CFLAGS = -O #-DARCHAIC

# At the moment, the INCL variable isn't really needed for anything.
INCL = -I. -I/usr/include
LIBS = 
MANDIR= /usr/man/man8



all: traceroute 

traceroute: traceroute.c
	$(CC) $(CFLAGS) $(INCL) -o traceroute traceroute.c $(LIBS)

install: all
	install -o root -g bin -m 4755 traceroute ${DESTDIR}
	install -o root -g staff -m 755 traceroute.8 ${MANDIR}
	@ echo ""
	@ echo "Binaries and man page installed."
	@ echo ""

lint:
	lint -b -h -x $(INCL) traceroute.c | \
	  grep -v 'possible pointer alignment problem'

clean:
	rm -f *.o traceroute

FRC:

