makefile

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

TXT
74
字号
# Makefile for cbook/17-Looking-Ahead/programs# Created by the ExportAll facility# ***************************************************************PROGRAMS = \    qtest \    testsort \    fact \    power \    permute # ***************************************************************# 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 compilationsfact.o: fact.c	$(CC) $(CFLAGS) -c fact.cpower.o: power.c	$(CC) $(CFLAGS) -c power.cpermute.o: permute.c	$(CC) $(CFLAGS) -c permute.cqueue.o: queue.c queue.h	$(CC) $(CFLAGS) -c queue.cqtest.o: qtest.c queue.h	$(CC) $(CFLAGS) -c qtest.csort.o: sort.c sort.h	$(CC) $(CFLAGS) -c sort.ctestsort.o: testsort.c sort.h	$(CC) $(CFLAGS) -c testsort.cqtest: qtest.o queue.o	$(CC) $(CFLAGS) -o qtest qtest.o queue.otestsort: testsort.o sort.o	$(CC) $(CFLAGS) -o testsort testsort.o sort.ofact: fact.o	$(CC) $(CFLAGS) -o fact fact.opower: power.o	$(CC) $(CFLAGS) -o power power.opermute: permute.o	$(CC) $(CFLAGS) -o permute permute.o

⌨️ 快捷键说明

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