CFLAGS = -g 

all:	listserv

clean::
	rm -f core listserv *.o

install:	all
	install -c -m 2711 -g mail listserv /usr/mail/bin

listserv:	main.o commands.o subscribe.o str.o listsearch.o info.o faq.o 
	cc -O -Bstatic -o listserv main.o commands.o subscribe.o str.o listsearch.o info.o faq.o 

main.o:	main.c listserv.h
	cc -c $(CFLAGS) main.c

commands.o:	commands.c listserv.h
	cc -c $(CFLAGS) commands.c

subscribe.o:	subscribe.c listserv.h
	cc -c $(CFLAGS) subscribe.c

str.o:	str.c listserv.h
	cc -c $(CFLAGS) str.c

listsearch.o: listsearch.c listserv.h
	cc -c $(CFLAGS) listsearch.c

info.o:	      info.c listserv.h
	cc -c $(CFLAGS) info.c

faq.o:	     faq.c listserv.h
	cc -c $(CFLAGS) faq.c

