1 # Makefile -- Makefile for util-linux Linux utilities
2 # Created: Sat Dec 26 20:09:40 1992
3 # Revised: Mon Aug 19 20:11:15 1996 by faith@cs.unc.edu
4 # Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)
9 # Where to put man pages?
11 MAN1
= col
.1 colcrt
.1 colrm
.1 column
.1 hexdump
.1 more
.1 rev
.1 \
14 # Where to put binaries?
15 # See the "install" rule for the links. . .
19 USRBIN
= col colcrt colrm column hexdump rev ul
21 # Where to put datebase files?
25 # Programs requiring special compilation
27 NEEDS_NCURSES
= more ul
32 ifeq "$(HAVE_NCURSES)" "yes"
33 $(CC
) $(LDFLAGS
) $^
-o
$@
$(LIBCURSES
)
35 @echo
$@ not made since it requires ncurses
40 hexdump
: hexdump.o conv.o display.o hexsyntax.o odsyntax.o parse.o
41 hexdump.o
: hexdump.c hexdump.h
42 conv.o
: conv.c hexdump.h
43 display.o
: display.c hexdump.h
44 hexsyntax.o
: hexsyntax.c hexdump.h
45 odsyntax.o
: odsyntax.c hexdump.h
46 parse.o
: parse.c hexdump.h
48 # Rules for everything else
53 column
: column.o
$(ERR_O
)
54 more.o
: more.c
$(LIB
)/pathnames.h
57 ifeq "$(HAVE_NCURSES)" "yes"
62 install install.shadow
install.text-utils
: all
63 $(INSTALLDIR
) $(BINDIR
) $(USRBINDIR
) $(USRLIBDIR
) $(MAN1DIR
)
64 $(INSTALLBIN
) $(BIN
) $(BINDIR
)
65 $(INSTALLBIN
) $(USRBIN
) $(USRBINDIR
)
66 $(INSTALLDAT
) $(USRLIB
) $(USRLIBDIR
)
67 $(INSTALLMAN
) $(MAN1
) $(MAN1DIR
)
69 .PHONY
: clean distclean
71 -rm -f
*.o
*~ core
$(BIN
) $(USRBIN
)