📄 makefile
字号:
# Makefile -- Makefile for util-linux Linux utilities# Created: Sat Dec 26 20:09:40 1992# 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_includeinclude ../MCONFIGMAN1= col.1 colcrt.1 colrm.1 column.1 hexdump.1 rev.1 line.1 tailf.1USRBIN= col colcrt colrm column hexdump rev line tailfBIN=MAYBE= more pg ulifeq "$(HAVE_NCURSES)" "yes"BIN:=$(BIN) moreUSRBIN:=$(USRBIN) ul pgMAN1:=$(MAN1) ul.1 more.1 pg.1elseifeq "$(HAVE_TERMCAP)" "yes"BIN:=$(BIN) moreMAN1:=$(MAN1) more.1endifendif# Is pg silent?ifeq "$(SILENT_PG)" "yes"CFLAGS:=$(CFLAGS) -DPGNOBELLendifall: $(BIN) $(USRBIN)# more and pg and ul use curses - maybe we can't compile themifeq "$(HAVE_NCURSES)" "yes"# Have ncurses - make more and pg and ulmore pg ul: $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBCURSES)more: more.o $(LIB)/xstrncpy.opg: pg.oul: ul.oelse# Do not have ncurses - give up on pg and ulpg ul: @echo $@ not made since it requires ncurses# For more we can also try termcapifeq "$(HAVE_TERMCAP)" "yes"more: more.o $(LIB)/xstrncpy.o $(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@ $(LIBTERMCAP)elsemore: @echo $@ not made since it requires ncurses or termcapendifendif# Rules for hexdumphexdump: hexdump.o conv.o display.o hexsyntax.o odsyntax.o parse.ohexdump.o: hexdump.c hexdump.hconv.o: conv.c hexdump.hdisplay.o: display.c hexdump.hhexsyntax.o: hexsyntax.c hexdump.hodsyntax.o: odsyntax.c hexdump.hparse.o: parse.c hexdump.h# Rules for everything elsecol: col.ocolcrt: colcrt.ocolrm: colrm.ocolumn.o: $(LIB)/errs.hcolumn: column.o $(ERR_O)more.o: more.c $(LIB)/pathnames.hrev: rev.oline: line.otailf: tailf.ocolcrt.o colrm.o column.o rev.o ul.o: $(LIB)/widechar.hinstall install.shadow install.text-utils: all $(INSTALLDIR) $(BINDIR) $(USRBINDIR) $(MAN1DIR)ifneq "$(BIN)" "" $(INSTALLBIN) $(BIN) $(BINDIR)endif $(INSTALLBIN) $(USRBIN) $(USRBINDIR) $(INSTALLMAN) $(MAN1) $(MAN1DIR).PHONY: clean distcleanclean: -rm -f *.o *~ core $(BIN) $(USRBIN) $(MAYBE)distclean: clean
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -