diff options
Diffstat (limited to 'text-utils/Makefile')
-rw-r--r-- | text-utils/Makefile | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/text-utils/Makefile b/text-utils/Makefile index 686418d61..66fda287e 100644 --- a/text-utils/Makefile +++ b/text-utils/Makefile @@ -3,38 +3,50 @@ # Revised: Mon Aug 19 20:11:15 1996 by faith@cs.unc.edu # Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu) # - +include ../make_include include ../MCONFIG # Where to put man pages? -MAN1= col.1 colcrt.1 colrm.1 column.1 hexdump.1 more.1 rev.1 \ - ul.1 +MAN1= col.1 colcrt.1 colrm.1 column.1 hexdump.1 more.1 rev.1 # Where to put binaries? # See the "install" rule for the links. . . BIN= more -USRBIN= col colcrt colrm column hexdump rev ul +USRBIN= col colcrt colrm column hexdump rev + +ifeq "$(HAVE_NCURSES)" "yes" +USRBIN:=$(USRBIN) ul +MAN1:=$(MAN1) ul.1 +endif # Where to put datebase files? USRLIB= more.help +all: $(BIN) $(USRBIN) + # Programs requiring special compilation -NEEDS_NCURSES= more ul +NEEDS_NCURSES= ul -all: $(BIN) $(USRBIN) +ifeq "$(HAVE_TERMCAP)" "no" +NEEDS_NCURSES:=$(NEEDS_NCURSES) more +else +more: + $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBTERMCAP) +endif $(NEEDS_NCURSES): ifeq "$(HAVE_NCURSES)" "yes" - $(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES) + $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBCURSES) else @echo $@ not made since it requires ncurses endif + # Rules for hexdump hexdump: hexdump.o conv.o display.o hexsyntax.o odsyntax.o parse.o @@ -51,11 +63,11 @@ col: col.o colcrt: colcrt.o colrm: colrm.o column: column.o $(ERR_O) +more: more.o more.o: more.c $(LIB)/pathnames.h rev: rev.o ifeq "$(HAVE_NCURSES)" "yes" -more: more.o ul: ul.o endif |