⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分区和管理硬盘驱动器
💻
字号:
# Makefile -- Makefile for util-linux Linux utilities# Created: Sat Dec 26 20:09:40 1992# Revised: Mon Nov 11 10:12:16 1996 by faith@cs.unc.edu# Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)# May be distirbuted under the GPL#include ../make_includeinclude ../MCONFIG# scriptreplay not added yet# Where to put man pages?MAN1= 		cal.1 chkdupexe.1 ddate.1 logger.1 look.1 mcookie.1 \		namei.1 rename.1 script.1 whereis.1# Where to put binaries?# See the "install" rule for the links. . .BIN=USRBIN=		cal chkdupexe ddate logger look mcookie \		namei rename script whereisMAYBE=		reset settermifeq "$(HAVE_RESET)" "no"USRBIN:=$(USRBIN) resetMAN1:=$(MAN1) reset.1endififeq "$(HAVE_WRITE)" "no"USRBIN:=$(USRBIN) writeMAN1:=$(MAN1) write.1endififeq "$(HAVE_KILL)" "no"BIN:=$(BIN) killMAN1:=$(MAN1) kill.1endififeq "$(HAVE_NCURSES)" "yes"USRBIN:=$(USRBIN) settermMAN1:=$(MAN1) setterm.1endif# For script onlyLIBPTY=ifeq "$(HAVE_OPENPTY)" "yes"LIBPTY:=$(LIBPTY) -lutilendif# Programs requiring special compilationNEEDS_CURSES=  settermNEEDS_OPENPTY= scriptall: $(BIN) $(USRBIN) $(USRBIN.NONSHADOW)$(NEEDS_CURSES):ifeq "$(HAVE_NCURSES)" "yes"	$(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES)else	@echo $@ not made since it requires ncursesendififeq "$(HAVE_NCURSES)" "yes"cal:	$(CC) $(LDFLAGS) $^ -o $@ $(LIBCURSES)elseifeq "$(HAVE_TERMCAP)" "yes"cal:	$(CC) $(LDFLAGS) $^ -o $@ $(LIBTERMCAP)endifendif$(NEEDS_OPENPTY):	$(CC) $(LDFLAGS) $^ -o $@ $(LIBPTY)%: %.sh	cp $@.sh $@	chmod 755 $@%: %.pl	cp $@.pl $@	chmod 755 $@# Rules for everything elsecal.o: $(LIB)/errs.hcal: cal.o $(ERR_O)chkdupexe: chkdupexe.plddate: ddate.okill: kill.o procs.ologger: logger.omcookie: mcookie.o $(LIB)/md5.omcookie.o: mcookie.c $(LIB)/md5.hreset: reset.shscript: script.owrite.o: $(LIB)/carefulputc.hwrite: write.o $(LIB)/carefulputc.oifeq "$(HAVE_NCURSES)" "yes"setterm: setterm.oendifinstall: all	$(INSTALLDIR) $(BINDIR) $(USRBINDIR)ifneq "$(BIN)" ""	$(INSTALLBIN) $(BIN) $(BINDIR)endif	$(INSTALLBIN) $(USRBIN) $(USRBINDIR)	$(INSTALLDIR) $(MAN1DIR)	$(INSTALLMAN) $(MAN1) $(MAN1DIR)ifeq "$(HAVE_WRITE)" "no"ifeq "$(USE_TTY_GROUP)" "yes"	chgrp tty $(USRBINDIR)/write	chmod g+s $(USRBINDIR)/writeendifendif.PHONY:	cleanclean:	-rm -f *.o *~ core $(BIN) $(USRBIN) $(MAYBE)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -