# Makefile for PCLIST under Coherent.

SRC=.
CFLAGS=-O -I$(SRC)
LDFLAGS=-n -lcurses -lterm

OBJS=\
	buf.o\
	dir-io.o\
	find.o\
	help.o\
	input.o\
	pclist.o\
	screen.o

# Primary Target.
pclist:	$(OBJS)
	$(CC) -o pclist $(OBJS) $(LDFLAGS)
	ls -l pclist
	strip pclist
	ls -l pclist

clean:
	rm $(OBJS)

buf.o:		$(SRC)/buf.c 		$(SRC)/pclist.h
dir-io.o:	$(SRC)/dir-io.c
find.o:		$(SRC)/find.c 		$(SRC)/pclist.h
help.o:		$(SRC)/help.c 		$(SRC)/pclist.h
input.o:		$(SRC)/input.c 	$(SRC)/pclist.h
screen.o:	$(SRC)/screen.c	$(SRC)/pclist.h
pclist.o:	$(SRC)/pclist.c	$(SRC)/pclist.h

