CFLAGS += -Wall -W -O2

.ifndef LOCALBASE
.error LOCALBASE not defined
.endif


all : dupfind

dupfind : dupfind.c Makefile
	$(CC) $(CFLAGS) $(LDFLAGS) -I$(LOCALBASE)/include -lcurses -L$(LOCALBASE)/lib -lfcrc -o $@ -s $<

install :
	$(BSD_INSTALL_PROGRAM) dupfind $(PREFIX)/bin/dupfind
	$(BSD_INSTALL_MAN) dupfind.1 $(PREFIX)/man/man1/dupfind.1

clean :
	rm -f *.err dupfind *.core


syntax highlighted by Code2HTML, v. 0.9.1