--- Makefile.orig 1989-03-30 18:04:11 UTC +++ Makefile @@ -1,26 +1,28 @@ # Makefile for Uzap. -BINDIR = /usr/local -MANDIR = /usr/man/manl -MSECT = l +BINDIR = ${PREFIX}/bin/ +MANDIR = ${PREFIX}/man/man1 +MSECT = 1 + +all: uzap uzap: uzap.o edit.o search.o screen.o - cc -O uzap.o edit.o search.o screen.o -lcurses -ltermcap -o uzap + $(CC) $(CFLAGS) uzap.o edit.o search.o screen.o $(LDFLAGS) -lncurses -o uzap uzap.o: uzap.c - cc -c -O uzap.c + $(CC) -c $(CFLAGS) uzap.c edit.o: edit.c - cc -c -O edit.c + $(CC) -c $(CFLAGS) edit.c search.o: search.c - cc -c -O search.c + $(CC) -c $(CFLAGS) search.c screen.o: screen.c - cc -c -O screen.c + $(CC) -c $(CFLAGS) screen.c install: uzap - install -s -m 771 uzap $(BINDIR) - install -c -m 664 uzap.man $(MANDIR)/uzap.$(MSECT) + $(BSD_INSTALL_PROGRAM) uzap $(DESTDIR)$(BINDIR) + $(BSD_INSTALL_MAN) uzap.man $(DESTDIR)$(MANDIR)/uzap.$(MSECT) clean: - rm -f *.o core uzap + rm -f *.o core *.core uzap