⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 该程序是C语言编写的
💻
字号:
#
#  Makefile for CUG101 
#
#  Should be relatively easy to adapt to other environments
#

CC	= pc		# MIX Power C
CFLAGS	= /ms		# Small memory model
LD	= pcl

O	= .mix		# Object file suffix - .o on Unix
X	= .exe		# Executable file suffix - empty on Unix
DUMMY	= Makefile	# Required by some stupid make programs
I	= -		# Ignore compile errors

CURSES	= scurses	# small memory model library
CURLIB	= \lib\scurses.mix	# Path for dependencies

all:	bugs$X euclid$X jotto$X polish$X pressup$X stone$X ttt$X yahtzee$X

clean:	$(DUMMY)
	del *$O
	del *$X

disk:	$(DUMMY)
	copy bugs.c b:
	copy euclid.c b:
	copy jotto.c b:
	copy polish.c b:
	copy pressup.c b:
	copy stone.c b:
	copy ttt.c b:
	copy yahtzee.c b:
	copy getopt.c b:
	copy makefile b:

bugs$X:		bugs$O getopt$O $(CURLIB) 
		$(LD) bugs,getopt;$(CURSES)

bugs$O:		bugs.c
		$I$(CC) $(CFLAGS) bugs.c

euclid$X:	euclid$O
		$(LD) euclid$O

euclid$O:	euclid.c
		$I$(CC) $(CFLAGS) euclid.c

getopt$O:	getopt.c
		$I$(CC) $(CFLAGS) getopt.c

jotto$X:	jotto$O $(CURLIB)
		$(LD) jotto;$(CURSES)

jotto$O:	jotto.c
		$I$(CC) $(CFLAGS) jotto.c		

polish$X:	polish$O
		$(LD) polish$O

polish$O:	polish.c
		$I$(CC) $(CFLAGS) polish.c

pressup$X:	pressup$O getopt$O $(CURLIB)
		$(LD) pressup,getopt;$(CURSES)

pressup$O:	pressup.c
		$I$(CC) $(CFLAGS) pressup.c

stone$X:	stone$O getopt$O $(CURLIB)
		$(LD) stone,getopt;$(CURSES)

stone$O:	stone.c
		$I$(CC) $(CFLAGS) stone.c

ttt$X:		ttt$O
		$(LD) ttt$O

ttt$O:		ttt.c
		$I$(CC) $(CFLAGS) ttt.c

yahtzee$X:	yahtzee$O $(CURLIB)
		$(LD) yahtzee;$(CURSES)

yahtzee$O:	yahtzee.c
		$I$(CC) $(CFLAGS) yahtzee.c

⌨️ 快捷键说明

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