makefile

来自「The art and science of c_source code!」· 代码 · 共 82 行

TXT
82
字号
# Makefile for cbook/02-Learning-by-Example/programs# Created by the ExportAll facility# ***************************************************************PROGRAMS = \    hello \    add2 \    add2f \    greeting \    inchtocm \    ave2f \    cmtofeet # ***************************************************************# Parameters to control Makefile operation# Note that the gccx command script must be definedCC = gccxCFLAGS = # ***************************************************************# Entry to bring the package up to dateall: $(PROGRAMS)# ***************************************************************# Standard entries to remove files from the directories#    tidy    -- eliminate unwanted files#    scratch -- delete derived files in preparation for rebuildtidy:	rm -f ,* .,* *~ core a.out graphics.psscratch: tidy	rm -f *.o *.a $(PROGRAMS)# ***************************************************************# C compilationshello.o: hello.c	$(CC) $(CFLAGS) -c hello.cadd2.o: add2.c	$(CC) $(CFLAGS) -c add2.cadd2f.o: add2f.c	$(CC) $(CFLAGS) -c add2f.cgreeting.o: greeting.c	$(CC) $(CFLAGS) -c greeting.cinchtocm.o: inchtocm.c	$(CC) $(CFLAGS) -c inchtocm.cave2f.o: ave2f.c	$(CC) $(CFLAGS) -c ave2f.ccmtofeet.o: cmtofeet.c	$(CC) $(CFLAGS) -c cmtofeet.chello: hello.o	$(CC) $(CFLAGS) -o hello hello.oadd2: add2.o	$(CC) $(CFLAGS) -o add2 add2.oadd2f: add2f.o	$(CC) $(CFLAGS) -o add2f add2f.ogreeting: greeting.o	$(CC) $(CFLAGS) -o greeting greeting.oinchtocm: inchtocm.o	$(CC) $(CFLAGS) -o inchtocm inchtocm.oave2f: ave2f.o	$(CC) $(CFLAGS) -o ave2f ave2f.ocmtofeet: cmtofeet.o	$(CC) $(CFLAGS) -o cmtofeet cmtofeet.o

⌨️ 快捷键说明

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