# Makefile
CFLAGS	= -g -O2 -Wall -ansi -pedantic

#CFLAGS	= -O2 -Wall -ansi -pedantic -DSOLARIS
#LDFLAGS= -lsocket -lnsl


CC = gcc
OBJS = main.o list.o

all:	httpgrep

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

httpgrep: $(OBJS)
	$(CC) -o httpgrep $(LDFLAGS) $(OBJS)

clean:
	rm -f *.o *~ httpgrep core 

# Depedency list, made with gcc -MM
list.o: list.c list.h
main.o: main.c list.h

