makefile

来自「Util-linux 软件包包含许多工具。其中比较重要的是加载、卸载、格式化、分」· 代码 · 共 55 行

TXT
55
字号
.SUFFIXES:include ../make_includeinclude ../MCONFIGGETOPTDIR=$(USRSHAREMISCDIR)/getopt# Define this to 0 to use the getopt(3) routines in this package.LIBCGETOPT=1SHELL=/bin/shLD=ldRM=rm -fINSTALL=installCPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT)ifeq ($(LIBCGETOPT),0)CPPFLAGS+=-I./gnuendif# -Wcast-align causes problems with the identifier stderr on alpha's# with an old glibc.# -Wbad-function-cast and -Wmissing-declarations are unknown for gcc 2.5.8.WARNINGS=-Wall \         -W -Wshadow -Wpointer-arith -Wcast-qual \         -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \         -Wnested-externs -Winline# CFLAGS= $(WARNINGS) $(OPT)SOURCES=getopt.cifeq ($(LIBCGETOPT),0)SOURCES+=gnu/getopt.c gnu/getopt1.cendifOBJECTS=$(SOURCES:.c=.o)BINARIES=getopt.PHONY: all clean realclean all: $(BINARIES)clean:	-$(RM) $(OBJECTS) $(BINARIES) getopt: $(OBJECTS)	$(CC) $(LDFLAGS) $< -o $@install: getopt	$(INSTALLDIR) $(USRBINDIR) $(MAN1DIR) $(GETOPTDIR)	$(INSTALLBIN) getopt $(USRBINDIR)	$(INSTALLMAN) getopt.1 $(MAN1DIR)	$(INSTALLBIN) getopt-parse.bash getopt-parse.tcsh \	              getopt-test.bash getopt-test.tcsh $(GETOPTDIR)

⌨️ 快捷键说明

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