📄 ansi.mk
字号:
# %W% %G% %U%## 1990 makefileSHELL=/bin/sh# flags for ANSI compiles## These flags are setup for gcc, change as/if needed#PEDANTIC=-pedanticCFLAGS=-O -ansi CHMOD=chmodCC=gccCP=cpRM=rmLN=ln# winners that may be ok to compile with ANSI#WINNERS=cmills pjr westley stig tbr dg baruch jaw scjonesall: ${WINNERS}ansi: allcommon: @echo "wrong makefile, use common.mk" exit 1cmills: cmills.c ${CC} ${CFLAGS} -DM=500 -DN=52 -DX="srand((int)time(0L))" -DV=void \ -o cmills cmills.cpjr: pjr.c ${CC} ${CFLAGS} pjr.c -o pjrwestley: westley.c ${CC} ${CFLAGS} westley.c -o westleystig: stig.c stig.ksh @echo "run the Korn shell, and source stig.ksh" @echo "or read stig.hint and create your own aliases"scjones: scjones.c ${CC} ${CFLAGS} scjones.c -o scjonestbr: tbr.c ${CC} ${CFLAGS} tbr.c -o tbrdg: dg.c ${CC} ${CFLAGS} dg.c -Dindex=strchr -o dg # compile with the following if you don't have strchr() #${CC} ${CFLAGS} dg.c -o dgdds: dds.c LANDER.BAS ${CC} ${CFLAGS} dds.c -o ddstheorem: theorem.c ${CC} ${CFLAGS} theorem.c -o theorem ${RM} -f sorter.c -./theorem -r 0 0 0 0 < theorem.c > sorter.c ${CC} ${CFLAGS} sorter.c -o sorter ${RM} -f fibonacci.c -./sorter 0 0 0 0 < theorem.c > fibonacci.c ${CC} ${CFLAGS} fibonacci.c -o fibonaccibaruch: baruch.c ${CC} ${CFLAGS} baruch.c -o baruchjaw: jaw.c shark.sh ${RM} -f ./zcat ./atob ./jaw ${CC} ${CFLAGS} ${PEDANTIC} jaw.c -o zcat ${LN} zcat atob echo 'PATH=;export PATH;atob|zcat' > jaw ${CHMOD} 0555 ./jawclean: ${RM} -f *.o a.out coreclobber: clean ${RM} -f ${WINNERS} sorter.c sorter ${RM} -f fibonacci.c fibonacci atob zcatnuke: clobber @trueinstall: all cat ${WINNERS} > /dev/null
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -