makefile

来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 代码 · 共 59 行

TXT
59
字号
LESSONS = files editor morefiles macros eqn CFILES = lrndef lrnref \	copy.c dounit.c learn.c list.c \	makpipe.c maktee.c mem.c mysys.c selsub.c selunit.c \	start.c whatnow.c wrapup.c \	lcount.c tee.c \	makefileOBJECTS = copy.o dounit.o learn.o list.o mem.o \	makpipe.o maktee.o mysys.o selsub.o selunit.o \	start.o whatnow.o wrapup.oCFLAGS = -OLIBRARY =LLIB	= /usr/lib/learncp:	all	cp learn /bin	cp tee $(LLIB)	cp lcount $(LLIB)	rm learn tee lcount *.o	@echo "Now do 'make lessons' if you need to extract the lesson archives"	@echo "Then do 'make play; make log' to make playpen and log directories"cmp:	all	cmp learn /bin/learn	cmp tee $(LLIB)/tee	cmp lcount $(LLIB)/lcount	rm learn tee lcount *.oall:	learn tee lcountlearn: $(OBJECTS)	cc -n -s -o learn $(CFLAGS) $(OBJECTS) $(LIBRARY)$(OBJECTS): lrnreflearn.o: lrndeflcount tee:	cc $(CFLAGS) -s -n $@.c -o $@ $(LIBRARY)lessons:	$(LESSONS)$(LESSONS):	-rm -r $(LLIB)/$@	mkdir $(LLIB)/$@	(cd $(LLIB)/$@; ar x ../$@.a)play log:	-rm -r $(LLIB)/$@; mkdir $(LLIB)/$@; chmod +w $(LLIB)/$@check:	-@test -r $(LLIB)/tee || echo 'tee not present; make tee'	-@test -r $(LLIB)/lcount || echo 'lcount not present; make lcount'	-@test -r $(LLIB)/play || echo 'play directory not present; make play'	-@test -r $(LLIB)/log || echo 'log directory not present; make log'	-@for i in $(LESSONS); do test -r $(LLIB)/$$i/L0 || echo $$i not unarchived, make $$i; done

⌨️ 快捷键说明

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