makefile

来自「gsac程序包」· 代码 · 共 61 行

TXT
61
字号
.SUFFIXES:prefix=/usr/localbindir=$(prefix)/binmandir=$(prefix)/manman1dir=$(mandir)/man1libdir=$(prefix)/libgetoptdir=$(libdir)/getopt# Define this to 0 to use the getopt(3) routines in this package.LIBCGETOPT=1SHELL=/bin/shCC=gccLD=ldRM=rm -fINSTALL=installCPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT)ifeq ($(LIBCGETOPT),0)CPPFLAGS+=-I./gnuendifWARNINGS=-Wall \         -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \         -Wcast-align -Wmissing-declarations \         -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \         -Wnested-externs -WinlineOPTIMIZE=-O3 -fno-strength-reduceCFLAGS=$(WARNINGS) $(OPTIMIZE)LDFLAGS=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) %.o: %.c	$(CC) -c $(CPPFLAGS) $(CFLAGS) $*.c -o $*.ogetopt: $(objects)	$(CC) $(LDFLAGS) -o $@ $(objects)install: getopt	$(INSTALL) -m 755 getopt $(bindir)	$(INSTALL) -m 644 getopt.1 $(man1dir)install_doc:	$(INSTALL) -m 755 -d $(getoptdir)	$(INSTALL) -m 755 parse.bash parse.tcsh test.bash test.tcsh $(getoptdir)

⌨️ 快捷键说明

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