makefile
来自「The art and science of c_source code!」· 代码 · 共 61 行
TXT
61 行
# Makefile for cbook/08-Random-Numbers/programs# Created by the ExportAll facility# ***************************************************************PROGRAMS = \ randtest \ cointest \ dicetest \ craps # ***************************************************************# 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 compilationsrandtest.o: randtest.c $(CC) $(CFLAGS) -c randtest.ccointest.o: cointest.c $(CC) $(CFLAGS) -c cointest.cdicetest.o: dicetest.c $(CC) $(CFLAGS) -c dicetest.ccraps.o: craps.c $(CC) $(CFLAGS) -c craps.crandtest: randtest.o $(CC) $(CFLAGS) -o randtest randtest.ocointest: cointest.o $(CC) $(CFLAGS) -o cointest cointest.odicetest: dicetest.o $(CC) $(CFLAGS) -o dicetest dicetest.ocraps: craps.o $(CC) $(CFLAGS) -o craps craps.o
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?