makefile

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

TXT
75
字号
# Makefile for cbook/05-Functions/programs# Created by the ExportAll facility# ***************************************************************PROGRAMS = \    gameloop \    iseven \    c2ftable \    fact \    combine \    calendar # ***************************************************************# 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 compilationsgameloop.o: gameloop.c	$(CC) $(CFLAGS) -c gameloop.ciseven.o: iseven.c	$(CC) $(CFLAGS) -c iseven.cc2ftable.o: c2ftable.c	$(CC) $(CFLAGS) -c c2ftable.cfact.o: fact.c	$(CC) $(CFLAGS) -c fact.ccombine.o: combine.c	$(CC) $(CFLAGS) -c combine.ccalendar.o: calendar.c	$(CC) $(CFLAGS) -c calendar.cgameloop: gameloop.o	$(CC) $(CFLAGS) -o gameloop gameloop.oiseven: iseven.o	$(CC) $(CFLAGS) -o iseven iseven.oc2ftable: c2ftable.o	$(CC) $(CFLAGS) -o c2ftable c2ftable.ofact: fact.o	$(CC) $(CFLAGS) -o fact fact.ocombine: combine.o	$(CC) $(CFLAGS) -o combine combine.ocalendar: calendar.o	$(CC) $(CFLAGS) -o calendar calendar.o

⌨️ 快捷键说明

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