
CC=gcc
LIBS=-lsocket -lnsl -lpcap -ll -ly
SRCS = sender.c main.c pinger.c y.tab.c lex.yy.c listen.c
OBJS = sender.o main.o pinger.o y.tab.o lex.yy.o listen.o
CFLAGS=-g

all:
	@cat COPYRIGHT
	@echo "Please read the README file first, then edit the Makefile"
	@echo "to suit your operating system, then use 'make rid'"

rid:
	yacc -d parser.y
	lex parser.l
	$(CC) -o rid $(CFLAGS) $(SRCS) $(LIBS)
clean:
	rm *.o rid y.output
