makefile

来自「1984-1993模糊 C 源代码竞赛.zip 非常的好,不过这是DOS格式,」· 代码 · 共 130 行

TXT
130
字号
# %W% %G% %U%## 1991 makefile## Copyright (c) 1991, Landon Curt Noll & Larry Bassel.# All Rights Reserved.  Permission for personal, education or non-profit use is# granted provided this this copyright and notice are included in its entirety# and remains unaltered.  All other uses must receive prior permission in # writing from both Landon Curt Noll and Larry Bassel.SHELL=/bin/shMAKE=makeMAKEFLAGS=e# uncomment the line to select the preferred type of compile## You should also check the ansi.mk or common.mk for the# proper compiler name and flags.## NOTE ==> USE=ansi     compile with an ANSI compiler by default#USE=ansi# NOTE ==> USE=common   compile with a common K&R compiler by default#USE=commonWINNERS= ant brnstnd buzzard cdupont davidguy dds fine rince westleyall:	-@if [ "${USE}" = "common" ]; then \		echo ${MAKE} -k -f common.mk all; \		${MAKE} -k -f common.mk all; \	elif [ "${USE}" = "ansi" ]; then \		echo ${MAKE} -k -f ansi.mk all; \		${MAKE} -k -f ansi.mk all; \	else \		echo "set USE= in Makefile to be ansi or common as desired"; \		echo "or type: make -f ansi.mk for ansi makes"; \		echo "or type: make -f common.mk for common K&R makes"; \		exit 1; \	fiansi:	${MAKE} -f ansi.mk allcommon:	${MAKE} -f common.mk all${WINNERS} merlyn.c nextmove.c ttt_game.c:	-@if [ "${USE}" = "common" ]; then \		echo ${MAKE} -f common.mk $@; \		${MAKE} -f common.mk $@; \	elif [ "${USE}" = "ansi" ]; then \		echo ${MAKE} -f ansi.mk $@; \		${MAKE} -f ansi.mk $@; \	else \		echo "set USE= in Makefile to be ansi or common as desired"; \		echo "or type: make -f ansi.mk for ansi makes"; \		echo "or type: make -f common.mk for common K&R makes"; \		exit 1;\	fittt: ttt.sh	-@if [ "${USE}" = "common" ]; then \		echo ${MAKE} -f common.mk $@; \		${MAKE} -f common.mk $@; \	elif [ "${USE}" = "ansi" ]; then \		echo ${MAKE} -f ansi.mk $@; \		${MAKE} -f ansi.mk $@; \	else \		echo "set USE= in Makefile to be ansi or common as desired"; \		echo "or type: make -f ansi.mk for ansi makes"; \		echo "or type: make -f common.mk for common K&R makes"; \		exit 1;\	fimerlyn: merlyn.c	-@if [ "${USE}" = "common" ]; then \		echo ${MAKE} -f common.mk $@; \		${MAKE} -f common.mk $@; \	elif [ "${USE}" = "ansi" ]; then \		echo ${MAKE} -f ansi.mk $@; \		${MAKE} -f ansi.mk $@ \	else \		echo "set USE= in Makefile to be ansi or common as desired"; \		echo "or type: make -f ansi.mk for ansi makes"; \		echo "or type: make -f common.mk for common K&R makes"; \		exit 1;\	fittt_game: ttt_game.c	-@if [ "${USE}" = "common" ]; then \		echo ${MAKE} -f common.mk $@; \		${MAKE} -f common.mk $@; \	elif [ "${USE}" = "ansi" ]; then \		echo ${MAKE} -f ansi.mk $@; \		${MAKE} -f ansi.mk $@; \	else \		echo "set USE= in Makefile to be ansi or common as desired"; \		echo "or type: make -f ansi.mk for ansi makes"; \		echo "or type: make -f common.mk for common K&R makes"; \		exit 1;\	finextmove: nextmove.c	-@if [ "${USE}" = "common" ]; then \		echo ${MAKE} -f common.mk $@; \		${MAKE} -f common.mk $@; \	elif [ "${USE}" = "ansi" ]; then \		echo ${MAKE} -f ansi.mk $@; \		${MAKE} -f ansi.mk $@; \	else \		echo "set USE= in Makefile to be ansi or common as desired"; \		echo "or type: make -f ansi.mk for ansi makes"; \		echo "or type: make -f common.mk for common K&R makes"; \		exit 1;\	ficlean:	${MAKE} -f ansi.mk clean	${MAKE} -f common.mk cleanclobber:	${MAKE} -f ansi.mk clobber	${MAKE} -f common.mk clobbernuke: clobber	${MAKE} -f ansi.mk nuke	${MAKE} -f common.mk nukeinstall:	${MAKE} -f ansi.mk install	${MAKE} -f common.mk install

⌨️ 快捷键说明

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