📄 makefile
字号:
# 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -